More Awesome Than You!

TS2: Burnination => The Podium => Topic started by: rufio on 2010 March 10, 03:03:02



Title: [Modding] "Me"
Post by: rufio on 2010 March 10, 03:03:02
I understand that "Me" is the object responsible for invoking the BHAV, but can it change during the course of a BHAV?  Specifically, I'm not sure what's going on here:

(From 0x1093 in 0x7F1F956A - the Magivestigium BHAV)
Stack Object ID := My Object ID
Test Object Type (SO is instance of 0xF4F6765C) // i.e. the Magivestigium spell object
RTBN ("CT - Get Probability of Fail")
....
My Sitting == 0x0000

It looks like at the beginning of the BHAV, "Me" is the spell object, but a few lines later, "Me" is the sim.  Or is this just EAxis fail coding, and it's actually trying to access the spell object's persondata?  The BHAV returns if the SO is not the spell object on that earlier line, and so based on the fact that Magivestigium works, I think "Me" does have to be the spell object at that point.


Title: Re: [Modding] "Me"
Post by: J. M. Pescado on 2010 March 10, 03:45:38
You're misreading it. It's doing Test 0x20, with "5C 76 F6 F4 0A 00 00 04", yes? That's not an actual test, that's "load GUID into T0/T1", probably followed by RTBN 3, "invoke BHAV by GUID in T0/T1". "Me" is clearly the caster.


Title: Re: [Modding] "Me"
Post by: rufio on 2010 March 10, 05:06:47
00 00 0A, not 0A 00 00, but yeah.  And now I see where it says "Return GUID selected in Temp 0,1: True".  So when that flag is set it doesn't actually do a test?  Good to know.  And now I see the operand in RTBN I was wondering about before.  Thanks.