• 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.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

Do player variables leak?

Status
Not open for further replies.
Level 20
Joined
Mar 16, 2008
Messages
823
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:

Wrda

Spell Reviewer
Level 28
Joined
Nov 18, 2012
Messages
1,999
No, they don't.
This tutorial covers up most, if not all things that leak.
 
Status
Not open for further replies.
Top