- Joined
- Apr 8, 2016
- Messages
- 58
i made a quest for my rpg map, help me to make this quest trigger repeatable, like quest in twilight rpg map.
Thankyou & sorry for my bad english
here my triggers
TRIGGER 1
TRIGGER2
TRIGGER 3
Thankyou & sorry for my bad english
here my triggers
TRIGGER 1
-
GettingQuest
-
Events
- Unit - A unit Acquires an item
-
Conditions
- (Item-type of (Item being manipulated)) Equal to quest
-
Actions
- Trigger - Turn off (This trigger)
- Trigger - Turn on KillCounter <gen>
-
Events
TRIGGER2
-
KillCounter
-
Events
- Unit - A unit Dies
-
Conditions
- ((Killing unit) is A Hero) Equal to True
-
Or - Any (Conditions) are true
-
Conditions
- (Unit-type of (Dying unit)) Equal to Gnoll
- (Unit-type of (Dying unit)) Equal to Gnoll Poacher
-
Conditions
-
Actions
- Set PGroup = (Player group((Owner of (Killing unit))))
- Set Kills[(Player number of (Owner of (Killing unit)))] = (Kills[(Player number of (Owner of (Killing unit)))] + 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Kills[(Player number of (Owner of (Killing unit)))] Equal to 1
-
Then - Actions
- Game - Display to (All players) the text: 1/3 gnoll telah dib...
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Kills[(Player number of (Owner of (Killing unit)))] Equal to 2
-
Then - Actions
- Game - Display to (All players) the text: 2/3 gnoll telah dib...
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Kills[(Player number of (Owner of (Killing unit)))] Equal to 3
-
Then - Actions
- Set Kills[(Player number of (Owner of (Killing unit)))] = 0
- Game - Display to (All players) the text: 3/3 gnoll telah dib...
- Trigger - Turn off (This trigger)
- Trigger - Turn on Reward <gen>
-
Else - Actions
- Do nothing
-
If - Conditions
- Custom script: call DestroyForce(udg_PGroup)
-
Events
TRIGGER 3
-
Reward
-
Events
- Unit - A unit Uses an item
-
Conditions
- (Item-type of (Item being manipulated)) Equal to quest
-
Actions
- Item - Remove (Item carried by (Hero manipulating item) of type quest)
- Hero - Add 2000 experience to (Hero manipulating item), Hide level-up graphics
- Sound - Play QuestCompleted <gen>
-
Events