How to make a "win condition"?
How to make a "win condition"?
Hi and thank you on forehand.
I want to make some sort of win condition, doesnt matter if its made with either ACS or DECORATE, or made of a combination of both.
I want to make a teamgame. With respawning activated.
There is supposed to be a single player on the one team, and the rest on the other team. Making a balance system is not the goal of this ATM.
The forever alone guy should win if a monster crosses a specific linedeff, and i therefore suppose that the line should use:
80: script execute
the others should win if he dies, but tis not really that much of some specialty when he respawns...
1. how to make a team win if an ACS script is called.
2. how to make a team win if a player dies.
I messed stuf up.. again... no1 will understand that suff^...
oh well... >.<
I want to make some sort of win condition, doesnt matter if its made with either ACS or DECORATE, or made of a combination of both.
I want to make a teamgame. With respawning activated.
There is supposed to be a single player on the one team, and the rest on the other team. Making a balance system is not the goal of this ATM.
The forever alone guy should win if a monster crosses a specific linedeff, and i therefore suppose that the line should use:
80: script execute
the others should win if he dies, but tis not really that much of some specialty when he respawns...
1. how to make a team win if an ACS script is called.
2. how to make a team win if a player dies.
I messed stuf up.. again... no1 will understand that suff^...
oh well... >.<
Combinebobnt wrote:i can see the forum league is taking off much better than the ctf ones
GalactusToday at 1:07 PM
are you getting uncomfortable jap
feeling something happen down there
RE: How to make a "win condition"?
while (condition == false) // "condition" can be anything.
{
delay(5);
}
// make whatever team win
{
delay(5);
}
// make whatever team win
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)

Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)

RE: How to make a "win condition"?
well, the condition isnt the problem, the winning thing is the problem :'(
Combinebobnt wrote:i can see the forum league is taking off much better than the ctf ones
GalactusToday at 1:07 PM
are you getting uncomfortable jap
feeling something happen down there
RE: How to make a "win condition"?
Award the team a point: http://zdoom.org/wiki/Team_GivePoints
RE: How to make a "win condition"?
Thank you, I dont have time time right now, but ill try it tomorrow if i can :)
Combinebobnt wrote:i can see the forum league is taking off much better than the ctf ones
GalactusToday at 1:07 PM
are you getting uncomfortable jap
feeling something happen down there
RE: How to make a "win condition"?
Is it possible to use gamemode lump to limit a team in player numbers?
[][][][][][][][][][][][][][][]
Nothing to see here
[][][][][][][][][][][][][][][]
Nothing to see here
[][][][][][][][][][][][][][][]
RE: How to make a "win condition"?
how do i make a player activate an ACS script then he dies? I really need to know that, the one team is supposed to win by killing the other guy :V
Combinebobnt wrote:i can see the forum league is taking off much better than the ctf ones
GalactusToday at 1:07 PM
are you getting uncomfortable jap
feeling something happen down there
RE: How to make a "win condition"?
Two ways. You can either use a DEATH script or an ENTER script that constantly checks if the player's health and gives a winning point to the other team when his health reaches zero.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)

Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)

RE: How to make a "win condition"?
hmm, a DEATH script sounds ideal, but how to make it activate on only one players death?
example:
team 1 wants to win by killing him
team 2 player dont want to die
team 1 is supposed to kill him
team 2 player needs to kill them, else they will get him
team 1 player dies
death script is called
team 1 wins
^ that is my idea of what will happen if its not targeted in any way...
example:
team 1 wants to win by killing him
team 2 player dont want to die
team 1 is supposed to kill him
team 2 player needs to kill them, else they will get him
team 1 player dies
death script is called
team 1 wins
^ that is my idea of what will happen if its not targeted in any way...
Combinebobnt wrote:i can see the forum league is taking off much better than the ctf ones
GalactusToday at 1:07 PM
are you getting uncomfortable jap
feeling something happen down there
RE: How to make a "win condition"?
Well the script type death only activates for that player that dies.Lollipop wrote: hmm, a DEATH script sounds ideal, but how to make it activate on only one players death?
example:
team 1 wants to win by killing him
team 2 player dont want to die
team 1 is supposed to kill him
team 2 player needs to kill them, else they will get him
team 1 player dies
death script is called
team 1 wins
^ that is my idea of what will happen if its not targeted in any way...
http://zdoom.org/wiki/Script_types
RE: How to make a "win condition"?
Is this some sort of "hostage" thing? As in, Team 1 has to kill a player on Team 2 but Team 2 must defend him? If so, you might want to give the "hostage" a token inventory item at the start of each round. Something like "IsHostage". Then you can check for the presence of that item in the DEATH script.
Code: Select all
script 888 DEATH
{
if (checkinventory("IsHostage") == 1)
{
Team_GivePoints(etc etc etc)
}
}
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)

Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)

RE: How to make a "win condition"?
I could easily make a workaround for that, its a good idea and it will fit perfectly into my current scripting :)
Combinebobnt wrote:i can see the forum league is taking off much better than the ctf ones
GalactusToday at 1:07 PM
are you getting uncomfortable jap
feeling something happen down there