Side Stories - Battle Commands

Battle Commands

There's a lot involved in creating a battle... Unfortunately, it's not just 'Slime Girl - Fight!'... When creating a battle, you're responsible for everything. Yeah, it makes sense to be responsible for everything, but you'd think it'd already be there... you know, you're just creating a side story...

That said, there are only two actual battle commands, neither of which have options. Everything is set up in variables that you set in the story.ini file. You cannot have more than one battle in a single story.ini file.

battle
The battle command initiates the battle sequence. At this point, the battle hasn't actually started, but sprites have displayed, critical settings are loaded, etc. After issuing the battle command you can have your monster talk.



Anyway, that's an example... Anything that you write between the battle command and the battle_st command is battle intro speak. You can do whatever you want, you can write hundreds of lines or you can write nothing. Your choice...

battle_st
At line 10, there's battle_st... that's the actual start of the battle. Once you've run that command the battle will start... You're going to need to have all of your settings done before that... The reason you can only have one battle in one story.ini file is because of the settings and how they work. There's no ability to duplicate them successfully within the same story.ini as they're all listed under chapter headers. Since there's no initiation to battle, you can't break it into separate areas. for example - you can't say '1 = "battle,SlimeGirl " and have it pick specific items for a specific battle set...

It's still possible to have multiple battles within a side story, just not within the same story.ini. Using the Restart Command you can include as many story.ini files as you'd like... :)

To do this, you must use sub folders... your folder structure will look a little bit like this...

sidestory\

sidestory\section1\

sidestory\section2\

sidestory\battle1\

sidestory\battle2\

additionally you can use the restart method to extend / organize your story... :)

battle settings
The battle settings are passed through specific subs / chapters in your side story. This is why you're only able to have one battle per story.ini file. It's unfortunate, 'cause it could have set up with a single option. Anyway, doesn't matter. That's the way it is, so play by the rules, right?

You'll need the sections [data], [sel], [anno], [ondari], [victory] and [lose]. Below is a list of the settings you set in each of these areas as well as what they do.

I will work on this over the next few days, keep an eye open, it'll all be explained in time... :)

It should be noted that I'm adding to this section as I figure it out (and get it written); in some cases there may be things that are explained wrong; for that I apologize and request your knowledge, if you see something that's wrong, let me know and I'll fix it... I intend to have this fully written within a week or so; but never know, so many things in life don't go according to plan, so - well... we'll see...

Beyond that, I will not be posting this in a sensible order, though as I add more I will try to sort it properly... I'm mainly stating that because the next section that I'm adding is dependent on a section I've not yet added... Hence the dilemma, and if its happening now it may happen again...

[data]





 * The pictures are got from the .NSA archive by default. You can use custom images, to do so - use filename with the extension as the tatie1 argument. Example: tatie1="qbeS.png" (Cecil Adventures). Supported extensions are .bmp, .jpg and .png. Warning: if you have used the custom tatie1 image - others 3 must be custom too.




 * You can use custom backgrounds. The method is same as for tatie1.








 * As the example, with keigen=60 your's damage will be 60% of nominal. With earth_keigen=30 enemy's damage will be (100-30%)=70% of nominal. Earth_keigen is working only with Breath of the Earth and Wild Lands.




 * Higher the number the higher your chance to hit.




 * You can also use custom music. To do this - just use the filename as the argument. Example: music="myfight.ogg". You must use filename with the extension or the game will crash. Supported formats are .mp3, .ogg and .wav.
 * You can also use custom music. To do this - just use the filename as the argument. Example: music="myfight.ogg". You must use filename with the extension or the game will crash. Supported formats are .mp3, .ogg and .wav.
 * You can also use custom music. To do this - just use the filename as the argument. Example: music="myfight.ogg". You must use filename with the extension or the game will crash. Supported formats are .mp3, .ogg and .wav.
 * You can also use custom music. To do this - just use the filename as the argument. Example: music="myfight.ogg". You must use filename with the extension or the game will crash. Supported formats are .mp3, .ogg and .wav.
 * You can also use custom music. To do this - just use the filename as the argument. Example: music="myfight.ogg". You must use filename with the extension or the game will crash. Supported formats are .mp3, .ogg and .wav.
 * You can also use custom music. To do this - just use the filename as the argument. Example: music="myfight.ogg". You must use filename with the extension or the game will crash. Supported formats are .mp3, .ogg and .wav.
 * You can also use custom music. To do this - just use the filename as the argument. Example: music="myfight.ogg". You must use filename with the extension or the game will crash. Supported formats are .mp3, .ogg and .wav.
 * You can also use custom music. To do this - just use the filename as the argument. Example: music="myfight.ogg". You must use filename with the extension or the game will crash. Supported formats are .mp3, .ogg and .wav.
 * You can also use custom music. To do this - just use the filename as the argument. Example: music="myfight.ogg". You must use filename with the extension or the game will crash. Supported formats are .mp3, .ogg and .wav.
 * You can also use custom music. To do this - just use the filename as the argument. Example: music="myfight.ogg". You must use filename with the extension or the game will crash. Supported formats are .mp3, .ogg and .wav.
 * You can also use custom music. To do this - just use the filename as the argument. Example: music="myfight.ogg". You must use filename with the extension or the game will crash. Supported formats are .mp3, .ogg and .wav.
 * You can also use custom music. To do this - just use the filename as the argument. Example: music="myfight.ogg". You must use filename with the extension or the game will crash. Supported formats are .mp3, .ogg and .wav.
 * You can also use custom music. To do this - just use the filename as the argument. Example: music="myfight.ogg". You must use filename with the extension or the game will crash. Supported formats are .mp3, .ogg and .wav.






 * // victory effect for an enemy






 * Warning: Alice command in battle selections is enabled in [ruka] section.

