HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Difficulty Trigger Problem

08-07-2007, 10:00 PM#1
DanL.
Ok I am having a small problem with figuring out what array for this problem.Thank you inadvance for helping.

This is the first trigger which I think works fine.
Trigger:
Collapse Events
Dialog - A dialog button is clicked for DifficultyLog
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Clicked dialog button) Equal to Difficulty[1]
Collapse Then - Actions
Multiboard - Set the text for (Last created multiboard) item in column 5, row Multiboard_Spots[(Player number of (Triggering player))] to |CFF00FF00Easy
Set Lives[(Player number of (Triggering player))] = 15
Multiboard - Set the text for (Last created multiboard) item in column 3, row Multiboard_Spots[(Player number of (Triggering player))] to (String(Lives[(Player number of (Triggering player))]))
Game - Display to (Player group((Triggering player))) the text: You have chosen |CF...
Set DifficultyString[(Player number of (Triggering player))] = Easy
Else - Actions

Now this trigger will have 8 triggers for each player because for each start - endpoint this is where I have trouble with the DifficultyString array equaling easy normal or hard.
Trigger:
Player 1 Movement
Collapse Events
Unit - A unit enters Player 1 <gen>
Collapse Conditions
(Owner of (Entering unit)) Equal to Player 12 (Brown)
Collapse Actions
Unit - Order (Entering unit) to Move To (Center of End Point <gen>)
Unit - Set the custom value of (Entering unit) to 1
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
DifficultyString[(Player number of Player 1 (Red))] Equal to Easy
Collapse Then - Actions
Unit - Set life of (Entering unit) to 50.00%
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
DifficultyString[1] Equal to Normal
Collapse Then - Actions
Unit - Set life of (Entering unit) to 75.00%
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
DifficultyString[1] Equal to Hard
Collapse Then - Actions
Unit - Set life of (Entering unit) to 100.00%
Else - Actions
08-07-2007, 10:18 PM#2
Histenchist
hmm this could be the problem but i'm not sure;
Try to set
Trigger:
Set DifficultyString[(Player number of (Triggering player + 1))] = Easy
08-08-2007, 12:49 AM#3
botanic
Ok that will create a mess of triggers ill optimize it for you and post here in a bit

PS: Dont use strings to specify difficultly as they are slower then intigers (ill also fix that)

EDIT saw a few things that were kinda odd if you could PM me on AIM itd be helpful