• 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.

Clearing dialogue?!

Status
Not open for further replies.
Level 4
Joined
Jul 19, 2010
Messages
99
Okay so I have used dialogue ALOT before and somehow I am having an issue with this trigger. It is a trigger to make hero's gain level attribute (strength, agility, and intelligence) but even though i put CLEAR dialogue it still shows multiple buttons of the same.
  • SelectAttribute
    • Events
      • Dialog - A dialog button is clicked for Levelup
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to StrengthAttribute
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Triggering player) Equal to Player 1 (Red)
            • Then - Actions
              • Hero - Modify Strength of (Load 1 of 5 in PickHerohash): Add 1
            • Else - Actions
        • Else - Actions
          • Dialog - Clear Levelup
Any help is welcomed! Thanks!
 
Level 7
Joined
May 18, 2010
Messages
264
Okay so I have used dialogue ALOT before and somehow I am having an issue with this trigger. It is a trigger to make hero's gain level attribute (strength, agility, and intelligence) but even though i put CLEAR dialogue it still shows multiple buttons of the same.
  • SelectAttribute
    • Events
      • Dialog - A dialog button is clicked for Levelup
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to StrengthAttribute
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Triggering player) Equal to Player 1 (Red)
            • Then - Actions
              • Hero - Modify Strength of (Load 1 of 5 in PickHerohash): Add 1
            • Else - Actions
        • Else - Actions
          • Dialog - Clear Levelup
Any help is welcomed! Thanks!


Ur sistem is so Uneficient gime moment il help
  • Dialog
    • Events
      • Dialog - A dialog button is clicked for Stats
    • Conditions
    • Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to (==) STR
        • Then - Actions
          • Hero - Modify Strength of Heroes[(Player number of (Triggering player))]: Add 1
          • Dialog - Hide Stats for (Triggering player)
        • Else - Actions
          • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to (==) AGI
            • Then - Actions
              • Hero - Modify Agility of Heroes[(Player number of (Triggering player))]: Add 1
              • Dialog - Hide Stats for (Triggering player)
            • Else - Actions
              • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Clicked dialog button) Equal to (==) INT
                • Then - Actions
                  • Hero - Modify Intelligence of Heroes[(Player number of (Triggering player))]: Add 1
                  • Dialog - Hide Stats for (Triggering player)
                • Else - Actions
just to variable *Heroes* when player pick hero/buy whatever
set that hero to variable player number and u can use it for evrything spells ...
But i got no idea about hash^^
 
Level 4
Joined
Jul 19, 2010
Messages
99



Ur sistem is so Uneficient gime moment il help

I know, it does take up quite a bit, but I'm one of the trigger people that refuse to learn JASS or any other type of trigger system. And help with my map?

And I figured it out, I split up the attributes into 3 different triggers instead of one and also have to clear the dialogue twice :\
  • SelectAttributeAgility
    • Events
      • Dialog - A dialog button is clicked for Levelup
    • Conditions
      • (Clicked dialog button) Equal to AgilityAttribute
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Triggering player) Equal to Player 1 (Red)
        • Then - Actions
          • Hero - Modify Agility of (Load 1 of 5 in PickHerohash): Add 1
          • Set RedHeroExperiance = (RedHeroExperiance - 1)
          • Dialog - Clear Levelup
        • Else - Actions
          • Dialog - Clear Levelup
**Sorry i failed to read the last part haha. but as I am a noob to triggers (after 2 years of working with them >.<) that I just stick to simple or I confuse myself. I have figured it out, it takes up more space but is easier to understand, thanks for the help though! :)
 
@tw3ye, this should be enought - if you use 3 buttons, no need to create additional if/then/else.
  • Dialog
    • Events
      • Dialog - A dialog button is clicked for Stats
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to (==) STR
        • Then - Actions
          • Hero - Modify Strength of Heroes[(Player number of (Triggering player))]: Add 1
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Clicked dialog button) Equal to (==) AGI
            • Then - Actions
              • Hero - Modify Agility of Heroes[(Player number of (Triggering player))]: Add 1
            • Else - Actions
              • Hero - Modify Intelligence of Heroes[(Player number of (Triggering player))]: Add 1
      • Dialog - Clear yourDialog
 
Status
Not open for further replies.
Top