Help - Search - Members - Calendar
Full Version: Common Events.
RPG RPG Revolution Forums > Game Engines > RPG Maker XP Discussion
JeremyBenson
I'm wondering, can you run common events when the player buys something at a shop? I'm not sure because I haven't made one in my game yet. I'm still getting all the sounds, and stuff in place. Filling out the database. I'm wondering because I'm going to create an item that increases all stats a little, but it's essentially a stone that once touched evaperates in the hand.

I was going to run a comman event saying the the shop keep passes the player the stone wrapped in some fine cloth as to not touch it himself.

-- Just realized this would be hard ---

anyone got a solution? lol
Tsukihime
Don't think you could do it by default.
There may be a custom shop script that would allow you to call common events when you perform a certain action, but don't know.

On the other hand, there are some indirect ways to solve the problem, assuming the conditions are correct.

For example, if the item is only obtainable from a shop (or even, THAT shop), then you could always create an event in the same map running parallel with the following commands

CODE
if item ________ is inventory
   show text: "Don't touch that with your bare hands"


So once you buy it and you exit the shop menu, it would appear that the shopkeeper is telling you not to touch it.

Note that this only really works if the item is not already in your inventory when you enter the shop, and would only work if you obtain the item while you're in the shop (ie: you bought it). If you could get it elsewhere, the event would be triggered once you enter the shop, which makes it silly.
Donline
Im pretty sure you can...

set the common event too trigger after the player has received the "Item+1 then "Turn off"

you'd be better off setting a parallel process with the "shop run" event that alters shopkeepers goodbye message after buying items


oh... @Tsukihime
Tsukihime
Is the "item + 1" condition provided or something we have to script ourselves.
JeremyBenson
hmm. This is something I'm going to have to play around with. I'm not sure I understand this talk just yet, lol.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.