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

Do player variables leak?

Status
Not open for further replies.
Level 18
Joined
Mar 16, 2008
Messages
721
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 26
Joined
Nov 18, 2012
Messages
1,887
No, they don't.
This tutorial covers up most, if not all things that leak.
 
Status
Not open for further replies.
Top