[ruka]

 * This section sets Hero's parameters


 * // Hero's name


 * // Hero's level (1-99).


 * Hero's maximum HPs and SPs are level dependant.


 * // HP penalty
 * // SP penalty


 * You can start battle not with the maximum HP/SP value to simulate wound/ambush.


 * // crosshairs x position.


 * All skills have visual effects. With this variable you can aim this effect to exact point so the effect will hit the monster's sprite.


 * // Alice's Word of Dispel availability.


 * // Hero's skills (0-22).


 * Standard skills tree ("human"):
 * 0 - no skills.
 * 1 - +Demon Decapitation.
 * 2 - +Flail Wildly.
 * 3 - +Thunder Thrust.
 * 4 - +Meditation.
 * 5 - +Demon Skull Beheading.
 * 6 - Death Sword Chaos Star replaces Flail Wildly.
 * 11 - Lightning Sword Flash replaces Thunder Thrust.
 * 12 - Earth Rumbling Decapitation replaces Demon Skull Beheading.
 * 14 - Serene Demon Sword replaces Demon Decapitation.
 * 15 - +Quadruple Giga.
 * 16 - Vaporizing Rebellion Sword replaces Death Sword Chaos Star.
 * 17 - Seal mode. Same as [ruka]/skill=6.
 * 18 - Seal mode + Serene Mind.


 * With [ruka]/skill more than 18 you have another skills tree ("angelic").
 * 19 - You have Flash Kill, Heavenly Demon Revival, Ninefold Rakshasa, Daystar and Meditation. Plus there are Fallen Angel Dance and Serene Mind, but you can remove these two skills if you set correct spirit levels.
 * 20 - Element Spica replaces Fallen Angel Dance.
 * 21 - Quadruple Giga replaces Serene Mind.


 * Edging is always available.


 * // Sylph's level (0-5).
 * // Gnome's level (0-5).
 * // Undine's level (0-5).
 * // Salamander's level (0-5).


 * There are 2 Spirits tree: human and angelic. The second one is used if [ruka]/skill is more than 18. Unfortunatedly spirits are controlled differently in each case.


 * "Human mode"
 * There are 4 valid skill_wind/earth/aqua/fire values.
 * 0 - spirit level 1.
 * 2 - spirit level 2.
 * 3 - spirit level 3.
 * 4 or more - no spirit. Use this if you can't get the wanted spirits configuration with [ruka]/skill alone. As the example, [ruka]/skill=8, [ruka]/skill_wind=4 and [ruka]/skill_earth=3 will made avaiable Gnome level 3 only.


 * You need the certain [ruka]/skill value to use spirits. Sylph - [ruka]/skill must be more than 6, Gnome - more than 7, Undine - more than 9, Salamander - more than 12.
 * If [ruka]/skill is less than 6 and more than 16 - Spirits menu isn't selectable at all.
 * In "human" mode you need [ruka]/skill more then 8 to use Sylph and Gnome simultaneously. Unfortunatedly Wind Wall and Strength of the Earth still cancels all others spirits.


 * "Angelic" mode
 * There are 4 valid skill_wind/skill_aqua values in this mode.
 * 0 - no spirit. You have Fallen Angel Dance (skill_wind=0) and Serene Mind (skill_aqua=0).
 * 2 or 3 - no spirit, no Fallen Angel Dance or Serene Mind.
 * 4 - spirit level 4. You can't summon multiple spirits.
 * 5 - spirit level 5. You can summon multiple spirits.


 * There is no difference between 0, 2 or 3 for skill_earth and skill_fire.
 * You can set each spirit level independently.
 * Warning: you must have [ruka]/skill_earth more than 0 to activate Spirits page in the "angelic" mode.
 * Warning: Sylph and Undine if they are level 4 or 5, will automatically remove Fallen Angel Dance and Serene Mind.


 * Quad Spirits Summon is controlled by [ruka]/skills. If [ruka]/skills more than 21 then you have this skill.

