I'm making a hero arena, and if someone could tell me how to make it so that once u get a certain number of kills on the leaderboard, you win. also if someone could tell me how to let the host chooose. Like type -20 kills or -30 kills or anything.
P.S: I didn't know what GUI triggers are so I post my trigger problems here, if it is supposed to be in that section could someone tell me, and I'm sorry.
Win Conditions
Moderator: Cheaters
-
- Junior Member
- Posts: 41
- Joined: June 3rd, 2007, 7:03 pm
Re: Win Conditions
number of kills, would be best if u do it in a var
mhh y and the -20 kills :
Spieler - Player 1 (Red) types a chat message containing -20 kills as a Sub-String
mhh yeah must work so and player red is the triggering Player ^^
mhh y and the -20 kills :
Spieler - Player 1 (Red) types a chat message containing -20 kills as a Sub-String
mhh yeah must work so and player red is the triggering Player ^^
www.kwoxer.de - das kwoxt
-
- Forum Staff
- Posts: 926
- Joined: June 3rd, 2007, 8:03 pm
Re: Win Conditions
Whenever the variable for your using to keep track of the players kills = the variable for needed amount then call victory. for the seting just have player types a chat string -kills then set your variable for needed amount to substring(geteventplayerchatstring(),6,7)
-
- Forum Staff
- Posts: 829
- Joined: January 28th, 2007, 8:10 pm
- Title: JASS Programmer
- Location: Canada
Re: Win Conditions
Easy jass solution:
Code: Select all
TriggerRegisterVariableEvent(yourtrig,"varname",GREATER_THAN_OR_EQUAL,desired#)