HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

random death trigger

08-20-2003, 04:17 AM#1
badomen
ok got a spell that might cause instant death and as it goes up in levels it gets more % chance to work

how would i make this spell?
08-20-2003, 04:42 AM#2
Zoizite
Trigger 1
Events: A unit is issued an order targeting a unit
Conditions: issued order equal to (order(orderforyourdummyspell))
Actions: set <spelltarget> = <target unit of issued order>

Trigger 2
Events: A unit starts the effect of an ability
Conditions: ability being cast equal to <yourspell>
Actions: set x = random number between 1 and 100
if x equal to or less than <%chance your spell will activate>
then kill <spelltarget>
else do nothing
08-20-2003, 07:46 AM#3
Draco
You could always base it off of critical strike and have a X% chance to do x1000 normal damage...
08-20-2003, 07:55 AM#4
Zoizite
Lol, I never would have thought of doing that. But that only works if he wants it to be a passive ability that works while attacking...
08-20-2003, 04:24 PM#5
Draco
That's true; I'd use the random integer one if you want it to be a spell you cast on someone.