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

Help on -swap

Status
Not open for further replies.
Level 11
Joined
Dec 31, 2007
Messages
780
HI again...

Im trying to add to my map a -swaphero command... but i have no idea on how to begin... i was thinking on something like a dialog appears and lets you know the active players and you select the one you want to swap with... after selecting, a new dialog pops up in the selected player screen to choose "yes" or "no"

my problem is on how i make the dialog thing with the buttons... after that i think i can manage the control change and the multiboard... (also think i can handle the names and the players that appear on those buttons)


Thx for reading :thumbs_up:
 
Level 17
Joined
Jun 17, 2007
Messages
1,433
Do something like this

  • Actions
    • Dialog - Create a dialog button for d labelled Yes
    • Set db = (Last created dialog Button)
    • Dialog - Create a dialog button for d labelled No
  • Melee Initialization
    • Events
      • Dialog - A dialog button is clicked for d
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to db
        • Then - Actions
          • -------- w.e --------
        • Else - Actions
          • -------- w.e --------
 
Level 11
Joined
Dec 31, 2007
Messages
780
why this trigger doesnt show the dialog to the player 2?

Dibujo245.jpg


im still making the -swaphero command...

and this part is causing me some troubles... i need to show dialog11 to the player 2... but this doesnt happen and i have no idea why... :S
 
Last edited:
Level 11
Joined
Dec 31, 2007
Messages
780
yep... i did... whenever i finish working im gonna post my whole trigger... (plz try to skip if it is eficient or not... i need it just to work.. :p)

thx!


EDIT:
ok.. here are all the triggers that may be needed to solve this issue...

here is the dialog created and the buttons set... (this is the dialog that doesnt appear in the trigger i posted above

1-1.jpg



The dialog that is not shown and its variables


2-1.jpg




This is the dialog created in the trigger posted above... after this one (when you select the hero to swap) the dialog11 should appear in the allyes screen... but it doesnt... :S

3-1.jpg


These are some things that may be useful to understand the whole trigger

4.jpg


Plz see if you can help me... because it should be shown and i dont know why it isnt... :(

Do NOT double-post. Use the Edit Post button.
~Posts Merged


----------------------------------

Ok... after a lot of time i discovered my mistake...

the problem was on this last pick... i used the same variable for all the dialogs... and it caused my trigger not to display swap_dialog11 (dont know why)

but im still having some problems that ill try to solve my self... if i cant you will see me again.. :p



Thx anyway


PS: sorry for double posting the other day
 
Last edited:
Status
Not open for further replies.
Top