| 02-13-2003, 12:42 PM | #1 |
I am as good as done with this map of mine, except for a few triggers and 2 custom spells. And i really need help witht these 2. The spells i made take up the places of 2 allready excisting spells that i don't use in my map (else no abilities will show in the editor.) The spells are based on Holy Light since i did not know of any fitting spell to base it on. I made it so that the first spell targets Enemy,ground,invu,not self. And i reset the values of the data so that it does no damage nor any healing. Yet when i try to use it when i test my map it says that the unit is invulnerable and cannot be targeted. I also use this trigger: Unit - [my unit] Is issued an order targeting an object. Target Unit of issued order is Undead = True. Move Triggering unit instantly to [my region] Move Targeted unit of issued order to [my region] The goal is to move both the unit that uses the ability and the unit that is targeted if that unit is the undead unit i target to a certain location of the map. But so far no success at all. The second spell targets: "ground,air,enemy." and the trigger is: Unit [my unit] uses an item. Unit [my unit] is issuing an order targeting an object. If target unit of issued order is a Hero = True. Life of target unit of issued order is less then or = to 100. Point-vallue of target unit of issued order is less then or = to 100. Owner of target unit of issued order is Not equal to player 1. (the same trigger as above untill player 6.) If Item type beeing manipulated = [my item] Then do Change ownership of target unit of issued order to player 1 and change color Else do nothing. (there is 6 variables of this trigger but the only differance is which players gets the target unit of issued order.) But neither does this work since the spell says that the target must be a friendly living unit or a enemy undead unit. I recently tried to change the base spell to the thunderbolt that the dwarf uses and was able to target the units. But what happened now was that sometimes i could target the right unit and sometimes i could only target the wrong unit. And the first spell especially could only target a creature once then it went on saying that the creature was invulnerable or unable to target. Neither did the affiliated triggers work in any of the cases even if i was able to use the right spell at the rigth unit. My would explode from all this if it hadn't melted allready... I will owe a huge favour to anyone who helps me with this one, i've been working on this for 2 days now without getting any wiser, trying many different combination and different bases for the new spells. I understand that the code of the spell i base it on plays a part in this but i still don't know how to solve it. Or should i perhaps change the order affiliated with the spells? it is still holybolt since i've read that you shouldn't mess with it. |
| 02-13-2003, 04:33 PM | #2 |
Base one on death coil. It can target living but not dead. I guess thats bad, but its about the only thing you can do. For some reason changed targets dont work on bnet or when imported to a map. |
| 02-13-2003, 06:11 PM | #3 |
i actually figured something out! By myself! Without help! This is how my trigger worked when i had problems: Unit [myunit] uses an item. Unit [myunit] is issued an order targeting an object. Life of target unit of issued order is = to 100 or less. Point-vallue of target unit of issued order is less or = to 100. Owner of target unit of issued order is not 1,2,3,4,5,6. (ok so the above was done with 6 similar conditions but anyways) If item-type of item beeing manipulated = [my item] Then Unit - change ownership of target unit of issued order and change color Else do nothing. But when i changed: If item-type of item beeing manipulated = [my item] Into: If issued order = to orderDeathcoil It all worked! then i tried to change it back and made "If issued order = to orderDeathcoil" into another condition. and it didn't work at all. same thing happened when i switched places with the item and the orderDeathcoil condition/actions. Thus my conclusion is that Item beeing manipulated doesn't work. Now, you tell me why ;P Deathcoil is the order that both custom item ability and spell uses on your advice, but it seems that the trigger doesn't acknowledge the items ability as order:deathcoil. This makes it quite hard for me since it would be alot easier if the item ability would work in a trigger then for me to figure out a system using abilities instead. |
| 02-13-2003, 06:15 PM | #4 |
AFAIK, there is no way to detect the target of a targeted Item... |
| 02-13-2003, 06:39 PM | #5 |
hmm, i think either you missunderstood me or i am missunderstanding you. The item beeing manipulated should refere to the item used to call for the deathcoil command, should it not? Thus it is not a target of a targeted item since there is no item beeing targeted, rather a unit is beeing targeted by an item. the problem still concist though. |
| 02-14-2003, 10:46 AM | #6 |
Doesn't anyone know how to fix this? i am completely stuck, the only solution i can think of is making an ability system instead of using items, but that would look really bad on my map. |
| 02-14-2003, 04:47 PM | #7 |
Sorry bud, target of issued order is the only way you can do this. Theres no unit that items being used on function, so your stuck with commands. |
