• 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!

Do player variables leak?

Status
Not open for further replies.
Level 22
Joined
Mar 16, 2008
Messages
1,027
Do I need to add "call RemovePlayer(udg_Knight_Rcv_Gold_Red)" or is it ok to just set this variable over and over again? I tried searching and I can't find any answers regarding player variables. Thanks for reading.

Edit: it's a player variable
  • Red Give Gold
    • Events
      • Time - Every 120.00 seconds of game time
    • Conditions
      • (Number of players in Group1Red) Greater than 2
      • (Player 1 (Red) Current gold) Greater than or equal to 20000
    • Actions
      • Set VariableSet Knight_Rcv_Gold_Red = (Random player from Group1Red)
      • Quest - Display to Group1Red the Quest Update message: (The |cffff0000King|r's gold vault is over flowing so he has given 1000 gold to + ((Name of Knight_Rcv_Gold_Red) + .))
      • Player - Add 1000 to Knight_Rcv_Gold_Red.Current gold
      • Player - Add -1000 to Player 1 (Red).Current gold
 
Last edited:
No, they don't.
This tutorial covers up most, if not all things that leak.
 
Status
Not open for further replies.
Back
Top