| 06-24-2006, 06:38 PM | #1 |
I want to remove a special effect but not the last created special effect. apparently someone told me I had to create a variable for the special effect. when I press create variable. It asks for the name and the type. There is a check box for something called array and then you can choose size. There is also some initial value thing. How can I, for example create a variable for a model of a sword I am trying to remove(what do I write in each thing and what would I check off.). And then what do I do to remove it after I've made the variable. Please help. |
| 06-24-2006, 06:44 PM | #2 |
Enter the Variable Editor, press Create new variable... set type to Effect, name whatever you want, name it for example "swordeffect". leave array unchecked and leave initial value as is... now when you create the sword effect, just after it do: Trigger: Set swordeffect = (Last created effect)now effect is stored in variable swordeffect and you can delete it everytime you want using swordeffect instead of Last created effect in Destroy effect action. |
| 06-24-2006, 06:52 PM | #3 |
I'm going to want to remove multiple special effects. And Some of the special effects created will be be created at the same time. If I do make variables for all of them, I can't set them all to last created special effect. can I? |
| 06-24-2006, 06:59 PM | #4 |
You cannot create more than one special effect at a time using triggers. Thus, you can slip the setting of variables in between (make sure you use different variables for each one, an array may be the way to go). |
| 06-24-2006, 07:08 PM | #5 |
When you create a special effect, then "save"/declare the effect always to a variable. After created an effect do like this: Trigger: Set SpecialEffect[1] = (Last created special effect)When you want to destroy some effects again, then do it like this: Trigger: ![]() Spezialeffekt - Destroy SpecialEffect[1]
![]() Spezialeffekt - Destroy SpecialEffect[2]
![]() Spezialeffekt - Destroy SpecialEffect[3]Note: If you make no waits between the destroy effects, then it appears as if the effects are destroyed at the same time, but that was properly apparent. Hope that helps too :) If you know a little JASS, then you can set the special effect immediately to a variable! For special effects at locations for example: JASS:Custom script: set udg_specialeffect[1]=AddSpecialEffectLoc("Abilities\\Spells\\Human\\Flare\\FlareCaster.mdl", udg_Loc) |
| 06-25-2006, 01:02 AM | #6 |
You're entering the region of agonizing pain in GUI. Check out some JASS tutorials. |
| 09-27-2007, 06:21 PM | #7 |
I did as MasterofSickness said but when i make variable i cant set special effect variable to effect i want like vampiric aura. Its just a variable but its not special effect. |
| 09-28-2007, 01:46 PM | #8 |
I'd say those 'variables' are of type string |
