Tutorial: How to give awards for "defeating player"<<Updated

 Blueway


Edited 12 August 2011 - 9:42 am by Blueway
This is a combinations of triggers that will help you get rewards for defeating a player.



Trigger 1 starts on looping on (in AOKTS)

Condition: Accumulate attribute: 1 razing
Condition: Timer 4
Effect: Send Tribute: 1 razing from p1 to gaia



Trigger 2 starts on no loop
Condition: Accumulate attribute 1 razing
Condition: Player defeated P2
Effect: (choose reward: +hp at units, +attack or something else)


Trigger 3 starts on no loop
Condition: Player defeated P2
Condition: Timer 2
Effect: Deactivate Trigger 2




I will explain what all triggers do:

Trigger 1: Sets maximum razing to 1. When player haves 1 razing counter returns to 0.
Trigger 2:Player defeated---> The one who defeated him gets reward
Trigger 3: If player doesn't exists from the start, the reward trigger (trigger 2) is deactivated. Also if p2 gets defeated and p1 hasn't made any razing then it means that other player defeated that player so the reward trigger is deactivated.

Have fun using those triggers (i would love to see them at Path Blood).
With joy, Blueway.
Link | Reply | Quote
 T3nchy


Posted 12 July 2011 - 9:10 pm
Only problem with that is, when you come to view the match results, it will show everyone as having 0 razings
Link | Reply | Quote
 Blueway


Edited 12 August 2011 - 9:41 am by Blueway
That's not a big problem :)


Link | Reply | Quote
[1]
Displaying 1 - 3 out of 3 posts
Forum Jump:
1 User(s) are reading this topic (in the past 30 minutes)
0 members, 1 guests

What's popular right now: