| 09-16-2003, 09:55 AM | #1 |
I have some trouble with a trigger that i though would be simple, but this trigger simply doesn't work could someone tell how to do it properly? event: Unit - A unit owned by Player 1 (Red) Finishes casting an ability condition: (Unit-type of (Casting unit)) Equal to Slave of Shadow (Shade) (Unit-type of (Targeted unit)) Equal to Slave of Shadow (Shade) action: Unit - Replace (Targeted unit) with a Shadow Spider (Shade) using The new unit's max life and mana Unit - Remove (Casting unit) from the game the purpose of this trigger is to merge two units together to make a more upgraded unit like with the protoss merge ability... this game is a TD a the merging units are tower (building)...the best way i figured out to do it is to give the tower (slave of shadow) an ability called merge shade based on the nova spell so i can target, and with one tower target the tower of same kind and make the targeted tower replace by the upgraded one and remove the targeting one from game.... but it simply doesn't work and i really don't know JASS or other thing can someone tell me how to do it a simple way.... also the tower should be upgraded once more if it used on a allready upgraded tower to get the third level of tower.. slave of shadow + slave of shadow = Shadow Spider Slave of Shadow + Shadow Spider = Shadow Horror Shadow Spider and Shadow horror don't have and don't need the merging ability only the slave will provoque the merging on another slave or on a spider only..... If anybody better than me could figure out how to make the trigger or a better way to do it please help !! |
| 09-16-2003, 10:00 AM | #2 |
I THINK YOU COULD NOT USE (TARGETING UNIT) IN CONDITIONS ...... |
| 09-17-2003, 11:05 AM | #3 |
This event does not have a target. You nead a second trigger with an event like this: Unit - A unit owned by Player 1 (Red) Is issued an order targeting an object add a condition to check if the triggering unit is your caster and store the target in a variable. |
| 09-17-2003, 03:29 PM | #4 |
Thanks for ur help but i figured out how do it.... as soon as i new the spell targeting couldn't be use in the trigger, i made it more simple by using the attack triger so i could target the untits i wanted to transform.... i simply made : event: an units is attacked condition: attacked units = slave of shadow attacking units = slave of shadow attacked units not equal to attacking units action: attacking units from game attacked units replaced with upgraded tower (shadow spider) this how i merged the two tower in one at the point of the targeted tower. thanks for all for your help.... |
| 09-17-2003, 04:13 PM | #5 |
Unless im thinking what you want to do is something else, couldnt you modify mount hippogriph? |
| 09-20-2003, 04:34 PM | #6 |
Well it is a TD so the merging unit are in fact tower i am not sure it would work with the mount hippo.....but thanks a lot for your reply...if it work even with tower then i will consider using it later if i need some same sort of things... Thanks Junithorn !! |
