So uh; the function DecPlayerTechResearched, whenever I try saving the map tells me that it's an undeclared variable. I know it was added in patch 1.29, but did they remove it somewhere along the road, or something? I was about to make an ability that temporarily increased attack range.
Here's an example trigger by another author (which worked sometime prior to 1.30)
Here's an example trigger by another author (which worked sometime prior to 1.30)
-
Decrease
-
Events
- Player - Player 1 (Red) skips a cinematic sequence
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Current research level of Black Gunpowder for Player 1 (Red)) Equal to 0
-
Then - Actions
- -------- Set it back to level 3 --------
- Player - Set the current research level of Black Gunpowder to (DecCounter + 3) for Player 1 (Red)
-
Else - Actions
- Set DecCounter = (DecCounter + 1)
- Custom script: call DecPlayerTechResearched(Player(0), 'Rhra', 1)
- Leaderboard - Change the value for Player 1 (Red) in (Last created leaderboard) to DecCounter
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events