Random

Status
Not open for further replies.
Level 7
Joined
Apr 30, 2007
Messages
322
How can i make a random chance for some action for sample...
Unit Enters Rect001 -> Chance 10% that -> Unit get Damaged for 100HP
 
Level 10
Joined
Mar 22, 2009
Messages
378
The little pharao fella answered before me :p

I guess you could make something like this;

  • Events
    • unit enters rect001
  • Actions
    • set RandomNumberVariable to random number between 1 and 10
    • if then else
      • conditions
        • RandomNumberVariable equal to 1
      • then actions
        • Unit get damaged for 100 hp
you could just set the conditions for how big chance you want them to have...

so 2 numbers is 20%

Im not sure this will work though.
 
Status
Not open for further replies.
Top