TESScript for Battle for Genosha
This script manages the gun donation side quest that Xavier gives the player in Battle for Genosha.
Xavier is set up as a shopkeeper. When the player offers to give guns to Xavier, his empty shop box is opened. The player can then "sell" items to Xavier, but since Xavier has no caps, the player does not receive payment. Once the player closes the shop window, this script checks to see what the player has deposited into Xavier's box. Any items matching the weapons that Xavier is looking for are removed and destroyed, and the gun donation count is updated. If there are any other items aside from what Xavier requested, these are given back to the player, ensuring the player does not accidentally lose an item by giving Xavier something he can't use. Finally, once the player completes the side quest, the script rewards the player and updates the appropriate dialog. |
This script runs when the player enters the battlefield in Battle for Genosha.
The main quest is updated to reflect the player's progress, which sets up the timers that manage the spawning of the Super Mutants, and the gate locks behind the player until the battle is over. If the player chooses to fight with the militia, the militia move to their defensive positions along the barricades. One of the militia serves as a tactical adviser to the player, and this script sets up his dialog script package. Finally, if the player convinces Laura to return to Genosha when they first talk to her, she moves to the battlefield as well, and receives equipment for the fight. |
This script manages the repair side quest that Tessa gives the player in Battle for Genosha.
The script is attached to the Sentry Bot in Tessa's workshop. The Sentry Bot is restrained, preventing it from moving or speaking, until the player repairs it. When the player interacts with the Sentry Bot, the repair dialog box pops up. If the player does not have enough repair skill, the player receives a message telling them this. Otherwise, the player is given the option to try repairing the Sentry Bot. Once the player repairs the Sentry Bot, the script removes the restraint on the Sentry Bot, rewards the player, and updates the appropriate dialog. |