HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

how do you make this abbiltie?

07-20-2004, 09:36 AM#1
Balthasar28
Hi i want to make an special abbilitie to my cannon

its an explode abbiltie
If the cannon attacks there is an 80% chanche that the cannon wil explode
how do you make that kind of abbiltie?triggers?

if you help me you get an credit in my map/mod
07-20-2004, 09:59 AM#2
sc_freek
Events
Unit is attacked
Conditions
Unit type of (Attacking unit) equal to Cannon
Actions
If then else
Conditions
Random number between 0 and 100 is greater than or equal to 80
Then
Explode (Attacking unit)
Else
Do nothing

That should work
BTW this should go in the Trigger Haven
07-20-2004, 01:10 PM#3
Oinkerwinkle
Code:
Cannon Attack
    Events
        Unit - A unit Is attacked
    Conditions
        (Unit-type of (Attacking unit)) Equal to Footman
    Actions
        If ((Random integer number between 1 and 100) Less than or equal to 80) then do (Unit - Kill (Attacking unit)) else do (Do nothing)

Edit: Bah, too late. Doesn't need to be moved now, anyway, I guess. Just know that in the future, trigger questions go in the Trigger Haven.