From pftq: How to make Kill-counter (exact)
" " = Name/Variable
===============================================
Trigger: Kill Setter
active, run immediately
Condition: QV Stat Value: P2's Enemies Killed => Effect: This trigger counts how many kills you have. Trigger: Kill Counter Condition: QV Compare "Kills" => Effect: This Trigger adds new number of kills to the number of kills yet to be converted to gold. Trigger: Granter Condition: QV Check "Count" => Effect: QV Modify "Count" (-1) This Trigger converts "Count"s to gold. The general idea behind that should work flawlessly, but I may have made a few errors writing it out (gave me a headache). What it does is: 1) Records how many total kills you have. *updated: Forgot two effects [This message has been edited by rjs23 (edited 10-26-2004 @ 06:02 PM).]
QV Set Stat Value "Kills"
Fire Kill Counter
===============================================
run immediately
QV Set "KillsOld" to 0
QV Modify 2 "KillsOld" + "Kills"
QV Modify 2 "Kills" - "Point"
QV Modify 2 "Count" + "Kills"
QV Set "Point" to 0
QV Modify 2 "Point" + "KillsOld"
Fire Kill Setter
===============================================
loop, active, run immediately etc
Grant 50 Gold
=================================================
2) When you have more than before, it subtracts the total kills by previous total kills. Then adds that number to your "Count".
3) When you have at least one count, you lost a count and get 50 gold.