Transferring special units from one scenario to another
Moderator: Forum Moderators
Transferring special units from one scenario to another
I see examples on how to make a unit disseappear at the end of one scenario and bring him back in another, such as is done with the Morimeru (sorry, the white mage in Hero to the Throne).
But I noticed that while the [unit] tag in scenarios allows you to set a unit's HP, it doesn't allow you to set their experience. If I [kill] a special unit then create him again in another scenario, he'll lose his experience. Would it be possible to record his current experience and then create him again in another scenario with that experience?
I know the obvious solution is to let the player just recall the unit, but I want to be able to have the unit leave and come back later in the campaign and retain his experience. Is this possible?
But I noticed that while the [unit] tag in scenarios allows you to set a unit's HP, it doesn't allow you to set their experience. If I [kill] a special unit then create him again in another scenario, he'll lose his experience. Would it be possible to record his current experience and then create him again in another scenario with that experience?
I know the obvious solution is to let the player just recall the unit, but I want to be able to have the unit leave and come back later in the campaign and retain his experience. Is this possible?
Creator of Under the Burning Suns
What makes it doubly cool is that once the unit is stored you can easily manipulate it's variables. . . If you're wondering what all of those variables are, store a unit, save the game, and look over the save in a text editor. . . Fun, fun, fun.quartex wrote:Thanks! Very cool functionality!
Note to forum users: You are in a maze of twisty little passages
-
- Posts: 873
- Joined: July 4th, 2004, 9:14 pm
- Location: My imagination
- Contact:
SingleUnitWML in the wiki (which [unit] uses) is also the syntax for stored units (including ones in savefiles) and should include experience. I'll add it to the wiki now.
Play a Silver Mage in the Wesvoid campaign.