- 2
- Posts
- 2
- Years
- Seen Mar 29, 2023
Hello.
I'm simply testing an item to display text with choices from the script.
The Common Event on database number 10 looks like this:
From what I can gather, on PokemonItemEffects it should be like this..
The game freezes if I use it from the Bag.
If I register the item and use it with the registered key, there are no responses but I still can move, use the Bag, etc.
What went wrong?
I'm simply testing an item to display text with choices from the script.
The Common Event on database number 10 looks like this:
Code:
Text:\bWhat to do?\ch[1,3,Yes,No,(Cancel)]
Conditional Branch Variable 001 Temp Pokemon Choice == 2
Text:\bOkay.
Conditional Branch Variable 001 Temp Pokemon Choice == 0
Text:\bYes!
Conditional Branch Variable 001 Temp Pokemon Choice == 1
Text:\bNo..
From what I can gather, on PokemonItemEffects it should be like this..
Code:
ItemHandlers::UseFromBag.add(:ITEM, proc { |item|
next 2
})
ItemHandlers::UseInField.add(:ITEM, proc { |item|
pbCommonEvent(10)
next true
})
The game freezes if I use it from the Bag.
If I register the item and use it with the registered key, there are no responses but I still can move, use the Bag, etc.
What went wrong?