• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

DecPlayerTechResearched is an undeclared variable?

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