Hero Selecting Help

  • Thread starter Thread starter ViralGuard
  • Start date Start date
V

ViralGuard

Guest
Hi,
Im creating an RPG, it starts like this:
You have a wisp, you go to a building, you choose hero, But
When you chosen hero, I want it to be spawned on <rect 001>....

Thanks in Advance
 
Advice

Okay, if this is what you wanted to do, you might want to have a small area at a corner of the map where people have a wisp and they walk to a hero they want. If you do that then you could use this trigger:

Events:A unit comes within 50 (doesn't matter what collision size is) of (Passive Hero)

Conditions:Unit-type of (triggering unit) equal to wisp

Actions:Change ownership of (Passive Hero) to (Owner of (Triggering unit))
Move (Passive Hero) instantly to (rect0000<gen>(or whatever your region is))
Kill Wisp

Hope this helps. Good luck with your RPG

~Jindo
 
Not Really What I Want, I'll wait some time for more answers, if i don't get any, I'll try that, thanks anyway:)
 
This is what I use for charcter selects

Events
Unit - A unit enters <Region next to chosen hero>
Conditions
(Unit-type of (Entering unit)) Equal to Wisp
Actions
Camera - Pan camera for (Owner of (Triggering unit)) to (Center of <Region where you want hero to spawn>) over 0.00 seconds
Unit - Remove (Triggering unit) from the game
Unit - Create 1 <Chosen Hero> for (Owner of (Triggering unit)) at (Center of <Region where you want hero to spawn> facing 90.00 degrees

This way you have to make a script for each hero. I use it because I want, for instance all undead heros to appear at the graveyard etc.
 
I agree with Kershbob, but an idea is to have circle's of power in front of your hero so that when you enter a circle you get that hero.

Just a thought...
 
First off: You stole my line! Lol. :P

Second off, that trigger does exactly that, people. The region can be layed over a circle of power. Or you can use the circle of power (I think, anyway) instead of a region. That's how most Hero Selection triggers work.

So yes, that is the trigger you would need. (If it works, that is)
 
Yeah the region would be in a center of power. But some people think those are ugly so you can just draw the region over the hero you want to select.

And if you want to make only one of each hero, just add a "remove unit from game" line in the actions.
 
Thanks alot guys.!!!

I also wonder,
When hero walks to <rect00> he should be taken to another rect, and some text should show up saying: you require lvl 20 to go there etc....
 
Right so your saying you want a region that "pushes" units back a bit unless they are lvl 20?

I think yo ua need a variable for this that adds 1 when ever the hero levels up.

[EDIT] Is this a single player RPG?
 
The only way I can think then is setting up a variable for each player which counts their level.

Then adding a trigger saying "unit enter a region" conditions = "owned by player 1" and "levelPlayer1 is less that 20"

action "move unit instantly to region" and "display message:"no!""
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Real users can't really disable Javascript anymore these days.
  • Ghan Ghan:
    The internet is broken without it.
  • Ghan Ghan:
    Bot readable, not human usable.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/
  • The Helper The Helper:
    Also on the bottom right side bar we now have a Trending Content Box!
    +1
  • The Helper The Helper:
    Not on the Headline News page just on the Forums page can we get that Featured and Trending on the home page?
  • Ghan Ghan:
    Since the home page is technically a forum, it now shows on all forum views. Still in the sidebar.
    +1
  • The Helper The Helper:
    Happy Friday! Hope everyone has a fantastic day and an even better weekend!
  • The Helper The Helper:
    Happy Sunday!
  • The Helper The Helper:
    I lovc that I can post webp and X links now! :)
  • The Helper The Helper:
    Happy Thursday!
  • 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 Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top