This will randomize items so any items gained will be randomized even key-items
Notes:
1.) I'm fairly certain that pbRecieveItem is used by a lot more than item balls. NPCs and possibly even the item shop. Which means the player would think they're buying a potion and instead get a Cherish Ball. Maybe you can play off that and make shops sell "???" in Randomizer?
2.) This still includes every single item, even Key Items. Considering some items are needed in order to progress, you need a way to say "this item get isn't randomized ever"
3.) This code will only work if CustomItem is an item in items.txt
Code:
def Kernel.pbReceiveItem(item,quantity=1,plural=nil)
if item.is_a?(String) || item.is_a?(Symbol)
item=getID(PBItems,item)
end
[COLOR="Red"] item=rand(PBItems::CUSTOMITEM)+1 if $game_switches[RANDOMIZER][/COLOR]
Notes:
1.) I'm fairly certain that pbRecieveItem is used by a lot more than item balls. NPCs and possibly even the item shop. Which means the player would think they're buying a potion and instead get a Cherish Ball. Maybe you can play off that and make shops sell "???" in Randomizer?
2.) This still includes every single item, even Key Items. Considering some items are needed in order to progress, you need a way to say "this item get isn't randomized ever"
3.) This code will only work if CustomItem is an item in items.txt
Last edited: