View previous topic :: View next topic |
Author |
Message |
0 The Fool
Joined: 26 Jan 2015 Posts: 5
|
Posted: Tue Jan 27, 2015 1:12 pm Post subject: Adding in combinations abilites |
|
|
Hey guys I was wondering if some could show me how to be able to combine abilities like in battle.
So let's say I'm fighting some body, and I choose a fire spell, and I want to combine it with an ice spell, and make it do something cool. But I also want the option just to do the fire/ice spell alone in battle as well.
Thank you |
|
Back to top |
|
 |
Rya.Reisender Snippy

Joined: 18 Jan 2008 Posts: 821
|
Posted: Wed Jan 28, 2015 12:59 am Post subject: |
|
|
Real combos like that don't work, but you could fairly easily create seperate spells.
Going by your example, let's say you have Fire and Ice and want to combine it to Water. You could simply create 3 skills, Fire, Ice and Water.
If you want to categorize it more you can make a special skill section "Combo" instead of just putting it into your normal spell list.
Of course that's no different than just normal skills. To extend this a bit you could make a plotscript that checks for the skills learned and automatically adds and removes combo skills to the characters that have these skills. I'm not sure how much plotscripting allows, but it most likely also works via multiple heroes. So the script might do "If hero 1 has Ice and hero 2 has Fire add skill Water into the Combo section of both heroes".
Then you just need to call the script on every occurence the combo skills could change (e.g. party member change, after battle if you learn skills from leveling up or after a skill-granting item was used).
If you don't want other heroes to act while a combo skill is prepared you could for example make them "Sleep" for the duration of the skill and then link to the actual skill.
Another approach would be to use elemental counters for it. A monster hit by a fire spell will spawn a "fire gem" monster that is pretty much inactive, can't be targetted and doesn't need to be killed (and probably kills itself after a while). Then if that fire gem is targetted by the ice spell, it will automatically trigger the combo skill "water". _________________ Snippy:
"curt or sharp, esp. in a condescending way" (Oxford American Dictionary)
"fault-finding, snappish, sharp" (Concise Oxford Dictionary, UK)
1. short-tempered, snappish, 2. unduly brief or curt (Merriam-Webster Dictionary) |
|
Back to top |
|
 |
0 The Fool
Joined: 26 Jan 2015 Posts: 5
|
Posted: Wed Jan 28, 2015 3:04 pm Post subject: |
|
|
Okay thanks that is pretty helpful. I'll try it out. |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Sat Jan 31, 2015 5:15 pm Post subject: |
|
|
Hello!
The script commands you want are 'knowsspell' and 'teachspell'. You should set you script to update combos as the after-battle script on every map if you gain skills through levelup, and also the on-close script for the main menu if you can learn spells from items.
If you want to combine skills that two different heroes have, as Rya described, rather than two spells for the same hero, then you might also like to check they're both alive before the skill succeeds. You can do that with tag-checking chain conditions and the "Set tag # if alive" conditions on the heroes. _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
|