Hi,
I'm trying to save some ability IDs into a hashtable as an integer. See below:
subStringResult (a string) contains a valid number 'A007' though the second BJDebugMsg contains 0
The move's numerical format should be 1093677111
It seems I can't convert from an ability ID ('A007') in a string to an integer. Any idea how I can do this? If this can't be done, is there a function which I can use to convert from 'A007' to numerical form without running the game and copying it down during gameplay?
Side note, what do I call a number expressed in letters like A007? Is this "Hexadecimal" to identify an ability ID?
As a workaround, I could potentially use a special calculator to give me the numerical number so I don't use 'A007' numbers in my system.
I'm trying to save some ability IDs into a hashtable as an integer. See below:
JASS:
call SaveInteger(pokeMoveId, pokemonHandle, index, S2I(subStringResult))
call BJDebugMsg("subStringResult = " + subStringResult)
call BJDebugMsg("move = " + I2S(LoadInteger(pokeMoveId, pokemonHandle, index)))
call BJDebugMsg("move should be - " + I2S('A007'))
subStringResult (a string) contains a valid number 'A007' though the second BJDebugMsg contains 0
The move's numerical format should be 1093677111
It seems I can't convert from an ability ID ('A007') in a string to an integer. Any idea how I can do this? If this can't be done, is there a function which I can use to convert from 'A007' to numerical form without running the game and copying it down during gameplay?
Side note, what do I call a number expressed in letters like A007? Is this "Hexadecimal" to identify an ability ID?
As a workaround, I could potentially use a special calculator to give me the numerical number so I don't use 'A007' numbers in my system.
Last edited: