You are not logged in.
Pages: 1
gml script test chance dice
up to 8 sides
how can i set this up
example
what someone would find in a treasure chest
the dice would say
like
side 1 would be apple
side 2 would be note
side 3 would be candle
side 4 would be gold
from 5 to 8 note says empty
when you click on the treasure chest
if dice is 3 then gold in the treasure chest you see gold
if dice is 5 then a note would say empty
i have the apple, note with message,candle,gold, note that says empty
script can also be used for
if someone steps on something
it will say you found a ruby and you see its under your feet -----or nothing will happen
do i need to start with create first
then use the mouse left button
i have no clue on how to set it up right.
From Edy
Offline
So, you're using less than 15 arguments, right?
A bit offtopic, but I would just use something like
result=choose("apple", "note", "candle", "gold", "empty", "empty", "empty", "empty")
You also can return real objects, but I would replace empty with noone
Cheers
Last edited by DZiW (2009-06-27 18:59:39)
Feed your head
Offline
Pages: 1