- 21
- Posts
- 9
- Years
- Seen May 13, 2016
Hello everyone! First time posting here, but after a while of looking for the answer elsewhere thought might as well ask for help.
Long story short: A group of people and I have been having issues making npcs give the player multiple of an item (Potions to be exact).
We manage to get one potion being given but multiple just makes the game crash.
The line of code in question is this:
Kernel.pbReceiveItem(PBItems::POTION,5)
It works fine once we remove the ',5' from it. Though adding in the 5 to tell rpg maker that want to make it give out 5 potions makes it look like this when viewing it in rpg maker:
Script:Kernel.pbReceiveItem
:(PBItems::POTION,5)
Not really sure what's the problem so an explanation would help greatly since everyone in the group is new to this.
Long story short: A group of people and I have been having issues making npcs give the player multiple of an item (Potions to be exact).
We manage to get one potion being given but multiple just makes the game crash.
The line of code in question is this:
Kernel.pbReceiveItem(PBItems::POTION,5)
It works fine once we remove the ',5' from it. Though adding in the 5 to tell rpg maker that want to make it give out 5 potions makes it look like this when viewing it in rpg maker:
Script:Kernel.pbReceiveItem
:(PBItems::POTION,5)
Not really sure what's the problem so an explanation would help greatly since everyone in the group is new to this.
Last edited: