Hello i am having trouble finding how to do this, i have a Unit (Militia) and added a custom ability that makes him use Avatar, when he uses Avatar that ability makes His unit Model a Sorceress but he still has all the previous abilitys and can still build etc, the point was to make a Human Female Choice
Now the problem is this: I added a Dialog Box which works 100% and i got it working and all it ask's for "Choose a character" (Male or Female) If they click female i would like the unit to cast the avatar spell on itself sothat the unit will be a female.
In this manner i cant use "Raplace" to replace the unit because it is being used by 700 Triggers and god no i am not changing 3 months of work!
So please help me out and tell me how i can make a Unit Cast a Spell from From a Trigger if this is not possible i would like to know if i can add another Jass Trigger that can do it also please send me a example code for the Jass incase GUI cant do it.
Thank you for the help!!!
Need Help! "How to make a unit cast a spell by a trigger"
Moderator: Cheaters
-
- Newcomer
- Posts: 3
- Joined: May 23rd, 2009, 11:52 am
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Need Help! "How to make a unit cast a spell by a trigger"
Can't really help if your not willing to.
Are you saying that you have a Avatar that Replaces the unit already? Or you need us to create one.
If so, your more of a Metamorphasis type avatar.
Are you saying that you have a Avatar that Replaces the unit already? Or you need us to create one.
If so, your more of a Metamorphasis type avatar.
-
- Forum Staff
- Posts: 811
- Joined: January 1st, 2008, 12:58 am
Re: Need Help! "How to make a unit cast a spell by a trigger"
Why GUI fails.kingfrost wrote: being used by 700 Triggers
I bet I could optimise them to 20 or less.
Wanna learn to hack maps? --> Guide
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: Need Help! "How to make a unit cast a spell by a trigger"
Doesn't really help him now does it lol.
-
- Newcomer
- Posts: 3
- Joined: May 23rd, 2009, 11:52 am
Re: Need Help! "How to make a unit cast a spell by a trigger"
It's Fine i Recreated it in JASS made it work 100% now i have a map with GUI and JASS lol.
I also managed to find a way to make a map run a exe file which is really cool so i added a exe file which protects the map by a password, when you open the map in any form of way it runs the EXE and asks for password i'm still figuring out how to perfect it to not interfere with the game whilst running map with the game, the exe ill post a example when i'm done so you guys can have a look,
I also managed to find a way to make a map run a exe file which is really cool so i added a exe file which protects the map by a password, when you open the map in any form of way it runs the EXE and asks for password i'm still figuring out how to perfect it to not interfere with the game whilst running map with the game, the exe ill post a example when i'm done so you guys can have a look,