The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: fadark on February 17, 2007, 10:11:25 PM

Title: I need a script that.....
Post by: fadark on February 17, 2007, 10:11:25 PM
I need a simple (at least I think it's simple) script.

I made my own accesory for my game, and it's called: "Battle Armor". I need a script that makes it so: When "Battle Armor" Is equiped on my main hero, his sprite is:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg250.imageshack.us%2Fimg250%2F8870%2F001fighter01lh5.png&hash=4e672b0da0895a998cd1bbc34f82f760bd37fd99) (http://imageshack.us)
But when he doesn't have "Battle Armor" equiped, his sprite is:
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg250.imageshack.us%2Fimg250%2F8136%2Fintroheroya8.png&hash=e504d5007b911517389e738870a0c62ec6d568d6) (http://imageshack.us)


Thanks if anyone can help!
Title: Re: I need a script that.....
Post by: :) on February 17, 2007, 10:15:14 PM
use a commen event...
se it to if 'armor" is equipped:
  - Change actor graphic to: (one with armor)
-Else:
  - Change actor graphic to (one without armor)
Title: Re: I need a script that.....
Post by: pliio8 on February 18, 2007, 02:22:07 AM
Quote from: Nouman on February 17, 2007, 10:15:14 PM
use a commen event...
se it to if 'armor" is equipped:
  - Change actor graphic to: (one with armor)
-Else:
  - Change actor graphic to (one without armor)

More specifically:

Set it to Paralell process and trigger: none. This should work right, if not then have the trigger be a switch. And have an auto-start that turns the switch on and deletes itself.