HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Leaderboard help

08-09-2003, 12:44 PM#1
sirk
hello there. my problem is that i want it so that when u get 50 kills from the leaderboard it rewards u with a hero point to get a hero. any help?
08-09-2003, 01:51 PM#2
Draco
Well u need to have an integer variable probably and set it to how many kills you have (i.e. when player kills a unit, set variable 'kills1' to ('kills1' + 1)

Then you need to do if a player kills a unit, and then check an integer condition to see if it has been 50. or more or whatever.

Don't forget to turn triggers off that you don't need anymore.
08-09-2003, 01:52 PM#3
Fragmentation
u have to trigger this using the variable that adds up kills

u have to set up a trigger where when the game variable has reached 50, trigger a new hero picker spawned in the hero region area or whereever
08-09-2003, 02:55 PM#4
chemo
maybe this work ??

variables:
kills (intenger array)
hero_point (intenger, value: 0 )


trigger 1

E: a unit owned by playerX dies
C:
A: if kills[(player number of (Owner of (Killing unit)))]= 50, then do set hero_point = (hero_point + 1), else do nothing

trigger 2

E: every 2 seconds of gametime
C:
A: if hero_point is equal to 1 then do create 1 altar of heroes for player matching conditions at region xxx, else do nothing

trigger 3

E: a player finishes a training unit
C: Unit is equal to hero1 or hero2 etc.
A: set hero_point=(hero_point - 1)
remove - triggering unit grom the game
08-09-2003, 03:58 PM#5
sirk
nah i dont need any alter of heroes i just want it so that wen it reaches 50 a unit is created in a region
08-09-2003, 04:15 PM#6
chemo
just a suggestion.. cause then u could choose multiple heros...
08-09-2003, 07:53 PM#7
sirk
yeah thx 4 the suggestion but u see wen u get 50 kills i want it to make a wisp so it can choose from 4 heroes. thx 4 the help anyway.