Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Add-Party-Member in Fight

BlueByt3

Villager
Xy$
0.00
Hey guys, I am working on some class mechanics at the moment and one is calling on a Party-Member Summon so to say.

I am using

$gameParty.addActor($gameVariables.value(4)); // 4 is variable with the ID of the member i want to call

afterwards I use

Summon ID: \v[0004]

to check for the ID used.

As it seems it adds the actor - but hes has no sprite....in the fight....etc. :) help?

As I dont have knowledge on javascript at all - just copy pasta

Thx.
BlueByt3
 

Deezil907

Villager
Xy$
0.00
You can do it with common events.
Make sure you create the actor to summon, also you may require a party manager plugin (like Yanfly's PartySystem) that will allow you to add more characters in battle.

Create a common event: i.e. Summon Hero X
within the Summon Hero X common event, put in 'Change Party Member: Add Hero X'
then set up a Control Switch, call it 'Summoned' to ON.

Create a second common event: i.e. Unsummon, set the trigger to parallel, and the switch to 'Summoned'
within the second common event, put in 'Change Party Member: Remove Hero X'
then set Control Switch 'Summoned' to OFF.

As long as you have room in the party, you should be able to have the summon jump right in. Also the parallel event doesn't remove the summon til after the battle which is nifty, as you can add all your summons to just that one common event and not have to create individual ones to remove any summons.
 

BlueByt3

Villager
Xy$
0.00
Ill have to look into this with the controll switches might be interessting, but fact is - Ill be using plenty of actors that'll be summoned from item inside and outside of battle switching whenever a new item is used (max +1 actor) and a class that can summon and desummon those monsters as a mechanic for something more unique. I dont know If I can add this controll switch scenario as I am using Items to define the summoned monster Item ID -> calls actor ID. I guess I'll think about if i can use what youve suggested.
 

Deezil907

Villager
Xy$
0.00
The switches shouldn't matter if you are adding and dismissing members, just need to make sure you've actually created the actor in database, and have enough space in the party to accommodate the new actor added.
 

BlueByt3

Villager
Xy$
0.00
This is solved now too and was related to Item_ID thread from me - LordBones solved it. The code wasnt wrong I messed up the variables.
 
Top