| 08-04-2003, 11:05 PM | #1 |
i don't currently have WE near me, so i can't give the actual triggers that i used to make the spell, but maybe it won't matter. Regardless, i wanted to make a uber-version of holy light (called holy blast) that has the following effects: *can only target undead* level 1- 200 damage to target unit and 100 damage to units within 250 range units of unit. level 2- 300 damage to target unit and 150 damage to units within 250 range units of unit. level 3- 400 damage to target unit and 200 damage to units within 250 range units of unit. now here's the problem: i cannot get it to only let you target undead, and i have tried many things, and i cannot get the damage to be at the appropriate amount at the different levels, the spell is always level 3 whenever i use it, even if it is only level 1 in actuality. This didn't happen in any of my other spells, where i used the same method (using variables) to detect the level of the learned spell to correspond with the effect. How would i fix this? If someone can make an example to show me, that would be good too. By the way, i am using version 1.07, cus the TFT WE is on my laptop, so i can't upgrade it. And i have made trigger-enhanved spells before and i have never encountered any problems with anything, this is the first problem that i cannot figure out how to fix. thanx for any help that anyone can give me. |
| 08-05-2003, 12:27 AM | #2 |
well? i have had like 10 views but no replies.... i know that there are people that would be able to fix this, so can someone at least repond to me? |
| 08-05-2003, 03:31 AM | #3 |
To target undead only, try basing it off of Death Pact or Dark Ritual (the targets would have to be changed to Enemy and set the flag Leaves Target Alive equal to true and the other fields to 0.00) I'm not sure if that would work exactly, but it's worth a try. And then add in to your trigger, as far as the damage is concerned, the condition ((Matching Unit) is Undead Equal to True) Look over your other triggers again to see why it always treats it as Level 3. From what you gave us, it's hard to tell where you may have messed up with that. Edit: Can you change the targets of Holy Light to enemy only? This should solve the first problem. |
| 08-05-2003, 07:12 AM | #4 |
I was thinking death coil also, that would target undead at least. And if you want it to do an area affect, you could create a trigger that checks if a unit is within a certain range from your target and if so, heals it by so much. Oh, and for the level problem, I don't know how you're setting it up. If it's a hero spell, you should have to start at level 1. If it's a normal unit spell, perhaps it autosets to the highest level? Not sure on that one. |
| 08-05-2003, 07:22 AM | #5 |
thanx for the help, i will try to post my triggers in here to show u guys what i have so far, most of what u guys said i have tried, but i appreciate the help. currently i am having problems with my WE on this computer, so as soon as i fix the problem, i'll post my triggers exactly as they are. thx for the help |
| 08-05-2003, 08:04 AM | #6 |
here are the triggers: holy blast Events Unit – Holy Knight 0001 <gen> Is issued an order targeting an object Conditions (Issued order) Equal to (Order(thunderbolt)) ((Target unit of issued order) is Undead) Equal to True Actions Set holy_blast_target = (Target unit of issued order) Set holy_blast_aoe = (Units within 250.00 of (Position of holy_blast_target)) holy blast if not undead Events Unit - Holy Knight 0001 <gen> Is issued an order targeting an object Conditions (Issued order) Equal to (Order(thunderbolt)) ((Target unit of issued order) is Undead) Equal to False Actions Game - Display to (All players) the text: Can only target und... Unit - Order Inquisitor 0001 <gen> to Stop hol b effect lvl 1 Events Unit - Holy Knight 0001 <gen> Begins casting an ability Conditions ((Ability being cast) Equal to Holy Blast ) and (h_b_1_learned Equal to True) h_b_2_learned Equal to False h_b_3_learned Equal to False Actions Special Effect - Create a special effect at (Position of holy_blast_target) using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl Unit Group - Pick every unit in holy_blast_aoe and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 100.00)) Special Effect - Destroy (Last created special effect) hol b effect lvl 2 Events Unit - Holy Knight 0001 <gen> Begins casting an ability Conditions ((Ability being cast) Equal to Holy Blast ) and (h_b_2_learned Equal to True) h_b_1_learned Equal to True h_b_3_learned Equal to False Actions Special Effect - Create a special effect at (Position of holy_blast_target) using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl Unit Group - Pick every unit in holy_blast_aoe and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 150.00)) Special Effect - Destroy (Last created special effect) hol b effect lvl 3 Events Unit - Holy Knight 0001 <gen> Begins casting an ability Conditions ((Ability being cast) Equal to Holy Blast ) and (h_b_3_learned Equal to True) h_b_1_learned Equal to True h_b_2_learned Equal to True Actions Special Effect - Create a special effect at (Position of holy_blast_target) using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl Unit Group - Pick every unit in holy_blast_aoe and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 200.00)) Special Effect - Destroy (Last created special effect) learn check for hb lv 1 Events Unit - Holy Knight 0001 <gen> Learns a skill Conditions (Learned Hero Skill) Equal to <holy blast> (Learned skill level) Equal to 1 h_b_1_learned Equal to False Actions Set h_b_1_learned = True Game - Display to (All players) the text: level 1 learned learn check for hb lv 2 Events Unit - Holy Knight 0001 <gen> Learns a skill Conditions (Learned Hero Skill) Equal to <holy blast> (Learned skill level) Equal to 2 h_b_1_learned Equal to True h_b_2_learned Equal to False Actions Set h_b_2_learned = True Game - Display to (All players) the text: level 2 learned learn check for hb lv 3 Events Unit - Holy Knight 0001 <gen> Learns a skill Conditions (Learned Hero Skill) Equal to <holy blast> (Learned skill level) Equal to 3 h_b_2_learned Equal to True h_b_3_learned Equal to False Actions Set h_b_3_learned = True Game - Display to (All players) the text: level 3 learned Okay, the aoe damage seems to be fine, but the direct damage has a problem, it seems to do correct damage, but after the damage is done, it seems like another spell is cast and the unit targeted is killed, also the text that I used to see if the abilities are learned correctly only displayes correctly for level 1, it skips level 2, then displays the text for level 2 at level 3 for some reason, which means it definitely isn't working right, but I am at a loss of solutions, this has been bothering me for like 2 days now. Hope this helps to clarify everything. edit: by the way, the direct damage is provided by the spell itself (a modified storm bolt) |
| 08-05-2003, 06:41 PM | #7 |
c'mon guys, i got some help yesterday, but now that i have posted my triggers, i get nothing... i really wanna know how i can fix this. btw, i think that i figured out why the main target was taking extra damage, it was receiving the damage from the main spell, and then receiving the aoe damage also, therefore giving it 50% extra damage. so i think that's solved. As for the undead thing,maybe i'll just try working with dark ritual or something. the thing is, it doesn't really seem to matter what the dummy spell is, cus once the order is given, the spell is cast regardless, even if an error message comes up saying that u cannot target non-undead creatures, if anyone has a solution to this (besides the condition (target unit is undead = true) cus it doesn't work at all) then i will be glad to hear it. |
| 08-05-2003, 07:06 PM | #8 |
u said u had TFT well what u can do is use the tigg editor change frost nova to what u want and add fx of holy light or u could edit the slk files and change frost nova to look like holy light instead of using the triggs |
