HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need help with Random Integers...

09-17-2003, 04:32 PM#1
Coffein
Ok I need to make a percentage chance for a trigger enhanced (passive) spell, but I dont have a clue how to make it so there is a 6% chance or something.
Can anyone help me out?

Thanks in advance.
09-17-2003, 06:03 PM#2
cideh
Um, in the condition of the trigger do:

Random number between 1 and 100 less than or equal to 6

Should work
09-17-2003, 08:28 PM#3
Draco
Do 'less than 7' as long as it's an integer.
09-17-2003, 08:37 PM#4
Crimsongg137
wut if u want items to come out when u kill a unit
09-17-2003, 08:55 PM#5
Eriond
The unit drops items even if it's killed by a trigger, I think....

Hope that answers your question
09-17-2003, 09:25 PM#6
cideh
Quote:
Originally posted by Draco
Do 'less than 7' as long as it's an integer.


Uh oh, shouldn't matter should it? :p

EDIT: That was on the border to spam heh... I _think_ the unit drops an item even when it's killed using triggers... A unit dies events are executed anyways, so I think items should drop too..