HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

[Help!] Dialog is receiving, not responding

12-01-2007, 08:03 AM#1
Tide-Arc Ephemera
Trigger:
IT Voting Difficulty
Collapse Events
Dialog - A dialog button is clicked for DiaDifficulty
Conditions
Collapse Actions
Set ReaTreeVoters = (ReaTreeVoters + 1.00)
Set IntDifficultyVoters = (IntDifficultyVoters + 1)
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Clicked dialog button) Equal to (==) DiBDifficulty[1]
Collapse Then - Actions
Set IntDifficulty = (IntDifficulty + 0)
Game - Display to (All players) the text: (received click with value + (String(IntDifficulty)))
Collapse Else - Actions
Do nothing
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Clicked dialog button) Equal to (==) DiBDifficulty[2]
Collapse Then - Actions
Set IntDifficulty = (IntDifficulty + 1)
Game - Display to (All players) the text: (received click with value + (String(IntDifficulty)))
Collapse Else - Actions
Do nothing
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Clicked dialog button) Equal to (==) DiBDifficulty[3]
Collapse Then - Actions
Set IntDifficulty = (IntDifficulty + 2)
Game - Display to (All players) the text: (received click with value + (String(IntDifficulty)))
Collapse Else - Actions
Do nothing
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Clicked dialog button) Equal to (==) DiBDifficulty[4]
Collapse Then - Actions
Set IntDifficulty = (IntDifficulty + 3)
Game - Display to (All players) the text: (received click with value + (String(IntDifficulty)))
Collapse Else - Actions
Do nothing
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Clicked dialog button) Equal to (==) DiBDifficulty[5]
Collapse Then - Actions
Set IntDifficulty = (IntDifficulty + 4)
Game - Display to (All players) the text: (received click with value + (String(IntDifficulty)))
Collapse Else - Actions
Do nothing
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Clicked dialog button) Equal to (==) DiBDifficulty[6]
Collapse Then - Actions
Set IntDifficulty = (IntDifficulty + 5)
Game - Display to (All players) the text: (received click with value + (String(IntDifficulty)))
Collapse Else - Actions
Do nothing
Trigger:
IT Implement Difficutly
Collapse Events
Time - Elapsed game time is 60.00 seconds
Conditions
Collapse Actions
Player - Set the current research level of Very Low Difficulty Level to IntDifficulty for Player 12 (Brown)
Game - Display to (All players) for 25.00 seconds the text: (|cffffcc00The difficulty level is |r + (((String(IntDifficulty)) + |cffffcc00/50) + !|r))
Game - Display to (All players) for 25.00 seconds the text: |cffffcc00The dark ...
Trigger - Turn off (This trigger)

Okay, there are my two triggers. The first one works well, it receives the value from IntDifficulty and displays it correctly. However, the second trigger trips up. The second trigger returns IntDifficulty as 0, regardless of what button I push.

So my problem is that when I need to implement the research level, it returns as 0 and the difficulty level message returns as 0.

What am I doing wrong? Did I put a "Set IntDifficulty = 0" somewhere but didn't see it? I can't find anything wrong with my triggers.

When I push the dialog buttons, they return IntDifficulty well and correctly, but after that it just seems to turn to 0.

How can I ameliorate this problem?
12-01-2007, 05:13 PM#2
Ammorth
Use Object Manager to locate all instances of IntDifficulty to make sure you don't accidentally use it somewhere else.
12-01-2007, 10:36 PM#3
Tide-Arc Ephemera
Um... I don't quite understand, what do you mean by what you just said?
12-01-2007, 10:46 PM#4
Pyrogasm
Click on the cube icon:


Go to the "variables" tab:
Attached Images
File type: jpgPicture 1.jpg (16.0 KB)
File type: jpgPicture 3.jpg (109.2 KB)
12-01-2007, 11:07 PM#5
Tide-Arc Ephemera
Sure is a mystery because it's only found in those two triggers... I think I'll try using a different variable and see what happens then.

EDIT!
That didn't work, as well as changing the upgrade's settings (adding "Applies To All Units = True" and changing to being an undead upgrade but that wouldn't work anyway because it's the variable) and I tried setting one variable to another.

It seems that it won't save the value of the trigger at all.
12-03-2007, 03:55 AM#6
Tide-Arc Ephemera
Bump?
12-03-2007, 04:03 AM#7
Ammorth
I would suggest posting a map, since nothing obvious is showing from the posted triggers.
12-03-2007, 04:09 AM#8
Tide-Arc Ephemera
Don't mind the name, it's just a code name... because Google and I could not think of any good names.

The problem is withing the DIFFICULTY TRIGGERS, the trees triggers works just fine. The problem occurs when I select a difficulty, after it's done running, it just resets IntDifficulty.
Attached Files
File type: w3xBendersMum.w3x (58.7 KB)
12-03-2007, 04:49 AM#9
Ammorth
Fixed it. There were a couple problems.

1) The variable was the wrong variable for the set difficulty.
2) Since you were using the real becomes event, it was firing the difficulty trigger before the last player's selection was added. I move the set players variable to the bottom, so it would fire after the difficulty variable is updated.

edit: uploaded map
Attached Files
File type: w3xBendersMum(fixed).w3x (58.0 KB)
12-03-2007, 06:43 AM#10
Tide-Arc Ephemera
Hm... 'tis working out nicely.

+Rep.