Phantasy Star IV - Combination Skills

Good Morning / Day / Afternoon / Evening everyone.

I am in need of your assistance once again.

In Phantasy Star IV End of the Millenium there is this system of combination attacks where if two, three or four characters activate certain abilities of their roster after every character action has been decided, it will trigger a special combo attack, using up their turns in the process.

For example: When it's the party's turn on the default battle system

if Alex uses Fire and Alisa uses Wind = After all party selections are decided, During the party's turn they both activate "Simoon" (Fire and Wind), and it uses up both their individual turns and they both suffer the cost of the skill (either MP or TP).

Is it possible to code a script that can do this sort of thing? I know there are combination skills and unision skills scripts but those function a little differently.

Can this be done for enemies as well?

Any help is appreciated.
Yeah, this can definitely be done. I did this for my Touch the Stars game before I modified it to have combo skills as a menu option instead. It does require a bit of scripting.
Yeah, this can definitely be done. I did this for my Touch the Stars game before I modified it to have combo skills as a menu option instead. It does require a bit of scripting.
I figured as much, it's times like these where I wish I practiced a bit more in scripting,

If I had some money in I would be more than happy to actually comission someone to do this for me... I don't think that is allowed here...
I figured as much, it's times like these where I wish I practiced a bit more in scripting,

If I had some money in I would be more than happy to actually comission someone to do this for me... I don't think that is allowed here...
You have access to the classifieds forum, you can ask there.
I found a script that does exactly this...

however... when I tested it it seems like the skill does not affect both users and it depends on who casts it first

is there a way to make it so the MP/TP/HP Cost of the skill affects both characters who activate the skill?

is there a way to modify the script so it can override the original skill costs of each spell and register only the cost of the combo skill for both characters using it?

I made it so Fire + Ice and Ice + Fire will activate the same skill... maybe it's causing some interference.
You should just need to add one line after or before line 101
@subject.pay_skill_cost($data_skills[new_skill])
You should just need to add one line after or before line 101
@subject.pay_skill_cost($data_skills[new_skill])

I managed to make it work but now it STILL registers the cost of the skill for one of the battlers... example

when I select x's Fire and y's Ice... Fire costs 4 MP, they both lose 20 MP from the combo attack but the first user to select a skill (in this case x) still loses their 4 MP from the Fire spell used to combine with Ice...
Because it's paid in the previous method.
I would make a small modification and switch two lines

Swap line 46 & 47
then add onto the new 47 && [email protected]_action.combo
So it should look like this
Ruby:
    if @subject.current_action
      item = @subject.current_action.item
      check_for_combo
      @subject.pay_skill_cost(item) if item.is_a?(RPG::Skill) && [email protected]_action.combo
      if @subject.current_action.combo
Untested, but should work.
Thank you so much for this. I promise to let you know if I have any issues.

Original thread: https://forums.rpgmakerweb.com/threads/phantasy-star-iv-combination-skills.144309/