• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

DecPlayerTechResearched is an undeclared variable?

Status
Not open for further replies.
Level 7
Joined
Aug 11, 2010
Messages
269
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)
  • 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
 
Status
Not open for further replies.
Top