- Joined
- Apr 8, 2016
- Messages
- 58
Case:
when 2 player pick the same quest, and the one of them already done the quest first, then the another one's quest become not working. (sorry for my bad english)
Pict
1
2
3
when 2 player pick the same quest, and the one of them already done the quest first, then the another one's quest become not working. (sorry for my bad english)
Pict
1
-
gettingquest1
-
Events
- Unit - A unit Acquires an item
-
Conditions
- (Item-type of (Item being manipulated)) Equal to Quest: Memburu Srigala
-
Actions
- Trigger - Turn off (This trigger)
- Trigger - Turn on killcounter1 <gen>
-
Events
2
-
killcounter1
-
Events
- Unit - A unit Dies
-
Conditions
- ((Killing unit) is A Hero) Equal to True
- (Unit-type of (Triggering unit)) Equal to Srigala
-
Actions
- Set pgroup = (Player group((Owner of (Killing unit))))
- Set kills1[(Player number of (Owner of (Killing unit)))] = (kills1[(Player number of (Owner of (Killing unit)))] + 1)
- Game - Display to (Player group((Owner of (Killing unit)))) the text: ((String(kills1[(Player number of (Owner of (Killing unit)))])) + (/20 + Srigala telah dibunuh.))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- kills1[(Player number of (Owner of (Killing unit)))] Equal to 20
-
Then - Actions
- Game - Display to (Player group((Owner of (Killing unit)))) the text: 20 Srigala telah te...
- Trigger - Turn off (This trigger)
- Trigger - Turn on reward1 <gen>
- Else - Actions
-
If - Conditions
- Custom script: call DestroyForce(udg_pgroup)
-
Events
3
-
reward1
-
Events
- Unit - A unit comes within 256.00 of Marley 0118 <gen>
- Conditions
-
Actions
- Trigger - Turn off (This trigger)
- Game - Display to (Player group((Owner of (Matching unit)))) the text: Imbalan: 400 Exp
- Hero - Add 400 experience to (Matching unit), Hide level-up graphics
- Sound - Play QuestCompleted <gen>
- Set kills1[(Player number of (Owner of (Killing unit)))] = 0
- Trigger - Turn on gettingquest1 <gen>
-
Events