YesNoOk
avatar

Spawning Helper by Chance/Percentage (Read 434 times)

Started by SignificantSlice, August 28, 2012, 08:08:57 am
Share this topic:
Spawning Helper by Chance/Percentage
#1  August 28, 2012, 08:08:57 am
  • avatar
  • *
    • Philippines
    • ulolako35@yahoo.com
so here's the situation
i have 3 kinds of helper in one move,
let's say that i want each helper to had a 33% chance of being spawn in the same move

hope somebody will help me with this problem
tnx in advance


Re: Spawning Helper by Chance/Percentage
#2  August 28, 2012, 08:16:01 am
  • ****
    • Hungary
    • seravy.x10.mx/Wordpress
Type=Helper
Trigger1=...
...
ID=2000+10*(random %3) and/or Stateno= 2000+10*(random %3)

This will make a random helper with ID 2000,2010 or 2020, or if you use the formula for the stateno parameter, then the helper will be created in those state numbers instead. Adjust it as necessary by changing the numbers 2000 and 10.
Re: Spawning Helper by Chance/Percentage
#3  August 28, 2012, 09:31:35 am
  • avatar
  • *
    • Philippines
    • ulolako35@yahoo.com
it works,
thank you XD