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

Alternate Melee map triggering help!

Status
Not open for further replies.
Level 4
Joined
May 1, 2004
Messages
59
hi, i hav som trouble with the triggering of a alternate melee map. basically u hav a voting board at d start, nd then ppl select their races nd at d end of the countdown, the starting units r created.
but i fought it hard to implement this by myself, is there any tutorials or templates about the basic triggering of a alternate melee map? :roll: if so, dat will b really helpful!

i opened warcraft reloaded(divided&conquer) nd had a look, which i then used its triggering method on my map. nd adjusted som data nd variables. everything seems to b completely done, but when i tested it wif som friends, the voting board only appeared for me...i tried to fix every possible error but it still wont work. :( Thats basically the cause for me to post help here.
 
Level 6
Joined
Sep 17, 2005
Messages
276
cazat said:
i opened warcraft reloaded(divided&conquer) nd had a look, which i then used its triggering method on my map. nd adjusted som data nd variables. everything seems to b completely done, but when i tested it wif som friends, the voting board only appeared for me...i tried to fix every possible error but it still wont work. :( Thats basically the cause for me to post help here.

hm... without the trigger its really hard to say what your problem is. you may post it here? :wink:
 
Level 7
Joined
Jul 30, 2004
Messages
451
well, i can give you some general hints

you'll likely want to have an array of dialogs, d[], and an array of dialog buttons, db1[], db2[], etc...

setup all the dialogs d[1] to d[maxplayers] to have their respective buttons with a loop

on map 0 time (map init won't work), display dialog[X] to player(x)

set up events dialog button pressed for dialog[1], [2], etc...

and in the action, if dialog button pressed == to db1[] type of thing


although you may not even need arrays of dialog buttons, its been a while since i've set one up
 
Level 4
Joined
May 1, 2004
Messages
59
herez the dialog trigger nd how its goin 2 b showed:

Dialog
Events
Map initialization
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Dialog - Create a dialog button for RaceDialog[(Player number of (Picked player))] labelled Random
Set RAButton[(Player number of (Picked player))] = (Last created dialog Button)
Dialog - Create a dialog button for RaceDialog[(Player number of (Picked player))] labelled Human
Set HUButton[(Player number of (Picked player))] = (Last created dialog Button)
Dialog - Create a dialog button for RaceDialog[(Player number of (Picked player))] labelled Orc
Set OrcButton[(Player number of (Picked player))] = (Last created dialog Button)
Dialog - Create a dialog button for RaceDialog[(Player number of (Picked player))] labelled Undead
Set UDButton[(Player number of (Picked player))] = (Last created dialog Button)
Dialog - Create a dialog button for RaceDialog[(Player number of (Picked player))] labelled Night Elf
Set NEButton[(Player number of (Picked player))] = (Last created dialog Button)
Dialog - Create a dialog button for RaceDialog[(Player number of (Picked player))] labelled Naga
Set NAButton[(Player number of (Picked player))] = (Last created dialog Button)
Dialog - Create a dialog button for RaceDialog[(Player number of (Picked player))] labelled Blood Elf
Set BEButton[(Player number of (Picked player))] = (Last created dialog Button)
Dialog - Create a dialog button for RaceDialog[(Player number of (Picked player))] labelled Fel Orc
Set FelButton[(Player number of (Picked player))] = (Last created dialog Button)


***************************************************

Start
Events
Time - Elapsed game time is 5.00 seconds
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Dialog - Change the title of RaceDialog[(Player number of (Picked player))] to Select your race!
Dialog - Show RaceDialog[(Player number of (Picked player))] for (Picked player)
Countdown Timer - Create a timer window for Timer with title Racevoting Time
Countdown Timer - Start Timer as a One-shot timer that will expire in 25.00 seconds
Melee Game - Remove creeps and critters from used start locations (for all players)
Melee Game - Use melee time of day (for all players)
Melee Game - Limit Heroes to 1 per Hero-type (for all players)
Melee Game - Give trained Heroes a Scroll of Town Portal (for all players)
Melee Game - Set starting resources (for all players)

***********************************************

hope dat helps :roll:
 
Level 4
Joined
May 1, 2004
Messages
59
umm...i found it really hard to word this. To hav 'player number of picked player' so dat dialogs can b created for each corresponding player. dis saved my time by writing 'display dialog[1] to player1, dialog[2] to player2' vice versa...

its hard 2 explain it here, i noe its hard 2 understand :( , sry. i can possibly b wrong, so can anyone give me som suggestions?
 
Level 7
Joined
Jul 30, 2004
Messages
451
hmm, from a theoretical standpoint i don't see anything wrong... although personally i would have gone with a for loop integer A so you wouldn't have to do player number of picked player
although of course i could be missing something
what was the problem? it shows the dialog to player 1 but none of the other players?
 
Level 7
Joined
Jul 30, 2004
Messages
451
cazat said:
so far, yes. the dialog only displays 4 player 1, none others.

well, this is where some debugging skills come in handy i suppose

in trigger "Dialog" put a game - text message ("Created dialog for: " + string(player number of (picked player) )

if it doesn't show them switch it to at game time 0 instead of initialization

also put a display msg like that in the "Start" trigger loop


to be sure personally what i would have done is done
for loop int A = 1 to 8 (or max players) do
-- Dialog - Create a dialog button for RaceDialog[int A] labelled Random
-- Set RAButton[int A] = (Last created dialog Button)

and

for loop int A = 1 to 8 (or max players) do
-- Dialog - Change the title of RaceDialog[int A] to Select your race!
-- Dialog - Show RaceDialog[int A] for (PlayerIndex(int A))
 
Level 6
Joined
Sep 17, 2005
Messages
276
aye, just one more thing that could cause problems:

set the event time not to 0 but to 0.1 or 0.01. in past that solved some problems.

furthermore you could have a look at an unprotected map of "orc gladiators".
there a trigger is used where a dialog for all players appears.
 
Status
Not open for further replies.
Top