Ok, so I'm trying to make a game about selling potions. I have a single event that controls a few things which sort acts as the drop off point to give clients their potions. The problem is I want the type of potion this event/NPC wants to be random and I'm having trouble understanding how to do I get this event to assign an item the event wants dynamically AND sell said item it wants.
I think I got code that's almost there. Basically I got a common event that uses 4 variables in it
License Level - Determines how high the Array will roll for "Potion Type"
#22 Potion Type - Determined by RNG set to a number
#23 Potion Request - Changes value to number of assigned item
#24 Potion Name - Uses script to pull items name for NPC to say
So if I have the event subtract from "Potion Request," would that work and/or sell the item?
I think I got code that's almost there. Basically I got a common event that uses 4 variables in it
License Level - Determines how high the Array will roll for "Potion Type"
#22 Potion Type - Determined by RNG set to a number
#23 Potion Request - Changes value to number of assigned item
#24 Potion Name - Uses script to pull items name for NPC to say
So if I have the event subtract from "Potion Request," would that work and/or sell the item?