Panda_Artist

Humble RPG Fan
Veteran
Joined
Dec 22, 2018
Messages
363
Reaction score
24
First Language
Portuguese
Primarily Uses
RMVXA
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.
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
4,969
Reaction score
4,557
First Language
English
Primarily Uses
RMMZ
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.
 

Panda_Artist

Humble RPG Fan
Veteran
Joined
Dec 22, 2018
Messages
363
Reaction score
24
First Language
Portuguese
Primarily Uses
RMVXA
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...
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
4,969
Reaction score
4,557
First Language
English
Primarily Uses
RMMZ
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.
 

Panda_Artist

Humble RPG Fan
Veteran
Joined
Dec 22, 2018
Messages
363
Reaction score
24
First Language
Portuguese
Primarily Uses
RMVXA
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.
 
Last edited:

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
3,999
Reaction score
1,044
First Language
English
Primarily Uses
RMVXA
You should just need to add one line after or before line 101
@subject.pay_skill_cost($data_skills[new_skill])
 

Panda_Artist

Humble RPG Fan
Veteran
Joined
Dec 22, 2018
Messages
363
Reaction score
24
First Language
Portuguese
Primarily Uses
RMVXA
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...
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
3,999
Reaction score
1,044
First Language
English
Primarily Uses
RMVXA
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 && !@subject.current_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) && !@subject.current_action.combo
      if @subject.current_action.combo
Untested, but should work.
 

Panda_Artist

Humble RPG Fan
Veteran
Joined
Dec 22, 2018
Messages
363
Reaction score
24
First Language
Portuguese
Primarily Uses
RMVXA
Thank you so much for this. I promise to let you know if I have any issues.
 

Latest Threads

Latest Profile Posts

What happens with this list, is it currently possible to buy any of these RPGMAKER at least those that are for PC?

Combat skill combination demostration
grief... finding a font that works with the engine has been a bigger process than I thought it'd be. doesn't help MV loves to scrunch letters next to each other like a football huddle.
The new Phoenix plugin. I drew icons and an interface into it

Forum statistics

Threads
122,182
Messages
1,147,088
Members
160,455
Latest member
fajar82
Top