Final Fantasy Hacktics

Modding => Help! => Topic started by: advfox on November 02, 2014, 08:23:17 pm

Title: How can I change a variable upon reading a rumor?
Post by: advfox on November 02, 2014, 08:23:17 pm
I'm curious - how can I set a bar rumor to change the value of a variable? I'd like for a certain event to become available after reading said rumor.
Title: Re: How can I change a variable upon reading a rumor?
Post by: Pride on November 02, 2014, 09:28:56 pm
You see these strings in tactext: {0xF566}{0xF60A}{0xF509}{0xF601} = 0x006D

Why it activates the variable at x6D is because of the two middle halfwords xF60A & xF509. It multiplies the x0A * x0A and then adds x09. So 10 * 10 + 9 = 109 or x6D
Title: Re: How can I change a variable upon reading a rumor?
Post by: advfox on November 03, 2014, 07:39:21 am
So if I took a variable like 40, and put that in 6D's place - {0xF566}{0xF606}{0xF504}{0xF601} = 0x0040. Would that be correct?
Title: Re: How can I change a variable upon reading a rumor?
Post by: Pride on November 03, 2014, 01:36:49 pm
No because x06 * x06 + x04 = x28 (or 40). Make sure you're using a hex calculator.

Correct would be...

{0xF566}{0xF608}{0xF600}{0xF601} = 0x0040 (x08 * x08 + x00}

or

{0xF566}{0xF607}{0xF60F}{0xF601} = 0x0040 (x07 * x07 + x0F}
Title: Re: How can I change a variable upon reading a rumor?
Post by: advfox on November 03, 2014, 01:45:51 pm
Alright, thanks.