| 02-21-2004, 03:32 AM | #1 | |
I wanted to make a spell that has proven rather difficult... Quote:
Any help would be greatly appreciated. |
| 02-21-2004, 03:50 AM | #2 |
All i can say is... Triggers, triggers, triggers... Errr i'll see what i can do for you in the morning. THe first 4 are easy... For the next i think something like some arithmatic triggers or something but i think you already knew that. Well I'll see what i can do in the morning. For now i'm calling it a night. Oh try making items for the other parts of the spell. That always works for me :p |
| 02-21-2004, 11:45 AM | #3 |
Event: Spell casted Pick every unit in AOE of target area do multi actions if random num between 1-4 = 1 then do nada else if picked unit =unit type unlucky unit then if random num between 1-5 <= 3 set triggering unit life=trig unit life+(life of picked unit * .45) kill picked unit Then make dummy unit/spell base it off thunder bolt for stunning and change its art to whatever you want and have the dummy units cast the spells on the target(i'm assuming you know how to do this if not theres 135 tuts on how to do this) THat should work. Hrmm on closer examination the units will die before the missle reaches them but it should give you a basic idea on how its done. Hope this helps if not i want the 5 minutes of my life back i spent typing =0) Sinister Rebel |
| 02-21-2004, 02:17 PM | #4 |
The hardest seems to me to be the last one, if the unit with this ability (It'll a single unit type) attacks the unit it'll die instantly only if stunned. The unit is melee if it makes a difference. |
| 02-21-2004, 05:18 PM | #5 |
- The each effected unit has a 25% to avoid the effect Simple random loop. Pick all units within the area effect, for each picked unit set a random integer to 1 - 100, if its equal to or greater than x hit the picked unit with a stun. - If effected and then attacked by a certain unit type, the effected unit will have a 60% chance of being instantly killed Heres where I start guessing, but I think itll work. You mentioned later you wanted the chance of instant death to be while-stunned only. The easiest way to do this is via buffs. Set your dummy stun ability to a custom "stunned" buff. Now, run a trigger that says when a unit is attack by "your unit," with the condition that it has "stunned" buff, pick unit and do, if random number greater than or equal to x kill attacked unit. EDIT: You can do it without buffs and even without dummy spells, but thats much more difficult. But if you have to / want to do it that way, I can try to help there as well. EDIT2: Oh I skipped your last action. Ok, for that, you do have to use unit arrays. Cant cheat with dummy spells, Im afraid. When a unit gets hit with your stun ability, add (the target units current life * 0.45) to a real array life[current slot], with current slot being 0 by default. Every time (and before you add your units life to the array) the spell is fired, set your current slot integer to current slot + 1. then, when you execute the kill unit instantly trigger i outlined above, add another action into the sucesful kill loop that says: For loop integer A between 1 and current slot -----Add life[integer a] to "your unit" Finally, when the buffs wear off, run a trigger reseting the life array. Im not sure there is a unit is debuffed even, unfortunately, so set up a wait action way back in your first trigger (that fires off the dummy stun spell in response ot the real unit ability being used), that says wait "spell duration," then run "life array reset trigger." Hope this helps even more! :D P.S. Hiro, you and Vilk or whatever his name is need to stop spamming these boards or your gonna get reported. |
| 02-21-2004, 05:20 PM | #6 |
That explains a bit... Thanks! Edit: OK, I saw your edits, and I'll try them out. Thank you. |
