• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Expert Spell Maker come here!!

Status
Not open for further replies.
Level 5
Joined
Nov 25, 2010
Messages
59
I want to create a costum hero based on trigger, it's a skeleton mage..
The hero sold in the tavern and i add 1 skill "Book of Pendragon" based on Thunder Clap.. So if he used the skill, he will create a book and the skill will removed to avoid he create more...

The problem is:
The thing that i want is if the Hero have the Book of Pendragon and he say "1", so he cast burst a fire (Breath of Fire).. if the hero say/chat "2" he will burst a shockwave.. and if he say "3" he will cast thunder clap and so on..

REQUEST :
Please make the trigger for spell (if hero say "1") the spell is shockwave... just 1.. so i can copy and paste the trigger and change the "1" into "2" also the spell... REMEMBER it's a Tavern Hero! Not player 1 (red), etc

Can you make it?? +MEGA REP and CREDIT !! :grin::grin::grin::grin: :thumbs_up::thumbs_up:
 
  • Trigger
    • Events
      • Player - Player 1 (Red) types a chat message containing <Empty String> as A substring
      • Player - Player 2 (Blue) types a chat message containing <Empty String> as A substring
      • Player - Player 3 (Teal) types a chat message containing <Empty String> as A substring
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entered chat string) Equal to 1
        • Then - Actions
          • Unit Group - Pick every unit in (Units currently selected by (Triggering player)) and do (Actions)
            • Loop - Actions
              • Set Loc = ((Position of (Picked unit)) offset by 400.00 towards 0.00 degrees)
              • Unit - Order (Picked unit) to Orc Tauren Chieftain - Shockwave Loc
              • Custom script: call RemoveLocation(udg_Loc)
        • Else - Actions
You may wanna adjust the angles a bit and do some other finalizing touches. But this should cover the core of the trigger you are looking for.
 
  • Trigger
    • Events
      • Player - Player 1 (Red) types a chat message containing <Empty String> as A substring
      • Player - Player 2 (Blue) types a chat message containing <Empty String> as A substring
      • Player - Player 3 (Teal) types a chat message containing <Empty String> as A substring
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Entered chat string) Equal to 1
        • Then - Actions
          • Unit Group - Pick every unit in (Units currently selected by (Triggering player)) and do (Actions)
            • Loop - Actions
              • Set Loc = ((Position of (Picked unit)) offset by 400.00 towards 0.00 degrees)
              • Unit - Order (Picked unit) to Orc Tauren Chieftain - Shockwave Loc
              • Custom script: call RemoveLocation(udg_Loc)
        • Else - Actions
You may wanna adjust the angles a bit and do some other finalizing touches. But this should cover the core of the trigger you are looking for.

Offset points leaks. >_>

You should set position of unit first.
Then key in Set Loc2 = (Loc1) offset by 400.00
And your unit group, its only used once and not looping.
Thus, it leaks.
 
Status
Not open for further replies.
Back
Top