InitialAttack_*.ini
Status: Alpha
Brought to you by:
kingsob
This would be like the preAttack.ini except would be used only once when first engaging a boss.
An example is the sorceress who would have blizzard and static in the InitialAttack, then all following attacks would be pulled from the attack.ini. This would prevent static from being cycled after the boss is 50% dead.
A Pally might initialAttack with concentrate and say X hammers, then use redemption on the regular attack untill dead.
Logged In: NO
HAY, YOU STOLEDED MY IDEA!
http://forum.aobot.org/viewtopic.php?f=15&t=5282
:)
But basically yea, the idea was to have something like AttackOnceFile, or FirstAttackFile that would be called for the first round of attacks only, to allow statics for example to only be cast once at the start of the fight, and to reduce the length of normal AttackFile, and remove worthless attacks (like statics when the boss is nearly dead)
Example sequence would be: (stolen from my forum thread)
Starting Boss Corpsefire
*sorc runs to the edge of town and gets stuck*
*user nudges her over and grumbles, then edits MF.ini to have Bishibosh first*
*sorc teleports to Corpsefire*
---FirstAttackFile---
*static*static*static*static*static*static*teleport*
---AttackFile---
*fireball*fireball*fireball*fireball*teleport*
---AttackFile---
*fireball*fireball*fireball*fireball*teleport*
---AttackFile---
*fireball*fireball*fireball*fireball*teleport*
(ok it wont take this long, just for example)
Boss Corpsefire Finished
Logged In: NO
Tbh, thinking of the implementation.
At the same time you execute the PreWalkFile, set didFirstAttack = false;
Then when it comes to attack the boss:
if (didFirstAttack)
{
AttackFileStuff;
}
else
{
//copy and pasted AttackFileStuff but used a different file name!!
FirstAttackFileStuff;
didFirstAttack = true;
}