Win Conditions

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Wutman
Newcomer
Posts: 23
Joined: June 14th, 2007, 11:45 pm

Win Conditions

Post by Wutman »

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.
kwoxer
Junior Member
Posts: 41
Joined: June 3rd, 2007, 7:03 pm

Re: Win Conditions

Post by kwoxer »

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 ^^
www.kwoxer.de - das kwoxt
User avatar
weirdone2
Forum Staff
Posts: 926
Joined: June 3rd, 2007, 8:03 pm

Re: Win Conditions

Post by weirdone2 »

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)
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: Win Conditions

Post by Aero »

Easy jass solution:

Code: Select all

TriggerRegisterVariableEvent(yourtrig,"varname",GREATER_THAN_OR_EQUAL,desired#)