Final Fantasy Hacktics

Modding => Help! => Topic started by: Genghis Hank on December 14, 2021, 11:47:19 am

Title: [Solved] What triggers Ramza’s job change?
Post by: Genghis Hank on December 14, 2021, 11:47:19 am
I've been working on a story mod on-and-off since mid-2015. One thing I've never been able to nail down is what is it that triggers Ramza's job change between chapters?

I've accounted for all variables in the end of chapter events, and none seem to be triggering this change. The only thing I've identified is that in the first event of Chapter 4 (Orlandu and Olan), there is an invisible Ramza with a unit ID of 3 with 'join after event' ticked. I've tried replicating this in other events but the change doesn't seem to trigger. Is there anything else that I need to do?

Thanks in advance for any help.
Title: Re: What triggers Ramza’s job change?
Post by: RetroTypes on December 14, 2021, 10:56:01 pm
The forum search function is your friend lol

https://ffhacktics.com/smf/index.php?topic=7229.msg146499#msg146499
Title: Re: What triggers Ramza’s job change?
Post by: Genghis Hank on December 15, 2021, 04:02:37 am
Thanks, that is what I was looking for.

I actually tried multiple searches using a variety of terms, but was unable to locate the relevant information. Glad you could get your one-liner in though.
Title: Re: What triggers Ramza’s job change?
Post by: Nyzer on December 15, 2021, 03:51:08 pm
It's the third result for "Ramza change job" when I do a search so that's surprising.

Anyway, while that topic seems to have outlined some of how it works, it doesn't seem to have come up with a way to add more changes as it stands.

But with the newer event instructions, you can definitely change a unit's base ID/sprite/job (they're all tied together).

If it's Ramza you're trying to change, I'm not sure how useful that would be - the game over if crystal routine might be tied to his sprites, and the change to his Unit ID would cause issues in events past that point without all being edited.

To change a roster unit's current base Job in events, you'd want to do the following:

WorldUnitAddress(x00,x[Current ID])
SET(x0001,x00[New ID])
SaveAddress(x01,x0000,x00,001)

Title: Re: What triggers Ramza’s job change?
Post by: Jumza on December 15, 2021, 04:46:13 pm
There's also a new instruction, TransformUnit https://ffhacktics.com/wiki/TransformUnit if you want to go the event route that also does that!
EDIT: Transform does have other side-effects though since it de-levels and levels back up.
Title: Re: What triggers Ramza’s job change?
Post by: Genghis Hank on December 15, 2021, 06:54:31 pm
I guess I was being too specific with my search terms. The majority of topics I found were covering how to change Ramza to a Holy Knight (or other special class), rather than how to trigger the transformation from CH1 Ramza to CH2 Ramza.

Thanks both for your help. This helps me achieve exactly what I needed to do. I appreciate it.
Title: Re: [Solved] What triggers Ramza’s job change?
Post by: Nyzer on December 15, 2021, 10:55:19 pm
Quote from: Jumza on December 15, 2021, 04:46:13 pmThere's also a new instruction, TransformUnit https://ffhacktics.com/wiki/TransformUnit if you want to go the event route that also does that!
EDIT: Transform does have other side-effects though since it de-levels and levels back up.

I can't believe I forgot about TransformUnit >_>