My hero died?
Dec 17 2009, 8:48 pm
By: Basteille  

Dec 17 2009, 8:48 pm Basteille Post #1



In my new RPG map, I intent to use all of the triggers in my bag of trigger tricks. There are some of these tricks I do not know... For example, when a hero dies... how may I save his spot as to not bother the player with having to find an unlockable respawn spot?

~Thanks.

(P.S. -> My "b" key isn't working, can anyone help me out? I hate copying and pasting for them. D:)



None.

Dec 17 2009, 8:51 pm Super Duper Post #2



Center a location on the hero?



None.

Dec 17 2009, 8:53 pm Jack Post #3

>be faceless void >mfw I have no face

You can just have a location always centered on the hero dies, and respawn the hero there.



Red classic.

"In short, their absurdities are so extreme that it is painful even to quote them."

Dec 17 2009, 8:54 pm Basteille Post #4



Quote from name:Ciara
Center a location on the hero?

It doesn't work like that, also I've noticed you're helping a lot in UMSMA, and... It's always help with triggers that could relate in some off way to a topic, but it's just plain wrong, centering a location doesn't justify that it's going to save the spot of the unit.

(It relates to it but it's not the whole trigger.)



None.

Dec 17 2009, 8:59 pm Jack Post #5

>be faceless void >mfw I have no face

OK, make a burrowed unit appear where the hero was, owned by player 9 or something, and then when you need to respawn, center the hero location on the burrowed unit and create a new hero. You DO have a location for each hero, right?



Red classic.

"In short, their absurdities are so extreme that it is painful even to quote them."

Dec 17 2009, 8:59 pm Apos Post #6

I order you to forgive yourself!

Center the location if the unit exist in that location.
If the unit isn't there, the location won't move.




Dec 17 2009, 9:13 pm Dungeon-Master Post #7



Something like:

Trigger 1
Condition: P1 commands one HERO

Action: Center location P1 LOC at HERO owned by P1 at ANYWHERE


Trigger 2
Condition: P1 commands 0 HERO
(Whatever you waht to be done for heroes to respawn)

Action: Create one HERO at P1 LOC

Edit: Don't forget to add preserve trigger!



None.

Dec 17 2009, 9:19 pm Neki Post #8



Quote from Apos
Center the location if the unit exist in that location.
If the unit isn't there, the location won't move.
This is correct. Either use a secondary location to do this, or use one of your main locations that you're probably going to center on the unit. As long as your unit exists in the location (or as long as you command a unit), center the location. If your unit no longer exists, the trigger will stop running, and the location will be centered on the last spot the hero was before he died/was removed.



None.

Dec 17 2009, 9:22 pm Marine Post #9



Quote from name:Lyoko367
It doesn't work like that...

Yes it does.
Do this:
Quote from Apos
Center the location if the unit exist in that location. If the unit isn't there, the location won't move.

Make sure that you don't have two of the same hero for the same player. Some rpg's have that hero on display somewhere else to indicate you're that hero.



None.

Dec 17 2009, 9:44 pm FlashBeer Post #10



Concerning the B key problem:
If you use [right click + paste] each time you want to type 'B'
you can instead hit the shortcut [Ctrl + V].
Conversely, you can use [Ctrl + C] to copy.



None.

Dec 17 2009, 9:55 pm Super Duper Post #11



Quote from name:Lyoko367
Quote from name:Ciara
Center a location on the hero?

It doesn't work like that, also I've noticed you're helping a lot in UMSMA, and... It's always help with triggers that could relate in some off way to a topic, but it's just plain wrong, centering a location doesn't justify that it's going to save the spot of the unit.

(It relates to it but it's not the whole trigger.)
Center the location on the hero. When it dies, the location stays in that spot.

Condition: Always

Action: Center location 1 on jim raynor

New Trig:

Condition:
Player commands 0 jims
(whatever)

Action:
Create 1 Jim raynor at location 1.
Preserve trigger.

This is correct. It will respawn the hero where it died. This is not wrong and while I may have 1 or 2 posts wrong every now and then does not mean I am clueless at map making.
If this is not what you are looking for, your original post wasnt clear either.



None.

Dec 17 2009, 9:55 pm Basteille Post #12



Quote from FlashBeer
Concerning the B key problem:
If you use [right click + paste] each time you want to type 'B'
you can instead hit the shortcut [Ctrl + V].
Conversely, you can use [Ctrl + C] to copy.

That's what I'm doing, I want an alternative option. o.o



None.

Dec 17 2009, 10:01 pm NudeRaider Post #13

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

- [Windows key] + r ==> charmap
- [Alt] + 98 (need to use keypad numbers!)
- buy a new keyboard. (recommended)

Also, the next one repeating the same (correct) solution will get his post deleted... -.-




Dec 18 2009, 8:13 am rockz Post #14

ᴄʜᴇᴇsᴇ ɪᴛ!

clean your keyboard.

If you always center a location on a unit, and the unit does not exist, the location will be centered in the middle of the map. That's why you need to turn off the center trigger when the unit isn't there. One method is via an arena location. If you don't bring the unit to the large location, the unit isn't there, and you shouldn't center the location. If the unit can't die via triggers, you can detect deaths instead.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Dec 18 2009, 9:43 pm InsolubleFluff Post #15



P1 brings atleast 1 <hero unit> anywhere;

Ceter p1 on <hero unit> owned by p1 at anywhere;
preserve trigger;
comment"";



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[02:14 am]
Oh_Man -- pluto vs pro gamer snow: https://youtu.be/NOXXpATkdZU
[2026-9-25. : 2:22 pm]
Oh_Man -- https://youtu.be/Lfo4C0xzU04
[2026-9-25. : 12:00 am]
Oh_Man -- he hasnt won a single game so far this is hilarious
[2026-9-24. : 11:41 pm]
Oh_Man -- new arty username Rage Against The Machine
[2026-9-24. : 10:14 pm]
Oh_Man -- https://m.youtube.com/watch?v=KPXri8q9ZBs artys vsing the bot now
[2026-9-24. : 8:12 pm]
Ultraviolet -- do you even lift bro?
[2026-9-23. : 5:21 pm]
NudeRaider -- Oh_Man
Oh_Man shouted: NudeRaider yeh thts straight up cheating
the mutas yes, the wraiths probably not. Have you even watched the video? ;)
[2026-9-23. : 12:56 pm]
Oh_Man -- NudeRaider
NudeRaider shouted: Oh_Man Artosis hasn't caught on how devastating the perfect focus fire is. With the mutas he was like "the Mutas always seem to have less hp than against a human". But he didn't notice that the flock he had selected always just had one muta that was hurt. Same with the wraiths here. He's talking about how valks+wraith is gonna destroy Pluto's valks, then 5s later he's dumbfounded the human player's air is just gone and he never figured out why. And for some reason didn't even think to go back and look at the battle.
yeh thts straight up cheating
[2026-9-23. : 12:24 pm]
Oh_Man -- arty's done another vid. he's also announced he's going to organise showmatches with pro, with NO maphacks, so we can see its actual capabilities
Please log in to shout.


Members Online: Zycorax, Oh_Man