SummarySnapdragon, or Snapshot, from Tactics Ogre; the extremely-rare spell that let you turn random units into powerful swords, inheriting the sacrificed unit's name and a portion of their stats. Now you can practice the ritual
1 sacrifice
2 of units for fun
3 and profit
4, too!
1 or it could be an in-battle thing, that works too2 unit sacrifice optional, but entirely doable3 probably not fun for the unit4 just toss me in the credits if you're going to sell the game, and maybe tell me my script has been used in somethingScriptScript can be found on Github
here.
RequirementsHime's Instance ItemsHime's Effects ManagerSetupThere are a couple of customisable things in the script; whether or not targeted party members should be removed from the party on successful usage of a snapdragon skill, whether or not the player gets the unit's equipment back if the unit is removed, and what portion of the unit's stats are inherited by the equipment.
If you want to use this on enemies, bear in mind snapdragon will not automatically kill them or otherwise remove them from battle; that's up to the skill itself.
UsageActors, enemies and classes can be set up to turn into specific pieces of equipment; just put <snapdragon weapon: #> or <snapdragon armour: #> in their notebox fields, where # is the ID of the weapon or armour you want the unit to turn into. Any skill or item with <eff: snapdragon> in their notebox will turn the unit into that piece of equipment, and depending on script settings possibly strip them and then remove them from the party.
Units and entire classes can be immune to the snapdragon effect; any unit without a snapdragon weapon/armour tag, or with the <snapdragon immune> tag, will not be subject to the snapdragon effect - the item or skill will execute any other effects it would have, but the player won't get equipment out of it and the unit won't be removed from the party.
You can also invoke the snapdragon effect via script command, with:
snapdragon(target)
...where the target is the actor or enemy you want to attempt to convert. This respects whatever tags they have.
You can also just directly stuff a unit into a specific piece of equipment with:
EquipItem.snap_battler(target)
...where target is once again the unlucky unit, and EquipItem is an instance of EquipItem. This does not respect their snapdragon tags.
The resulting equipment item will always have the base stats, appearance and any Features of the base weapon, plus the fraction of the sacrificed unit's stats as defined in the script, and will bear the sacrificed unit's name.
SuggestionsBug-reports? Suggestions?
Praise? Anything, post it here.