• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

This is weird

Status
Not open for further replies.
Level 18
Joined
May 11, 2012
Messages
2,108
Let's begin with triggers: as you can see, in this trigger it runs ''Game mode Dialog''

  • Starting Cinematic
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Wait 3.00 seconds
      • Cinematic - Turn cinematic mode On for (All players)
      • Cinematic - Turn on letterbox mode (hide interface) for (All players): fade out over 1.00 seconds
      • Cinematic - Disable user control for (All players)
      • Cinematic - Turn subtitle display override On
      • Cinematic - Send transmission to (All players) from Death Bringer 0011 <gen> named Doc: Play Untitled <gen> and display |c00FFD700Welcome t.... Modify duration: Add 0.00 seconds and Don't wait
      • Cinematic - Turn cinematic mode Off for (All players)
      • Cinematic - Turn off letterbox mode (show interface) for (All players): fade in over 1.00 seconds
      • Cinematic - Enable user control for (All players)
      • Cinematic - Turn subtitle display override Off
      • Trigger - Run Game Mode Dialog <gen> (ignoring conditions)
      • Trigger - Run Start Special Event Timer <gen> (ignoring conditions)
      • Trigger - Run Next Wave Start Timer <gen> (ignoring conditions)
and the dialog appears correctly

  • Game Mode Dialog
    • Events
    • Conditions
    • Actions
      • Dialog - Clear Dialog[1]
      • Dialog - Change the title of Dialog[1] to Game Mode?
      • Dialog - Create a dialog button for Dialog[1] labelled Easy Mode
      • Set Dialog_Button[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog[1] labelled Normal Mode
      • Set Dialog_Button[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog[1] labelled Hard Mode
      • Set Dialog_Button[3] = (Last created dialog Button)
      • Dialog - Show Dialog[1] for Player 1 (Red)
now when I select the button(let's say I selected ''Easy Mode'')

  • Easy Mode
    • Events
      • Dialog - A dialog button is clicked for Dialog[1]
    • Conditions
      • (Clicked dialog button) Equal to Dialog_Button[1]
    • Actions
      • Game - Display to (All players) the text: |c00FFD700Game mode...
      • Trigger - Run Gates Dialog <gen> (ignoring conditions)
it must run the ''Trigger - Run Gates Dialog <gen> (ignoring conditions)'' which is here:

  • Gates Dialog
    • Events
    • Conditions
    • Actions
      • Dialog - Clear Dialog[2]
      • Dialog - Change the title of Dialog[2] to How many Gates you ...
      • Dialog - Create a dialog button for Dialog[2] labelled 2 Gates
      • Set Dialog_Button[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog[2] labelled 4 Gates
      • Set Dialog_Button[2] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog[2] labelled 6 Gates
      • Set Dialog_Button[3] = (Last created dialog Button)
      • Dialog - Create a dialog button for Dialog[2] labelled 8 Gates
      • Set Dialog_Button[4] = (Last created dialog Button)
      • Dialog - Show Dialog[2] for Player 1 (Red)
But it doesn't runs the second dialog, Why!?!?!?!?!? (NOTE: this used to work perfectly normal until now, i really can't fins the problem, help?)
 
Level 19
Joined
Aug 8, 2007
Messages
2,765
try this

set udg_Dialog_Button[1] = DialogAddButton( udg_Dialog[1], "Easy Mode", 0)
 
  • Starting Cinematic
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Wait 3.00 seconds
This is stupid, why don't you simply,

  • Starting Cinematic
    • Events
      • Time - Elapsed game time is 3.00 seconds
    • Conditions
    • Actions

The performance difference in that is probably 100,000 times smaller than what you'd save by not using blizzard cinematic functions
 
Status
Not open for further replies.
Top