HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Random damage spell?

08-16-2003, 05:53 AM#1
badomen
is it possible to make a spell through triggers that does a random amount off damage(between 100 and 10000)?

if so how
08-16-2003, 06:14 AM#2
Draco
Event - A unit owned by player X begins casting an ability.

Condition - Ability Comparrison - Ability equal to "Ability Y"

ACTION - Unit - Set life of (Targeted unit) to ((Life of (Targeted unit)) - (Random real number between 10.00 and 100.00))

- - -

For the above, after you select the set life to value part, you need to choose arithmatic for the option. Then, you will see a place to add, subtract or whatever right below your choice. Click the first box and go to the 'unit property' and select life of targeted unit. Then click the 'sign' and change it to subtraction. Now click the final value slot and go to 'math: random number'. From there pick your range then click ok till you are out of the trigger.


:D :D
08-16-2003, 06:50 AM#3
badomen
ok thank you again Draco

havnt got it working yet but its probly my variables...\

Question: you think i should make it a amount of damage takin off or a %?

Also since you seem to know alot...how would i go about making a corpse explosion spell?

i posted for help here for it twice i think and know one knows....


anyway i digree thanks for all your help so far keep up the good work :)