Hero spawn points

  • Thread starter Thread starter The_Master
  • Start date Start date
T

The_Master

Guest
Ok, im a little lost on the WC3 editor becuase im too used to the SC one...
Im making a map where at the start, the people get to pick their heros. When the hero dies, it should be able to revive, but only twice. I dont think you need much more of a description about the map than that, but if you need more info tell me

so here goes-
First off- after they pick a hero, the hero spawns.
Code:
Events-
   Unit- A unit enters Hero1 <gen>
Conditions-
   Hero1 less than 2
   (unit-type of (triggering unit)) equel to selector
Actions-
   Unit- replace (triggering unit) with a Hero1 using The new unit's Max life and mana
   Unit- move (last replaced unit) instantly to (position of (random unit from (Units of type start area)))
   Camera- Pan camera for (owner of (triggering unit)) to (position of (last replaced uint)) over 0.00 seconds
What i want differant is- I'm currently using wisps to tell the game where to spawn the heros (much like what Resident Evil X does). But wisps obviously give away the spawn points, which for my map, is a bad thing. what trigger can i use so the spawn points arent so obvious??


Second- When i hero dies, i need it to revive at one of those random points. The heros can only revive twice after their death. What trigger can i use to do this?

I tryed looking at Ryoko's site, and it helped a little, but not as much as I hoped.... if theres a link explaining how to do what i want done, please, by all means, post the link.

THX in advance ^_^
 
ops, quick side note. the most important thing about what im asking is RANDOM locations. I need to be able to have the hero spawn in a certain set of locations. If the hero spawns in a location it shouldnt be at, it needs to be instantly moved to yet another location until its in an acceptable one.
 
Revive
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Deaths <variable, make one for each player> Greater than or equal to 2
Then - Actions
Do nothing
Else - Actions
Set Deaths = (Deaths + 1)
Hero - Instantly revive (Dying unit) at (Random point in (Playable map area)), Show revival graphics
 
^.^ okies, i got that all pat-down and working right... but im still unsure of how to make the hero respawn twice and only twice...
 
see my above post for th trigger. make sure to make a variable called deaths, an jus make one of these for each hero
 
:-/ thats the part i screwed up on... the variable. What should the variable type be? And when you say to make one for each hero, do you mean for each type of hero or for each player with a hero?
lol, sry for bustin ur chops >_< This is my first map ever...
 
make it a real variable, (thats the type) and make one for each player
 
I would create an integer variable to count the number of revives of a hero.
But if you create only one var for player, you are only allowed to have one hero at a time
(or more than one hero but sharing the number of lives!)

Maybe you can use the custom unit data to store the number of revives
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper
  • Stephen Stephen:
    Oh no - please don't lose the Nuon content
    +1
  • The Helper The Helper:
    Someone email AtariAge and see if they want me to transfer the forum data over to it
  • Ghan Ghan:
    Could probably keep NUON stuff around here if we wanted.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.
  • A Andyoyo:
    Thank you for the hard work over the years. It did not go unnoticed.

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top