Go
Wc3C.net
»
Warcraft III Modding
»
Developer's Corner
»
Triggers & Scripts
»
Leaderboard Question
Leaderboard Question
02-15-2003, 04:53 AM
#1
BananaTwist
how do i make it so when a unit enters a regeon it subtracts 1 from the value on the leaderboard
02-15-2003, 04:59 AM
#2
DaKaN
Unit Enters Region (pick the region)
Conditions (unit is of type whatever) if you need it or owned by player, whatever you might need
Set Varible = to Arthmatic (varible - 1)
Update Leaderboard with Value (varible)
02-15-2003, 05:04 AM
#3
BananaTwist
Ok, now how do i make it so when that variable gets to "0" it defeats players.
02-15-2003, 05:51 PM
#4
Electromancer
Just do an if then else statement. If variable = 0 then do defeat player, else do nothing. Easy as pie.