- Joined
- Jul 25, 2019
- Messages
- 110
So basically, i have a trigger that when the starting shop sells a hero, it stores the hero as variable for the rest of the game since this can make triggering specific events to that 1 hero very easy.
example:
My question is, does this cause leaks, can 1 unit be the target of 2 variables stored for the rest of the game and will it cause any leaks or excesive memory dump that causes DC / crash??[/trigger]
example:
-
HeroCorruptedLord
-
Events
-
Unit - Restless Soul (strength) 0138 <gen> Sells a unit
-
-
Conditions
-
(Unit-type of (Sold unit)) Equal to |cffff0000C|r|cfffe0601o|r|cfffe0c02r|r|cfffe1303r|r|cfffe1a04u|r|cfffe2006p|r|cfffd2607t|r|cfffd2d08e|r|cfffd3409d|r|cfffd3a0b |r|cfffd400cL|r|cfffc470do|r|cfffc4e0er|r|cfffc5410d|r|cfffc5b11|r
-
-
Actions
-
Set VariableSet Hero_CorruptedLord = (Sold unit)
-
Unit - Remove Restless Soul (strength) 0138 <gen> from the game
-
-
My question is, does this cause leaks, can 1 unit be the target of 2 variables stored for the rest of the game and will it cause any leaks or excesive memory dump that causes DC / crash??[/trigger]