| 08-16-2003, 01:17 AM | #1 |
ok got a lvl 30 spell heres the trigger Takedown Cast Events Unit - A unit Finishes casting an ability Conditions (Ability being cast) Equal to Takedown (Casting unit) Equal to Spellcastor Actions Region - Center Takedown <gen> on (Position of (Triggering unit)) Wait 0.01 seconds If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Spelllvl Equal to 1.00 Then - Actions Unit - Make (Triggering unit) Invulnerable Unit - Move (Triggering unit) instantly to (Position of takedowntarg) Wait 2.00 seconds Unit - Move (Triggering unit) instantly to (Center of Takedown <gen>) Unit - Make (Triggering unit) Vulnerable Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Spelllvl Equal to 2.00 Then - Actions Unit - Make (Triggering unit) Invulnerable Unit - Move (Triggering unit) instantly to (Position of takedowntarg) Wait 4.00 seconds Unit - Move (Triggering unit) instantly to (Center of Takedown <gen>) Unit - Make (Triggering unit) Vulnerable Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Spelllvl Equal to 3.00 Then - Actions Unit - Make (Triggering unit) Invulnerable Unit - Move (Triggering unit) instantly to (Position of takedowntarg) Wait 6.00 seconds Unit - Move (Triggering unit) instantly to (Center of Takedown <gen>) Unit - Make (Triggering unit) Vulnerable Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Spelllvl Equal to 4.00 Then - Actions Unit - Make (Triggering unit) Invulnerable Unit - Move (Triggering unit) instantly to (Position of takedowntarg) Wait 8.00 seconds Unit - Move (Triggering unit) instantly to (Center of Takedown <gen>) Unit - Make (Triggering unit) Vulnerable Else - Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions Spelllvl Equal to 5.00 and so on to lvl 30....:) when i tested lvl 1 it woked and so did level 2 then i just thought it would work and copied lvl2 2 triger and paster it over and over agin, changeing the 2 key values (lvl and wait time) when i had fin i went to test the map and it came up with lots of problems with this trigger.....does anyone know why? i dont want to type them all out by hand (rather than copying and pasting...) so is it a problem over lvl 4 spells or is it because i must have made a mistake in the changeing of the key values or is it becase the stupid editor cant handle this trigger (hope it cant read or it will proberly deleat my map,,,tricky lil bastard editor) thanks for any help |
| 08-16-2003, 01:20 AM | #2 |
I've never seen any spells used on any maps that went over level 4, but that may not the the problem. I'm not sure how to fix, but why don't you delete all but the first 3 levels. Then, test, add an extra level, test, add an extra level, test, etc. until (if you do) run into trouble. |
| 08-16-2003, 01:25 AM | #3 |
limited time rite now i was hoping for some to reply with "oh this happend to mee too, just dont copy and paste do it one at a time and it works" if knowone has encounted it i will just do it that way but just hoping i can save some time :) |
| 08-16-2003, 01:28 AM | #4 |
ok. This is what I want you to do to start with. Make an integer variable named "TakedownLevel" starting at 0. <> <> <> <> Learn Takedown - - - EVENT - Player Specific - A unit owned by Player X learns an ability CONDITION - Ability Comparison - Learned ability equal to "takedown" ACTIONS - Set variable "TakedownLevel" to Addition (TakedownLevel + 2) <> <> <> <> Activate Takedown - - - EVENT - Unit - A unit Finishes casting an ability CONDITION - (Ability being cast) Equal to Takedown ACTIONS: Unit - Make (triggering unit) Invulnerable Unit - Move (triggering unit) instantly to (Position of takedowntarg) Wait variable "TakedownLevel" seconds Unit - Move (Triggering unit) instantly to (Center of Takedown <gen> ) Unit - Make (Triggering unit) Vulnerable - - - NOTES - This is good for one player (a.k.a. Player X). To make it work for more players, add another event to the trigger exactly like that except with a different player number. Also another variable needs to be created for each player in case they are at diff. levels (i.e. 'takedownlevelp2') You may have to use casting unit instead of triggering unit if it doesn't work. |
| 08-16-2003, 01:45 AM | #5 |
draco i love you...well not realy but thanks i never even thought of using a variable...o well it works fine and again thanks |
| 08-16-2003, 02:09 AM | #6 |
No problem!!11 Just trying to simplify. :ggani: |
| 08-16-2003, 02:19 AM | #7 |
Everyone loves Drac! He's just so wubbable!:ggani: |
