The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: Dimosthennis on March 18, 2011, 11:28:30 AM

Title: [Request] Item required for skill.
Post by: Dimosthennis on March 18, 2011, 11:28:30 AM
Hi.
I am looking for an script that players are not able to use a skill [Shield Smash] unless they have an Item equipped [Shield]

For example: The skill 'Shield Smash' Requires a 'Shield*armor*' to be used. Or else the skill shows grey.
Example: The skill 'Ambush' Requires a 'Dagger*weapon*' to be used. Or else the skill shows grey.
Example: The skill 'Flame Arrow' Requires a 'Arrow*item*' and a 'Bow*weapon*' to be used. Or else the skill shows grey.

If possible I like to have comments in the Skill/Item/Weapon/Armor Note Boxes to set the requirements.

Please tell me if you need more Information  :)

Title: Re: [Request] Item required for skill.
Post by: Pokey on March 18, 2011, 11:41:04 AM
Simple(i think)
[spoiler]Create a common event
@>Conditional branch[Actor you wish] is [ARMOR equipped]
   @>Change skills [Actor], +[Skill]
  : else
      Change skills [actor], -[skill]
Trigger: parallel process
Cond. switch: whatever
JUst turn the switch on at the start of the game
Some of the command names may be different, this is for XP[/spoiler]
Title: Re: [Request] Item required for skill.
Post by: Zylos on March 18, 2011, 04:28:30 PM
I think this is what you're looking for:
http://rmrk.net/index.php/topic,24407.0.html

It's not exact, it doesn't display grayed out skills if you don't have the equipment on, but it sounds closely related enough to what you're describing. Hope it helps.

Title: Re: [Request] Item required for skill.
Post by: Dimosthennis on March 19, 2011, 12:58:25 PM
Thanks for the try. but it's not what I was looking for.

I want that the skill requires a Item, and not an item that learns a skill. That would mass up a class in my game
Example: Cleric equips 'Shield' learns 'Shield Smash'.    this is not what I want.

If you have played wow. there are skills that requires Items to use skills. Like for the warrior Tank 'Shield Bash' need a shield to be used.

And the common event is a point... but if it was for 'Class' and not 'Actor'. thanks for trying though.

Title: Re: [Request] Item required for skill.
Post by: Pokey on March 19, 2011, 01:27:10 PM
QuoteFor example: The skill 'Shield Smash' Requires a 'Shield*armor*' to be used. Or else the skill shows grey.
That's what my event does. exept, instead of greying out , the skill doesnt show.
Title: Re: [Request] Item required for skill.
Post by: Dimosthennis on March 19, 2011, 03:46:16 PM
I will use your common Event again and see the result.