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.

Is there a way to restrict party member only in map/menu?

I'm guessing this is a kinda wierd request or question but...

I kinda figured out how to increase party members (in the script) but I was wondering if it's possible to restrict it to a certain amount "only" in map/menu? What I mean is, for example:

- I want in map field and menu to be restricted as 4 members.
- Only in battle, to have 5 party member.

The reason is so that I can summon a character ID in only the battle Field. I sorta figured out with common events to remove the summoned character ID after battle but for example, if I end up using one of those large party member scripts, it pretty much screws my ideal method.

Hopefully that made some sense and it's not something extremely hard to modify. ^^;;

Thanks in Advance.
 
Your sentances are sort of difficult to understand, but I think you could get the effect you are going for by adding an event to each of your troops to add the fifth character. You could set a parallell process on the map screen to check a variable and remove the fifth character if he is present or something.

Anyhow, that is probably the easiest way to do it using events only; but given the fact that you posted this in the scripting section, perhaps that is not what you are going for.

Scripts anyone?
 
I apologise for any confusion. However, as you mentioned, I was curious if it's possible to modify somewhere in the script. I do thank your suggestion as that was originally what I was doing but I don't see how it can be managed to restrict the party size by variable. (unless I'm completely missing something)

One thing did come in mind during work today is if I can manage to actually call the script up to modify the max party size with events, it problably would solve the problem I'm having. Now problem is... what is the syntax for changing the party size. ^^;;
 
Sorry, I cant help you with a script; but to answer part of your question about the variable (or I suppose you could even use a couple switches if it is just one character position you're changing):

Just create two switches. One called "5th Character", and just below that another called "In Party" or something similar.

When the fifth character becomes available, just throw a command in the event that turns "Fifth Character" on permanently.

In your troop events add a condition under each troop to check if "Fifth Character" is set to "on". If fifth character is on, insert a command to turn "In Party" on, as well as the command to actually add the Fifth actor to the party.

On your map create a parallell process event. Create a conditional branch to check and see if "In party" is on. If it is on, add a command to turn it off, as well as a command to remove the fifth actor from your party.

You may want to make this event looping, with a 10-15 frame wait afterwards, to avoid any hiccups.

Now someone give this man a script, so he doesnt have to add this event to all of his troops! 
 

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