| 01-03-2004, 11:24 PM | #1 |
I know the most reasonable thing to do is remove special effect but that only works with the last created and the Demon Horns are almost at the beginning. Is there a way using a trigger i can remove the Demon Horns model specifically when an item drops? Thanx all :O |
| 01-03-2004, 11:31 PM | #2 |
Use a Special Effect variable. Set it equal to the Demon Horns effect immediately after you create it. Later, when you need to remove the effect, remove the Special Effect variable. |
| 01-04-2004, 12:14 AM | #3 |
gah its not workin:( how could removing a variable actually remove a special effect? Because the special effect is equal to the special effect doesnt mean its referencing the same object. Like the variable special effect hasent even been applied yet. |
| 01-04-2004, 12:24 AM | #4 | |
Quote:
Actually, it does reference the same object. The solution Shvegait provided is the proper one, even if he did use some slightly confusing wording. Use ''Set mySpecialEffectVariable = (Last Created Special Effect)'' right after creating the effect. Use ''Special Effect - Destroy (mySpecialEffectVariable)'' action to make the special effect disappear. |
| 01-04-2004, 12:34 AM | #5 |
If you're using the Illidan model where the horns were placed there by blizzard, your only choice is model editing. However, if you can find attachment horns from a website (maybe campaigncreations.org), then you do Special effect- Attach CustomHorns(or whatever) to head or overhead (dunno) of your unit. Set Horns = last created special effect. E- A unit loses (or pawns) an item. ---> Pretty sure that's the one. C- Item = hornsitem A- Destroy Horns (the variable.) |
| 01-04-2004, 01:03 AM | #6 |
You know, on the item editor screen, you can allow the item to have the art of the caster of demon horns and you can use the target attachemnts points to attach it to his head, so they're automatically added and removed without the need of triggers... |
| 01-04-2004, 01:10 AM | #7 |
True dat. :foot: |
| 01-04-2004, 03:23 AM | #8 |
if you want it to check 6 slots, and you want multi people to use it, i would suggest making 2 variables, the special effect variable demon horns then an integer Player_Num, array then when a player drops the item, set the integer to that players num, destoy then you want it to destroy demonhorns[Player_num[special effect that you assigned to that item] hhmm something like that lol sry, if i had editor i would work on this. owell. |
