junz13
New Member
- Reaction score
- 1
I need help on a victory condition which depends on a certain kill count. And i want the players to vote on the kill count as well...i need help on the triggers for these.
?vote
Maybe you could be a bit more specific about what you mean by
Quote:
vote
?
Events
KillCount becomes equal to X
Conditions
[Whatever you want]
Actions
Victory (All Players) (Show dialoges, Show scores)
Yeah red selecting the kill count would be easier...does anyone know the trigger?i think he wants a voting trigger like say for example a player types "-40 kills"
if thats the majority, it will be set to that
but i think you should just make red select the kill count
thats usually how it goes lol
Events
Player 1 (Red) types a chat message containing -40 as an exact match
Conditions
Actions
Set KillCountMax = 40
KillCount becomes equal to X
it would need to be a integerKillCount needs to be a Real type variable.
Yeah red selecting the kill count would be easier...does anyone know the trigger?
kc
Events
Player - Player 1 (Red) types a chat message containing -kill count x as An exact match
Conditions
Actions
Set Integer = x
kc
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
Set Integer = (Integer - 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Integer Less than or equal to 0
Then - Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: Defeat!
Else - Actions
that cant be doneCode:KillCount becomes equal to X
theres no integer event
it would need to be a integer
how can you have 1.7 kills for example?
then for it to be a winning condition thing do this
Code:
kc
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
Set Level_Integer = (Level_Integer - 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Level_Integer Less than or equal to 0
Then - Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: Defeat!
Else - Actions
youd have to change some things around but its basiclly what it should be like
easy!!
do this
x= a number you choose
Code:
kc
Events
Player - Player 1 (Red) types a chat message containing -kill count x as An exact match
Conditions
Actions
Set Level_Integer = x
well yes, if its a kill countIsn't that a trigger for defeat?
i was just posting the triggers that he should have used for itThat's almost exactly what I said, but that doesn't really matter.