[anno]

 * The [anno] section is for battle descriptions, 'annotations'. There are 2 sections, mogaku (bind) and vic (victory).




 * Used if failed to escape from bind.




 * Used if successfully escaped from bind.




 * Used if attack fails due to bind.




 * Used if you break a special bind (when you must attack to free, not struggle).




 * Used when you win. The second line is optional.

[onedari]

 * The [onedari] section specifies requestable techniques. It's pretty easy to use, though there are some things that can cause issues for your side story should you do them wrong.


 * The only really important part is that skill_name for your enemy attack is written exactly the same was as the onedari_list index of it. If it's not, the battle sequence will lock the user in the request window if they click the invalid request index, until they select one that is valid. If there aren't any, well that's not going to work at all.


 * You don't need to have all of the attacks requestable, but you can have up ot 16 indexed under the onedari section.




 * Items in the list appear on the request menu, top to bottom, left to right. More pages are added if needed.
 * list formatting is from onedari_list1 to onedari_list16

[sel]

 * The [sel] group is used to list text / script that the monster will say during the battle. It's select dialog for select situations, though I'm not entirely sure that sel stands for select, it does fit fairly well...
 * P.S. All lines are optional. If you define 2 lines (except mogaku_selX) - you will see both. If you define the first line and the second will be undefined - you will see only 1 string. If both lines are undefined - there is no enemy's message at all.




 * Mogaku_selX is what the monster says when you attempt to escape a bind. Assuming you fail. There are 5 possible entries, though you don't need to use them all.
 * One of the lines you enter will be randomly selected, if you use all 5 there will be a 20% chance that a specific line will be used. You can duplicate lines however to set higher chances of it being said, or specific odds if you only want to use 2 but have a higher chance of saying one over the other.




 * Mogaku_dassyutuX are told by monster when Luka breaks free from the bind.




 * mogaku_earth_dassyutu1 and 2 are the same as mogaku_dassyutu1 and 2, except that they're used when you're using Gnome. Usually they'll reference the extra power you're using...




 * half_sX are said when Luka reaches half health.




 * kiki_sX are said when Luka's health reaches 20%




 * vic_selX are said when monster defeats Hero.




 * kousanX is spoken by monster if Luka surrenders.

[hero_skillX]
These sections define Hero's text when one of skills are used. Warning: Currently you must define all 3 variables or there is a chance for no text at all.
 * [hero_skill1] - Demon Decapitation.
 * [hero_skill2] - Flail Wildly.
 * [hero_skill3] - Thunder Thrust.
 * [hero_skill5] - Demon Skull Beheading.
 * [hero_skill6] - Death Sword Chaos Star.
 * [hero_skill7] - Sylph summon (level 1-3).
 * [hero_skill8] - Gnome summon.
 * [hero_skill10] - Undine Summon (level 1-3 and 5).
 * [hero_skill11] - Lightning Sword Flash.
 * [hero_skill12] - Earth Rumbling Decapitation.
 * [hero_skill13] - Serene Demon Sword.
 * [hero_skill14] - Salamander summon.
 * [hero_skill16] - Vaporizing Rebellion Sword.
 * [hero_skill17] - Edging.
 * [hero_skill18] - Serene Mind (and Undine level 4).
 * [hero_skill19] - Flash Kill.
 * [hero_skill20] - Ninefold Rakshasa.
 * [hero_skill21] - Heavenly Demon Revival.
 * [hero_skill22] - Daystar.
 * [hero_skill23] - Fallen Angel Dance (and Sylph level 5).
 * [hero_skill21] - Element Spica.
 * Meditation, Quadruple Giga and Sylph level 4 don't have custom announcements. Quad Spirit Summon currently uses [hero_skill7] announcements.


 * // 1st variant
 * // 2nd variant
 * // 3rd variant

Skills
The skills section is very extensive, most of it can be left out and ignored... That said, it's good to know how it works... :) I will continue to explain this section as I get through it myself...

