McPaul
On my way to become a controversial and hated memb
- 289
- Posts
- 7
- Years
- He/ Him
- Switzerland
- Seen May 18, 2025
Here is the first script I made:
'---------------
#org 0xE3CFBC
lockall
checkflag 0x867
if 0x0 goto 0x8290721
checkitem 0x167 0x1
compare LASTRESULT 0x6
if 0x1 goto 0x8290721
setanimation 0x0 LASTRESULT
bufferitem 0x0 0x167
checkitem 0x167 0x1
msgbox 0x829072E MSG_YESNO '"This tree looks like it can be\ncu..."
compare LASTRESULT 0x0
if 0x1 goto 0x829072B
msgbox 0x8290771 MSG_KEEPOPEN '"[player] used [buffer1]!"
closeonkeypress
doanimation 0x2
waitstate
goto 0x8290710
'---------------
#org 0x290721
msgbox 0x829077D MSG_KEEPOPEN '"This tree looks like it can be\ncu..."
releaseall
end
'---------------
#org 0x29072B
closeonkeypress
releaseall
end
'---------------
#org 0x290710
applymovement LASTTALKED 0x829071F
waitmovement 0x0
hidesprite LASTTALKED
releaseall
end
'---------
' Strings
'---------
#org 0x29072E
= This tree looks like it can be\ncut down!\pWould you like to use [buffer1]?
#org 0x290771
= [player] used [buffer1]!
#org 0x29077D
= This tree looks like it can be\ncut down!
'-----------
' Movements
'-----------
#org 0x29071F
#raw 0x5B 'mov5B
#raw 0xFE 'End of Movements
The problem is that I can cut trees even if I don't have the item 0x167 in my bag despite using the checkitem command. Why is this happening? Did I do wrong somewhere?
Thanks for your answers.
'---------------
#org 0xE3CFBC
lockall
checkflag 0x867
if 0x0 goto 0x8290721
checkitem 0x167 0x1
compare LASTRESULT 0x6
if 0x1 goto 0x8290721
setanimation 0x0 LASTRESULT
bufferitem 0x0 0x167
checkitem 0x167 0x1
msgbox 0x829072E MSG_YESNO '"This tree looks like it can be\ncu..."
compare LASTRESULT 0x0
if 0x1 goto 0x829072B
msgbox 0x8290771 MSG_KEEPOPEN '"[player] used [buffer1]!"
closeonkeypress
doanimation 0x2
waitstate
goto 0x8290710
'---------------
#org 0x290721
msgbox 0x829077D MSG_KEEPOPEN '"This tree looks like it can be\ncu..."
releaseall
end
'---------------
#org 0x29072B
closeonkeypress
releaseall
end
'---------------
#org 0x290710
applymovement LASTTALKED 0x829071F
waitmovement 0x0
hidesprite LASTTALKED
releaseall
end
'---------
' Strings
'---------
#org 0x29072E
= This tree looks like it can be\ncut down!\pWould you like to use [buffer1]?
#org 0x290771
= [player] used [buffer1]!
#org 0x29077D
= This tree looks like it can be\ncut down!
'-----------
' Movements
'-----------
#org 0x29071F
#raw 0x5B 'mov5B
#raw 0xFE 'End of Movements
The problem is that I can cut trees even if I don't have the item 0x167 in my bag despite using the checkitem command. Why is this happening? Did I do wrong somewhere?
Thanks for your answers.
Last edited: