- 94
- Posts
- 11
- Years
- Seen Jun 18, 2016
I'm making a Berry mixer, which is a Key Item where you select 2 berries and it creates a new berry with new effects, etc.
Mechanically everything is working, but i don't know how to make it so when you select a berry it says "PLAYERNAME is mixing BERRY1 and BERRY2...".
I know how to show the player name, but not the berries name.
This is my actual code (it's only working with one berry because i'm just testing it)
I think that the answer is pretty simple, but i can't manage to make it work.
Edit: Nevermind, everything is working now. Here's the fixed line:
Mechanically everything is working, but i don't know how to make it so when you select a berry it says "PLAYERNAME is mixing BERRY1 and BERRY2...".
I know how to show the player name, but not the berries name.
This is my actual code (it's only working with one berry because i'm just testing it)
Code:
def useMezclador
Kernel.pbChooseItem(31)
Kernel.pbChooseItem(32)
if $game_variables[31] == PBItems::ORANBERRY or PBItems::SITRUSBERRY && $game_variables[32] == PBItems::SITRUSBERRY or PBItems::ORANBERRY
Kernel.pbMessage(_INTL("{1} mixed the Oran Berry and the Sitrus Berry, and...",$Trainer.name))
$PokemonBag.pbDeleteItem(PBItems::ORANBERRY)
$PokemonBag.pbDeleteItem(PBItems::SITRUSBERRY)
Kernel.pbReceiveItem(PBItems::ZIRANJABERRY)
else
Kernel.pbMessage(_INTL("The items selected aren't compatible, so you can't mix them"))
end
end
I think that the answer is pretty simple, but i can't manage to make it work.
Edit: Nevermind, everything is working now. Here's the fixed line:
Code:
Kernel.pbMessage(_INTL("{1} mixed the {2} and the {3}, and...",$Trainer.name,PBItems.getName(pbGet(31)),PBItems.getName(pbGet(32))))
Last edited: