So, an axe is equipped, but upon refreshing the screen, I want it to equip a sword. I know the IDs for both, the sword and the axe, but changing either one at the specific pointer will cause a crash. Having it change upon refresh may not. I need to create a variable that I can change and the script can then call on it.
I know how to use globalalloc() to create a variable that can be called upon to access a pointer at an offset, so that the table can give access to a pointer for manipulation directly or for troubleshooting/testing. I know how to use label() to create a variable that can be turned on or off, like:
Code: Select all
[Enable]
...
label(infPoints)
...
cmp [infPoints],1
jne @f
...
@@:
...
infPoints:
dd 0
...
registersymbol(infPoints)
[Disable]
unregistersymbol(infPoints)
Code: Select all
[Enable]
infPoints:
dd 1
[Disable]
dd 0
I just wish I could write in a value, then have the script check that value when it's called upon. Something like:
Code: Select all
...
cmp [chgWeap],1
jne @f
mov [eax],[var]
chgWeap:
dd 0
@@:
...