- 46
- Posts
- 10
- Years
- Seen Nov 6, 2024
Where is the script to edit the items that you can obtain from the vending machine? Thanks.
So, I found the script for it.
With this, you can have only Lemonade, Soda Pop, and Fresh Water.
What would I do to add Moomoo Milk (500P ea) and Berry Juice (100P ea)
So, I found the script for it.
Spoiler:
'---------------
#org 0x220295
lockall
preparemsg 0x822056D '"It's a Vending Machine.\nWhich dri..."
waitmsg
showmoney 0x0 0x0 0x0
goto 0x82202A6
'---------------
#org 0x2202A6
multichoice 0x10 0x0 0x2A 0x0
copyvar 0x4001 LASTRESULT
copyvar 0x8000 0x4001
compare 0x8000 0x0
if 0x1 goto 0x82202E4
compare 0x8000 0x1
if 0x1 goto 0x82202EF
compare 0x8000 0x2
if 0x1 goto 0x82202FA
msgbox 0x8220603 MSG_KEEPOPEN '"Decided against buying a drink."
goto 0x822045E
'---------------
#org 0x2202E4
setvar 0x4000 0x1A
goto 0x822032F
'---------------
#org 0x2202EF
setvar 0x4000 0x1B
goto 0x822032F
'---------------
#org 0x2202FA
setvar 0x4000 0x1C
goto 0x822032F
'---------------
#org 0x22045E
hidemoney 0x0 0x0
releaseall
end
'---------------
#org 0x22032F
compare 0x4001 0x0
if 0x1 call 0x8220305
compare 0x4001 0x1
if 0x1 call 0x822030C
compare 0x4001 0x2
if 0x1 call 0x8220313
compare LASTRESULT 0x0
if 0x1 goto 0x8220442
checkitemroom 0x4000 0x1
compare LASTRESULT 0x0
if 0x1 goto 0x8220450
compare 0x4001 0x0
if 0x1 call 0x822031A
compare 0x4001 0x1
if 0x1 call 0x8220321
compare 0x4001 0x2
if 0x1 call 0x8220328
updatemoney 0x0 0x0 0x0
bufferitem 0x0 0x4000
sound 0x6A
msgbox 0x82205A1 MSG_KEEPOPEN '"Clang!\pA can of [buffer1] dropped..."
additem 0x4000 0x1
bufferitem 0x1 0x4000
bufferstd 0x2 0xE
msgbox 0x8272A9A MSG_KEEPOPEN '"[player] put away the [buffer2]\ni..."
random 0x40
compare LASTRESULT 0x0
if 0x5 goto 0x8220436
checkitemroom 0x4000 0x1
compare LASTRESULT 0x0
if 0x1 goto 0x8220450
sound 0x6A
msgbox 0x82205C2 MSG_KEEPOPEN '"Clang!\pScore! An extra can of [bu..."
additem 0x4000 0x1
bufferitem 0x1 0x4000
bufferstd 0x2 0xE
msgbox 0x8272A9A MSG_KEEPOPEN '"[player] put away the [buffer2]\ni..."
random 0x40
compare LASTRESULT 0x0
if 0x5 goto 0x8220436
checkitemroom 0x4000 0x1
compare LASTRESULT 0x0
if 0x1 goto 0x8220450
sound 0x6A
msgbox 0x82205C2 MSG_KEEPOPEN '"Clang!\pScore! An extra can of [bu..."
additem 0x4000 0x1
bufferitem 0x1 0x4000
bufferstd 0x2 0xE
msgbox 0x8272A9A MSG_KEEPOPEN '"[player] put away the [buffer2]\ni..."
goto 0x8220436
'---------------
#org 0x220305
checkmoney 0xC8 0x0
return
'---------------
#org 0x22030C
checkmoney 0x12C 0x0
return
'---------------
#org 0x220313
checkmoney 0x15E 0x0
return
'---------------
#org 0x220442
msgbox 0x82205F1 MSG_KEEPOPEN '"Not enough money[.]"
goto 0x822045E
'---------------
#org 0x220450
msgbox 0x8272A89 MSG_KEEPOPEN '"The Bag is full[.]"
goto 0x822045E
'---------------
#org 0x22031A
paymoney 0xC8 0x0
return
'---------------
#org 0x220321
paymoney 0x12C 0x0
return
'---------------
#org 0x220328
paymoney 0x15E 0x0
return
'---------------
#org 0x220436
preparemsg 0x822056D '"It's a Vending Machine.\nWhich dri..."
waitmsg
goto 0x82202A6
'---------
' Strings
'---------
#org 0x22056D
= It's a Vending Machine.\nWhich drink would you like?
#org 0x220603
= Decided against buying a drink.
#org 0x2205A1
= Clang!\pA can of [buffer1] dropped down.
#org 0x272A9A
= [player] put away the [buffer2]\nin the [buffer3] Pocket.
#org 0x2205C2
= Clang!\pScore! An extra can of [buffer1]\ndropped down!
#org 0x2205F1
= Not enough money[.]
#org 0x272A89
= The Bag is full[.]
#org 0x220295
lockall
preparemsg 0x822056D '"It's a Vending Machine.\nWhich dri..."
waitmsg
showmoney 0x0 0x0 0x0
goto 0x82202A6
'---------------
#org 0x2202A6
multichoice 0x10 0x0 0x2A 0x0
copyvar 0x4001 LASTRESULT
copyvar 0x8000 0x4001
compare 0x8000 0x0
if 0x1 goto 0x82202E4
compare 0x8000 0x1
if 0x1 goto 0x82202EF
compare 0x8000 0x2
if 0x1 goto 0x82202FA
msgbox 0x8220603 MSG_KEEPOPEN '"Decided against buying a drink."
goto 0x822045E
'---------------
#org 0x2202E4
setvar 0x4000 0x1A
goto 0x822032F
'---------------
#org 0x2202EF
setvar 0x4000 0x1B
goto 0x822032F
'---------------
#org 0x2202FA
setvar 0x4000 0x1C
goto 0x822032F
'---------------
#org 0x22045E
hidemoney 0x0 0x0
releaseall
end
'---------------
#org 0x22032F
compare 0x4001 0x0
if 0x1 call 0x8220305
compare 0x4001 0x1
if 0x1 call 0x822030C
compare 0x4001 0x2
if 0x1 call 0x8220313
compare LASTRESULT 0x0
if 0x1 goto 0x8220442
checkitemroom 0x4000 0x1
compare LASTRESULT 0x0
if 0x1 goto 0x8220450
compare 0x4001 0x0
if 0x1 call 0x822031A
compare 0x4001 0x1
if 0x1 call 0x8220321
compare 0x4001 0x2
if 0x1 call 0x8220328
updatemoney 0x0 0x0 0x0
bufferitem 0x0 0x4000
sound 0x6A
msgbox 0x82205A1 MSG_KEEPOPEN '"Clang!\pA can of [buffer1] dropped..."
additem 0x4000 0x1
bufferitem 0x1 0x4000
bufferstd 0x2 0xE
msgbox 0x8272A9A MSG_KEEPOPEN '"[player] put away the [buffer2]\ni..."
random 0x40
compare LASTRESULT 0x0
if 0x5 goto 0x8220436
checkitemroom 0x4000 0x1
compare LASTRESULT 0x0
if 0x1 goto 0x8220450
sound 0x6A
msgbox 0x82205C2 MSG_KEEPOPEN '"Clang!\pScore! An extra can of [bu..."
additem 0x4000 0x1
bufferitem 0x1 0x4000
bufferstd 0x2 0xE
msgbox 0x8272A9A MSG_KEEPOPEN '"[player] put away the [buffer2]\ni..."
random 0x40
compare LASTRESULT 0x0
if 0x5 goto 0x8220436
checkitemroom 0x4000 0x1
compare LASTRESULT 0x0
if 0x1 goto 0x8220450
sound 0x6A
msgbox 0x82205C2 MSG_KEEPOPEN '"Clang!\pScore! An extra can of [bu..."
additem 0x4000 0x1
bufferitem 0x1 0x4000
bufferstd 0x2 0xE
msgbox 0x8272A9A MSG_KEEPOPEN '"[player] put away the [buffer2]\ni..."
goto 0x8220436
'---------------
#org 0x220305
checkmoney 0xC8 0x0
return
'---------------
#org 0x22030C
checkmoney 0x12C 0x0
return
'---------------
#org 0x220313
checkmoney 0x15E 0x0
return
'---------------
#org 0x220442
msgbox 0x82205F1 MSG_KEEPOPEN '"Not enough money[.]"
goto 0x822045E
'---------------
#org 0x220450
msgbox 0x8272A89 MSG_KEEPOPEN '"The Bag is full[.]"
goto 0x822045E
'---------------
#org 0x22031A
paymoney 0xC8 0x0
return
'---------------
#org 0x220321
paymoney 0x12C 0x0
return
'---------------
#org 0x220328
paymoney 0x15E 0x0
return
'---------------
#org 0x220436
preparemsg 0x822056D '"It's a Vending Machine.\nWhich dri..."
waitmsg
goto 0x82202A6
'---------
' Strings
'---------
#org 0x22056D
= It's a Vending Machine.\nWhich drink would you like?
#org 0x220603
= Decided against buying a drink.
#org 0x2205A1
= Clang!\pA can of [buffer1] dropped down.
#org 0x272A9A
= [player] put away the [buffer2]\nin the [buffer3] Pocket.
#org 0x2205C2
= Clang!\pScore! An extra can of [buffer1]\ndropped down!
#org 0x2205F1
= Not enough money[.]
#org 0x272A89
= The Bag is full[.]
With this, you can have only Lemonade, Soda Pop, and Fresh Water.
What would I do to add Moomoo Milk (500P ea) and Berry Juice (100P ea)
Last edited: