- Joined
- Jan 28, 2013
- Messages
- 94
I got a question for a trigger I got in mind. However as I don't know a lot about what causes leaks I decided to ask you people for help. I got the overall picture of trigger in mind and how it'll function. However I am unsure of the Event - [Generic] Unit Dies. I can only imagine that as the trigger needs to check its conditions every time a unit dies, problems may arise.
Event
Unit Dies
Conditions
Unit Type of Dying Unit = (Custom Unit-type)
Actions
Player - Add 100 Gold to Player 1
Hero - Gain x Experience
I have been thinking about making it into a integer so that when x amount of Custom Unit-type is killed, the player will gain an extra reward. But I am not confident enough in my skill to try with integers.
I also got a version of this trigger which will work as a Repeatable Quest.
Event
Unit Dies
Condition
(Custom Unit_1) is Dead = True
(Custom Unit_2) is Dead = True
(Custom Unit_3) is Dead = True
Action
Turn On "Turning Quest In to NPC"
Turn Off "This Trigger"
Does these Events/Conditions/Action cause leaks? How should I solve that? I am sorry for not giving a proper GUI. The computer crashed while I was doing it and I lost the map so I'll have to re-make it. I am only experienced with GUI and simple triggers. Just FYI.
Another thing, is there some guide/post/etc. on here or around where I can get more information about what causes leak and how to avoid them/solve it?
Event
Unit Dies
Conditions
Unit Type of Dying Unit = (Custom Unit-type)
Actions
Player - Add 100 Gold to Player 1
Hero - Gain x Experience
I have been thinking about making it into a integer so that when x amount of Custom Unit-type is killed, the player will gain an extra reward. But I am not confident enough in my skill to try with integers.
I also got a version of this trigger which will work as a Repeatable Quest.
Event
Unit Dies
Condition
(Custom Unit_1) is Dead = True
(Custom Unit_2) is Dead = True
(Custom Unit_3) is Dead = True
Action
Turn On "Turning Quest In to NPC"
Turn Off "This Trigger"
Does these Events/Conditions/Action cause leaks? How should I solve that? I am sorry for not giving a proper GUI. The computer crashed while I was doing it and I lost the map so I'll have to re-make it. I am only experienced with GUI and simple triggers. Just FYI.
Another thing, is there some guide/post/etc. on here or around where I can get more information about what causes leak and how to avoid them/solve it?
Last edited: