• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Help with the quest

Status
Not open for further replies.
Level 13
Joined
Jun 3, 2011
Messages
1,058
Why isn't the text not working?
  • Game - Display to (Player group((Triggering player))) for 15.00 seconds the text: Quest is already ta...


  • Arachnathid Hunter
    • Events
      • Dialog - A dialog button is clicked for AAA_Guilds_Dialog_Quest_RankA
    • Conditions
      • (Clicked dialog button) Equal to AAA_Guilds_DialogButon[10]
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
        • Then - Actions
          • Custom script: set bj_wantDestroyGroup = true
          • Unit Group - Pick every unit in (Units owned by (Triggering player) matching (((Matching unit) is A Hero) Equal to True)) and do (Actions)
            • Loop - Actions
              • Set AAA_QuestGuildAcceptor[1] = (Picked unit)
              • Quest - Create a Required quest titled Arachnathid Hunter with the description |cff00ff00The Arach..., using icon path ReplaceableTextures\CommandButtons\BTNArachnathidpurple.blp
              • Set AAA_QuestGuild[1] = (Last created quest)
              • Sound - Play QuestNew <gen>
              • Quest - Display to (Player group((Triggering player))) the Quest Update message: |cff00ff00The Arach...
              • Trigger - Turn off (This trigger)
        • Else - Actions
          • Game - Display to (Player group((Triggering player))) for 15.00 seconds the text: Quest is already ta...
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
So what if i don't want to put anything on the condition?

Then why have an if condition in the first place?
If then else is used for conditioning.

If there is no condition whatsoever, then how is it ever supposed to do the then and else actions?
If you just want to run these actions sequentually, simply put all the actions underneath each other without an if.
 
Level 10
Joined
Jan 20, 2011
Messages
492
You need to have something in the conditions for if statement, like a tracker, so integer or string variables are good for this and you can change the values to recognise if you have it accepted or not
 
Level 13
Joined
Jun 3, 2011
Messages
1,058
Then why have an if condition in the first place?
If then else is used for conditioning.

If there is no condition whatsoever, then how is it ever supposed to do the then and else actions?
If you just want to run these actions sequentually, simply put the actions all underneath each other without an if.

i want the game display text to be shown when its already been taken
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
Please don't double post, and what TwoVenomous said was the exact same thing as I said.
But he also gave an example ;)
 
Level 13
Joined
Jun 3, 2011
Messages
1,058
No i mean the text it's not show
  • Game - Display to (Player group((Triggering player))) for 15.00 seconds the text: Quest is already ta...
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
You do realize it is only supposed to show to the triggering player.
Plus that you'd have to press a different button then AAA_Guilds_DialogButon[10] in order for it to work.

If none of the actions work then AAA_Guilds_DialogButton[10] is not set correctly. Check your other trigger in this case.

Show us your new trigger if you think you've done everything correctly.
 
Level 13
Joined
Jun 3, 2011
Messages
1,058
You do realize it is only supposed to show to the triggering player.
Plus that you'd have to press a different button then AAA_Guilds_DialogButon[10] in order for it to work.

If none of the actions work then AAA_Guilds_DialogButton[10] is not set correctly. Check your other trigger in this case.

Show us your new trigger if you think you've done everything correctly.

Will it work if i do it in all players?
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
If you are not the one clicking the dialog button, then yes. If not, then it has something to do with your dialog button not being set correctly.
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
Those tutorials are just common triggering sense. It doesn't matter which trigger you'll make you will probably learn how to do any trigger by looking at these tutorials. Which is why it's useful to read them.

You should really hang out in the tutorial section more often:
Trigger Editor Tutorials

They will probably help you solve lots of your problems here on the world editor helper zone.
(Not trying to imply anything, just trying to help)
 
Status
Not open for further replies.
Top