Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Tiny Question...

I have multiple hero's but I want to enable the function to (in the intro) choose whitch hero you will use... Also i want this to effect the entire game (later joins..). Maybe someone has a script or something...

And no, i'm not new to RPG XP...

Also, sorry if this is already posted because I couldnt find it...
 
It's quite vague what you are asking for. Making a hero select screen isn't hard, and thus, it can be done through eventing at that.

I'm not sure exactly how you want it to affect the game by your post. Shall it only affect the order of appearance of which party members join the party? Like if you choose Actor A at first, Actor B joins later and vice versa? Or do you mean it shall affect the entire story and gameplay based on the actors?

In the end, this can all be done through eventing, it just might not look as good.

My tip: Study Conditional branches. You can do a lot with them. For this, you would probably be using Actor x in party quite a lot, if this is to be done through eventing, that is. Learning every aspect of conditional branches is wise, so go ahead and do that ^_^

Hope this leads you to the right track.
 
If your wanting events to differ according to which character you selected you will have to use variables and switches to do this I believe here is an example

At start screen

Show Choices
When Hero Male Selected
Change Actor Graphic to [Arshes]
Set Variable [0001 Male Hero] to (x) Corresponding number
      Transfer Player:[map x] (x= corresponding map)

When Hero Female Selected
When Hero Female Selected
Change Actor Graphic to [Hilda]
Set Variable [0002 Female Hero] to (x) Corresponding number
      Transfer Player:[map x]

Interaction with npc's on map

Knight (npc) Selected by Male Hero
@>Conditional Branch: Variable [0001:Male Hero]==[Variable 0001:Male Hero]
@>Hello Sir can I help you?
:  Else
@>
  Branch End
@>
....or if female Hero was selected

Knight (npc) Selected by Female Hero
@>Conditional Branch: Variable [0002:Female Hero]==[Variable 0002:Female Hero]
@>Hello Miss can I help you? May I say you look quite beautiful.
:  Else
@>
  Branch End
@>


Hope that is clear and what you were asking
 
oo; You don't have to use one variable per character..you can use one variable for them all

Such as

"Male 1=1"- "Male 2=2"- "Female 1=3"- "Female 2=4"

So when you go and set up a C-branch, Just check the Hero variable.

>If [HERO]=2
>   show text "Uhm...We are closed, Sorry!"
>  Else
> Show text "Hello! How may I help you today?"

And whatnot.

Oh! as for the selection screen, Just make a map with the characters you want to be able to select as events. And if you go up to one and press space bar, Make a message like "Are you sure you want to pick /n[1] as your Hero?"

So it would look like this

>Show Text "Are you sure you want to pick /n[1] as your hero?"
>Show choices "Yes, No"
>  [Yes]
>   Change variable [HERO]= 1
>   Change Graphic
>   Teleport
>  [No]
>
>end


If you need any other help on this, PM me.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top