There are 6 types of enemy skills in Spin-off stories. And 4 skill queries.
 * skilla1-skilla8 - these skills are used if Hero isn't binded.
 * skilltame0-skilltame1 - charged attack. Must be guarded to avoid. Skilltame0 is the preparation phase, skilltame1 is the attack itself. Odds are calculated after skilla8.
 * skillcounter0-skillcounter1 - enemy's counter. Skillcounter0 is the counterstance, skillcounter1 is the counter itself. Odds are calculated after skilltame0.

About skill odds.
 * skillb1-skillb4 - these skills are used if Hero is binded (Struggle to free from).
 * skillc1-skillc4 - these skills are used if Hero is binded with a special bind (Attack to free from).
 * skilld1-skilld4 - ???
 * 1) The game gets 1 RNG value between 1 and 100.
 * 2) First skill in the query (skilla1, skillb1, skillc1 or skilld1) is selected as the skilltag.
 * 3) If the odds (defined in [skilltag]/skill_kakuritu) are less or same as this range value - enemy try to use the first skill.
 * 4) This may fail due to the skill cooldown timer (defined in [skilltag]/skillcount).
 * 5) Odds of the first skill are substracded from RNG value.
 * 6) The next skill in query is selected. If there is no skills left - go to the 1 and get the new RNG value.
 * 7) Go to the 3.
 * So, skill odds are skill_kakuritu divided to the total_query_kakuritu (sum of odds of all skills in the query).
 * Warning: try to set total_query_kakuritu must be less than 100 or some skills can't be selected.
 * Warning: you must have 1 skill in the query w/o cooldown. Or there can be infinite loop if all skills in query are cooldowned.

[skilla1]
note: I'm describing skilla1, however skilla2 - skilla8 work exactly the same way. ''note: a little bit of awesomeness... you can apparently use @ and \ (pause and clear text) in these.''




 * The name of the skill
 * Skill name does not appear if left blank.




 * odds of usage.




 * once used, the skill cannot be reused for 3 more turns (or whatever you set)




 * Additional effect of this skill (status / bindng / etc)
 * 0 - none
 * 1 - HP drain.
 * 2 - abnormal status.
 * 3 - bind.
 * 4 - special bind.
 * 5 - ??? (inescapable bind?)
 * 6 - level drain.




 * type of status applied
 * 1 = ecstatic
 * 2 = paralysis
 * 4 = surrender
 * 5 = temptation
 * 7 = confusion
 * requires skill_kouka = "2"




 * status change persists (minimum)
 * requires skill_kouka = "2"




 * status change persists (maximum)
 * requires skill_kouka = "2"




 * how much you need to struggle to break from the bind
 * requires that it's a binding technique




 * how much you need to struggle using Gnome to break from the bind
 * requires that it's a binding technique






 * cut scene graphic - displayed when the skill is used




 * cut scene graphic 2 - when Luka ejaculates by this technique




 * cut scene offset X coordinate




 * cut scene offset Y coordinate




 * odds (in percent) that Sylph will block this attack. Warning: Sylph will block each hit in a multi-hit attack independenly.




 * text that appears when Sylph blocks this attack (Sylph blocks it with a gust of wind)




 * odds (in percent) that Undine will block this attack




 * skill_sel1, 2 and 3 are displayed when the skill is used.
 * The game randomly selects which line is used.




 * This is a little confusing... well, not really...
 * If you only use the skill_anno1_1 (and don't list skill_anno1_2 and skill_anno1_3) then it will be selected and printed in conjunction with the first attack of this skill.
 * If you use skill_anno1_1 and skill_anno1_2, but not skill_anno1_3; both skill_anno1_1 and skill_anno1_2 will be displayed. You can use @ to pause mid sentence or between lines. \ also seems to work in this context.
 * If you use all of them (skill_anno1_1, skill_anno1_2, and skill_anno1_3) it will select one of them at random.




 * this references the sound effect played during the attack.
 * if you're using a sound effect included with the game (in the SE folder) just list it by name (ie: ero_slime1)
 * if you're using a custom sound effect, reference by folder and name+extension (ie: sounds\mySound.ogg)
 * compatible audio formats are wav, mp3 and ogg.




 * minimum damage caused by the use of this skill




 * maximum damage caused by the use of this skill
 * pointless notes: a random number is selected between skill_damage1_1 and skill_damage1_2




 * this section follows the same rules as skill_anno1_1 through skill_anno1_3 - look at it for questions about it's functionality.
 * Using this in addition to the skill_anno1_x set adds a second attack to the skill. This set is said during part two of set attack.