- Joined
- Sep 11, 2006
- Messages
- 172
Please help me see why my trigger is returning 5 for my TempInteger variable.
Reroll Research is actually supposed to have a few extra conditions, but I noticed something was fishy.
NONE of my conditions were preventing this trigger from exiting. I simplified it down to 1 condition. The variable cannot be 5.
The text messages are for testing purposes and have proven to me on multiple occasions that this script is not working as it should.
This script works in tandem with this trigger:
-
Reroll Research
-
Events
-
Conditions
-
Actions
-
-------- 1-20 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Turn Less than or equal to 20
-
-
Then - Actions
-
Set TempInteger[1] = (Random integer number between 1 and 5)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
TempInteger[TempInteger[1]] Not equal to 5
-
-
Then - Actions
-
Game - Display to (All players) for 15.00 seconds the text: -------------------...
-
Game - Display to (All players) for 15.00 seconds the text: (String(TempInteger[2]))
-
Game - Display to (All players) for 15.00 seconds the text: (String(TempInteger[3]))
-
Game - Display to (All players) for 15.00 seconds the text: (String(TempInteger[4]))
-
Game - Display to (All players) for 15.00 seconds the text: |||||||||||
-
Game - Display to (All players) for 15.00 seconds the text: (String(TempInteger[1]))
-
Set ResearchCodes[100] = True
-
-
Else - Actions
-
Wait 0.10 seconds
-
Trigger - Run (This trigger) (checking conditions)
-
-
-
-
Else - Actions
-
-
-
Reroll Research is actually supposed to have a few extra conditions, but I noticed something was fishy.
NONE of my conditions were preventing this trigger from exiting. I simplified it down to 1 condition. The variable cannot be 5.
The text messages are for testing purposes and have proven to me on multiple occasions that this script is not working as it should.
This script works in tandem with this trigger:
-
Set Research
-
Events
-
Conditions
-
Actions
-
-------- Turns 1-20 --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Turn Less than or equal to 20
-
-
Then - Actions
-
-------- Section 1 --------
-
Set ChanceModifier[15] = (Random integer number between 1 and 5)
-
-------- Load Integer --------
-
Set TempInteger[5] = 15
-
Trigger - Run Load Research <gen> (ignoring conditions)
-
-------- Reroll Checks --------
-
Set TempInteger[2] = ChanceModifier[15]
-
-------- Section 2 --------
-
Trigger - Run Reroll Research <gen> (ignoring conditions)
-
Wait until (ResearchCodes[100] Equal to True), checking every 0.10 seconds
-
Set ResearchCodes[100] = False
-
Set ChanceModifier[16] = TempInteger[1]
-
-------- Load Integer --------
-
Set TempInteger[5] = 16
-
Trigger - Run Load Research <gen> (ignoring conditions)
-
-------- Reroll Checks --------
-
Set TempInteger[3] = ChanceModifier[16]
-
-------- Section 3 --------
-
Trigger - Run Reroll Research <gen> (ignoring conditions)
-
Wait until (ResearchCodes[100] Equal to True), checking every 0.10 seconds
-
Set ResearchCodes[100] = False
-
Set ChanceModifier[17] = TempInteger[1]
-
-------- Load Integer --------
-
Set TempInteger[5] = 17
-
Trigger - Run Load Research <gen> (ignoring conditions)
-
-------- Reroll Checks --------
-
Set TempInteger[4] = ChanceModifier[17]
-
-------- Section 4 --------
-
Trigger - Run Reroll Research <gen> (ignoring conditions)
-
Wait until (ResearchCodes[100] Equal to True), checking every 0.10 seconds
-
Set ResearchCodes[100] = False
-
Set ChanceModifier[18] = TempInteger[1]
-
-------- Load Integer --------
-
Set TempInteger[5] = 18
-
Trigger - Run Load Research <gen> (ignoring conditions)
-
-------- Reset Checks!!! --------
-
Set TempInteger[2] = 0
-
Set TempInteger[3] = 0
-
Set TempInteger[4] = 0
-
Skip remaining actions
-
-
Else - Actions
-
-
-