RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

Character based item use (done with events) ?

Started by FruitBodyWash, January 15, 2009, 07:05:57 AM

0 Members and 1 Guest are viewing this topic.

FruitBodyWash

I have been trying to make a way so that an Item used in battle will only work for certain characters. For example, I call my dog into battle, and to heal it, I would like to use a "Dog Treat" that will restore it's health.  Now... how do I make it so that when I give it to the dog, it heals it, and if I try to use it on a person, they say "ick... I'm not eating that..." .  I would also like it so that giving it to a person and getting that message won't use up the Dog treat.  Any idea's?

As a side note, if I had another item, that could be used to give to all creature party members, but not to a person, (same deal as before) how could I do that as well?  Thanks :)

"Keep smiling, it makes people wonder what you're up to."

OK, so what's the speed of dark?
What happens if you get scared half to death twice?

Since there's a duck-billed platapus, is there just a plain platapus? If so... what does that look like?

modern algebra

You would probably need a small scriptlet to save who the target is. SO, yeah - make a request.

Then you can make it so the item calls a common event and it is non-consumable. Then, in the common event, you can check who the target is through script (not possible with events), and condition on tha - if dog give the appropriae SE and hal and lose Item: DOg Treat - if a human, play message, bad SE, and do not lose the item - you would still lose the turn though.