- 57
- Posts
- 5
- Years
- Seen Apr 17, 2022
I need help with this script, I have made it using the codes already included in the Essentials.
The problem comes from the part of pbprueba1. I can't get the variable to change, I can't even get it to work, I get an error.
Because it does not work?
The idea is that you change the variables depending on the choice.
If someone could help me I would appreciate it.
The problem comes from the part of pbprueba1. I can't get the variable to change, I can't even get it to work, I get an error.
Because it does not work?
The idea is that you change the variables depending on the choice.
If someone could help me I would appreciate it.
Code:
class PokemonTransporte_Scene
def shouldShow?
return true
end
def pbprueba1
$game_variables.SetVariables(45,1)
end
end
def pbTransporteMenu
loop do
command=Kernel.pbMessage(_INTL("What do you want to do?"),[
_INTL("Item Storage"),
_INTL("Item Storage2"),
_INTL("Exit")
],-1)
if command==0
pbprueba1
elsif command==1
pbPCMailbox
else
break
end
end
end