Staredit Network

Staredit Network -> UMS Assistance -> A better revival trigger?
Report, edit, etc...Posted by JordanN_3335 on 2006-07-21 at 14:37:35
Ok so back to my spy rpg im making a trigger for when the teamate dies and someone go to the revival area it well revives them but im wondering is there a better way.

[Players]
Player 1,2,3,4,5,8

[Condition]
Current brings exactly one men to revival spawn 1
Players 1-8 command zero men

[Trigger]
Create 1 (undecided yet) at revival area spawn 1

But I have a feeling its gona glitch up can someone help me here please and thank you.
Report, edit, etc...Posted by Killer_Kow(MM) on 2006-07-21 at 14:38:39
a) Preserve trigger

b) Make sure you have a seperate trigger for each player's revival.
Report, edit, etc...Posted by TheHappyHobo on 2006-07-21 at 18:44:52
QUOTE(JordanN @ Jul 21 2006, 01:37 PM)
Ok so back to my spy rpg im making a trigger for when the teamate dies and someone go to the revival area it well revives them but im wondering is there a better way.

[Players]
Player 1,2,3,4,5,8

[Condition]
Current brings exactly one men to revival spawn 1
Players 1-8 command zero men
[Trigger]
Create 1 (undecided yet) at revival area spawn 1

But I have a feeling its gona glitch up can someone help me here please and thank you.
[right][snapback]528173[/snapback][/right]


I'm not absolutely positive, but I think that if it will only work if one of the players (1,2,3,4,5,8) brings a unit to the location AND only if none of them have any units, it won't work because they won't have any units to bring to the location.
I think what would work would be that you keep everything you have, add a preserve trigger, but make sure that instead of:

Players 1-8 command zero men

you use:

Player 1 commands zero men

And then do what Killer_Kow said and make a different trigger for each player. (i.e. Condition for next one would be Current player brings at least 1, Player 2 commands zero men, etc.)
Hope I helped.
Report, edit, etc...Posted by Corbo(MM) on 2006-07-21 at 18:57:00
Hmmm im not sure about this either but...

Players (the number of players you want), you must check box by box not just "all players".
allies bring at least 1 men to revival point
current playr brings men to anywhere

create 1 Xunit for current player at revival
preserve
!
Report, edit, etc...Posted by MoonlighTurtle on 2006-07-21 at 22:09:39
Corbo has the right idea in that the person running this trigger is the one that should be revived, and that his "allies" or all players are the ones that need to bring at least 1 unit to the revive location.

And I believe in the condition corbo posted "current playr brings men to anywhere" he just forgot to put a 0 before men.

Doing it the other way, so that the person who is running the trigger is the one who is reviving another player will only result in having to make separate triggers to revive, because you can't use currentplayer.
Report, edit, etc...Posted by Corbo(MM) on 2006-07-22 at 00:15:45
QUOTE(MoonlighTurtle @ Jul 21 2006, 08:09 PM)
And I believe in the condition corbo posted "current playr brings men to anywhere" he just forgot to put a 0 before men.
[right][snapback]528568[/snapback][/right]

Thanks happy.gif
Report, edit, etc...Posted by (U)Bolt_Head on 2006-07-22 at 06:06:17
... why not use...


Players:
- human players
Conditions:
- Current player commands exactly 0 dude
- Human Force brings at least one dude to respawn
Actions:
- Create one dude for current player at respawn
- Preserve Trigger

So that would do it, you would probolly want to have a seperate one for each team if that applies.
Report, edit, etc...Posted by Grand_Dracolich on 2006-07-22 at 08:48:11
If you're using a class system like Omicron or Gate of Darkness 3 RPGs. then you'd need a switch and trigger for each class. Like:

Player 1 (the person who's dead)

Current player commands at most 0 warrior
Heroes brings at least 1 respawner to respawn
Red is Warrior is set

Create 1 warrior at start
remove 1 respawner at respawn
preserve trigger

This worked perfectly on my first time smile.gif .
Report, edit, etc...Posted by MoonlighTurtle on 2006-07-22 at 15:05:43
QUOTE((U)Bolt_Head @ Jul 22 2006, 05:05 AM)
... why not use...
Players:
- human players
Conditions:
- Current player commands exactly 0 dude
- Human Force brings at least one dude to respawn
Actions:
- Create one dude for current player at respawn
- Preserve Trigger

So that would do it, you would probolly want to have a seperate one for each team if that applies.
[right][snapback]528775[/snapback][/right]


That's basically what Corbo posted, although yours is formatted in a way that's easier to read.
Report, edit, etc...Posted by (U)Bolt_Head on 2006-07-25 at 06:15:50
I suppose, but corbo didn't mention how many men current player needs to bring for the condition.

If it is exactly 0 then it will just create a guy for everyone who has died. If it is at least one then it will give everyone who hasn't died second units and then continue going off. Since he didn't specifiy my first though was "bring at least or exactly 1".
Report, edit, etc...Posted by kholdstare on 2006-07-25 at 09:53:15
Well this is my version.


Players: Whoever you want

Example for P1 Reviving P2

Conditions: Player 1 brings 1 'unit' to 'location'
Player 2 commands exactly 0 units

Actions: Create 1 'unit' at 'location' for player 2.
Preserve trigger

Of course, you'll have to make on of hese triggers for player 1 for everyone player playing except player 1, and same for everyone else. You cant take the lazy way out and only make 1 simple trigger.
Report, edit, etc...Posted by MoonlighTurtle on 2006-07-25 at 15:10:00
QUOTE((U)Bolt_Head @ Jul 25 2006, 05:15 AM)
I suppose, but corbo didn't mention how many men current player needs to bring for the condition.

If it is exactly 0 then it will just create a guy for everyone who has died.  If it is at least one then it will give everyone who hasn't died second units and then continue going off.  Since he didn't specifiy my first though was "bring at least or exactly 1".
[right][snapback]530931[/snapback][/right]


He didn't mention the number of men current player needs to bring for the condition which is why I said

QUOTE
And I believe in the condition corbo posted "current playr brings men to anywhere" he just forgot to put a 0 before men.


And in response to that Corbo said thanks.

And with it being 0 men, creating a guy for everyone who has died is the point of a revival trigger.
Report, edit, etc...Posted by fritfrat(U) on 2006-07-25 at 17:35:25
Bolt's stated method works great and it's only 1 trigger, so use that.
Next Page (1)