- Joined
- Dec 31, 2014
- Messages
- 68
Hello,
I am clearing up the last few Memory leaks in my Mp RPG map. Note: I have read through various websites documenting what triggers leak, their fixes and what-not, I also check my triggers with Leakcheck3.1.
**First of all i'd like to mention that when a human controlled unit enters the playable game area I have made a trigger/variable to add them to a PlayerGroup named Team1**
Q1)For this trigger I followed a tutorial from here http://www.hiveworkshop.com/forums/world-editor-help-zone-98/game-message-only-triggering-player-176146/.
I have tried to change that line to;
Q1)a) Can players only be assigned to 1 PlayerGroup at a time?
Q2) Area/Titles (Floating text) the following is my trigger for this at Map Initialization.
Q3) Triggers that play a sound when a specific thing is typed in the chat box.Is this trigger free from leaks? (I imported a sound, right clicked it and chosen [USE AS SOUND] which is being referenced in the trigger) ;
Q4)A trigger that awards a preset amount of gold to all players in Team1. Is this Leak free?
Q4)a)Can I condense this any?
Sorry for the length, and thank you.
I am clearing up the last few Memory leaks in my Mp RPG map. Note: I have read through various websites documenting what triggers leak, their fixes and what-not, I also check my triggers with Leakcheck3.1.
**First of all i'd like to mention that when a human controlled unit enters the playable game area I have made a trigger/variable to add them to a PlayerGroup named Team1**
Q1)For this trigger I followed a tutorial from here http://www.hiveworkshop.com/forums/world-editor-help-zone-98/game-message-only-triggering-player-176146/.
-
Events
-
Unit - A unit enters REGION <gen>
-
-
Conditions
-
((Entering unit) is A Hero) Equal to True
-
-
Actions
-
Set PGroup = (Player group((Triggering player)))
-
Game - Display to (All players) for 5.00 seconds the text: The Message Reads: ...
-
Custom script: call DestroyForce(udg_PGroup)
-
I have tried to change that line to;
-
Game - Display to PGroup for 5.00 seconds the text: xxxx
-
Game - Display to (Player group((Triggering player))) for 5.00 seconds the text: xxxx
Q1)a) Can players only be assigned to 1 PlayerGroup at a time?
Q2) Area/Titles (Floating text) the following is my trigger for this at Map Initialization.
-
Set Floatingtext = (Center of REGION <gen>)
-
Floating Text - Create floating text that reads xxxx at Floatingtext with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Custom script: call RemoveLocation(udg_Floatingtext)
Q3) Triggers that play a sound when a specific thing is typed in the chat box.Is this trigger free from leaks? (I imported a sound, right clicked it and chosen [USE AS SOUND] which is being referenced in the trigger) ;
-
Events
-
Player - Player 1 (Red) types a chat message containing xxxx as A substring
-
Player - Player 2 (Blue) types a chat message containing xxxx as A substring
-
Player - Player 3 (Teal) types a chat message containing xxxx as A substring
-
-
Conditions
-
Actions
-
Sound - Play SOUND <gen>
-
Q4)A trigger that awards a preset amount of gold to all players in Team1. Is this Leak free?
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Unit-type of (Dying unit)) Equal to Skeleton
-
-
Actions
-
Player - Add 1600 to Player 1 (Red) Current gold
-
Player - Add 1600 to Player 2 (Blue) Current gold
-
Player - Add 1600 to Player 3 (Teal) Current gold
-
Game - Display to Team1 the text: +1600 Gold
-
Wait 0.50 seconds
-
Sound - Play SOUND <gen>
-
Q4)a)Can I condense this any?
Sorry for the length, and thank you.