• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece!🔗 Click here to enter!

[Trigger] Create Hero + Spell with Dialog

Status
Not open for further replies.
Level 4
Joined
Feb 27, 2008
Messages
71
Hello guys :) can any of you help me to make a dialog so can create a hero + with spells :)? Like this

i can choose Warrior or Ranger
warrior have 3 talents ( prot,fury and arms can we say)
and ranger can have (long bow, fire or Beast mastery can we say)

when the game begin all from 1-10 player get 1 box were they can choose warrior or ranger , and if i click on warrior it will come a new box that says what talent you want and if i take arms i will get 3 new spells :) and create the warrior. hope you understand this then a bit hard to understand , im so bad in english xD rep+ if help

o:grin:
 
Level 9
Joined
Jun 7, 2008
Messages
440
You need to create a dialog button for each hero/talent.
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • Dialog - Change title of HeroSelection to Select your hero
    • Dialog - Create a dialog button for HeroSelection named Warrior
    • Set Warrior = (last created dialog button)
    • Dialog - Create a dialog button for HeroSelection named Ranger
    • Set Ranger = (last created dialog button)
    • --------------Next --------------
    • Dialog - Change title of TalentWar to Select your Warriors' Talent:
    • Dialog - Create a dialog button for TalentWar named (Protect)
    • Set (Protect) = (last created dialog button)
    • Dialog - Create a dialog button for TalentWar named (Fury)
    • Set (Fury) = (last created dialog button)
    • Dialog - Create a dialog button for TalentWar named (Arms)
    • Set (Arms) = (last created dialog button)
    • //All three talents have to be set into a Variable.
    • --------------Next---------------
    • Dialog - Change the title of TalentRang to Select your Rangers' Talent:
    • Dialog - Create a dialog button for TalentRang named (Long Bow)
    • Set (LongBow) = (last created dialog button)
    • Dialog - Create a dialog button for TalentRang named (Fire)
    • Set (Fire) = (last created dialog button)
    • Dialog - Create a dialog button for TalentRang named (Beast Mastery)
    • Set (BeastMastery) = (last created dialog button)
    • //All three talents have to be set into a Variable.
  • Events
    • Time - Elapsed game time is 2 seconds
  • Conditions
  • Actions
    • Player - Pick every player in (all players) and do Dialog - Show HeroSelection for (picked Player)
  • Events
    • Dialog - A dialog button is clicked for Hero Selection
  • Conditions
  • Actions
    • If (all conditions are true) then do (then actions) else do (else actions)
      • If Conditions
        • Clicked dialog equal to Warrior
      • Then Actions
        • Dialog - Show TalentWar for (triggering player)
        • Else Actions
          • Dialog - Show TalentRang for (triggering player)
And finally:

  • Events
    • Dialog - A dialog button is clicked for TalentWar
  • Conditions
  • Actions
    • If (all conditions are true) then do (then actions) else do (else actions)
      • If Conditions
        • (clicked dialog) equal to Protect
      • Then Actions
        • Unit - Create 1 (warrior) for (triggering player) at (your location) facing default degrees.
        • //This part is kinda tough, as i don't know the abilites your going to give him. But you give the three abilities linked with Protect
      • Else Actions
        • If (all conditions are true) then do (then actions) else do (else actions)
          • If Conditions
            • (clicked dialog) equal to Fury
          • Then Actions
            • Unit - Create 1 (warrior) for (triggering player) at (your location) facing default degrees.
            • //Give the three abilities linked with Fury
          • Else Actions
            • Create 1 (warrior) for (triggering player) at (your location) facing default degrees.
            • //Give him the three abilities linked with Arms
  • Events
    • Dialog - A dialog button is clicked for TalentRang
  • Conditions
  • Actions
    • If (all conditions are true) then do (then actions) else do (else actions)
      • If Conditions
        • (clicked dialog) equal to LongBow
      • Then Actions
        • Unit - Create 1 (ranger) for (triggering player) at (your location) facing default degrees.
        • //Give the three abilities linked with LongBow
      • Else Actions
        • If (all conditions are true) then do (then actions) else do (else actions)
          • If Conditions
            • (clicked dialog) equal to your Fire
          • Then Actions
            • Unit - Create 1 (ranger) for (triggering player) at (your location) facing default degrees.
            • //Give the three abilities linked with Fire
          • Else Actions
            • Create 1 (ranger) for (triggering player) at (your location) facing default degrees.
            • //Give him the three abilities linked with BeastMastery
That Should do it. I wish i knew the names of you abilities... It's hard to do the rest of the trigger without the names of those.
As well. Read the dialog button tutorial posted by Ralle. That will help you understand a bit more about what you need.
 
Last edited:
Status
Not open for further replies.
Top