Hey all,
Wanted to run a quick one by you to save me some time pulling apart byte data to find out. I'm trying to create an IsHardMode function and wanted a hand :)
Hard mode in an explorable area was an easy one; just check for the Effect...
Wanted to expand this function to possibly check an offset to find out whether Hard mode is checked in an outpost - does anyone know the offset to check?
I'm thinking it might be some kind of offset in the same way we find out Titles...
If anyone can shed some light and same me a tonne of time I would really appreciate it - its going towards my contribution for GWA2.
Wanted to run a quick one by you to save me some time pulling apart byte data to find out. I'm trying to create an IsHardMode function and wanted a hand :)
Hard mode in an explorable area was an easy one; just check for the Effect...
Code:
Func IsHardMode() ;~ Description: Check if hard mode is enabled via Effects Return Not IsArray(GetEffect(1912)) ; GetEffect returns array if skill not found EndFunc
I'm thinking it might be some kind of offset in the same way we find out Titles...
Code:
Func GetLuxonFaction() ;~ Description: Returns current Luxon faction. Return MemoryRead(GetInstanceBasePtr() + 0x758) EndFunc ;==>GetLuxonFaction Func GetMaxLuxonFaction() ;~ Description: Returns max Luxon faction. Return MemoryRead(GetInstanceBasePtr() + 0x7BC) EndFunc ;==>GetMaxLuxonFaction Func GetBalthazarFaction() ;~ Description: Returns current Balthazar faction. Return MemoryRead(GetInstanceBasePtr() + 0x798) EndFunc ;==>GetBalthazarFaction Func GetMaxBalthazarFaction() ;~ Description: Returns max Balthazar faction. Return MemoryRead(GetInstanceBasePtr() + 0x7C0) EndFunc ;==>GetMaxBalthazarFaction Func GetImperialFaction() ;~ Description: Returns current Imperial faction. Return MemoryRead(GetInstanceBasePtr() + 0x76C) EndFunc ;==>GetImperialFaction Func GetMaxImperialFaction() ;~ Description: Returns max Imperial faction. Return MemoryRead(GetInstanceBasePtr() + 0x7C4) EndFunc ;==>GetMaxImperialFaction