RPG Maker Forums

Im trying to have my weapon teach the actor a skill if the weapon is equipped and applied a specific state X times.

Im sure theres a better way but im trying to have a custom apply effect on state that checks if the actor has the weapon equipped and if switch 20 is off, if so it calls a common event. Once you learn the skill the switch being on will stop it from calling it.

Maybe I have the wrong scripts :S

STATE
Code:
<Custom Apply Effect>
if ($gameActors.actor(1).hasEquipped(16) && $gameSwitches.value(20) == false ) {
$gameTemp.reserveCommonEvent(6);
}
</Custom Apply Effect>
COMMON EVENT
Code:
Control Variables: 0010 += 1

if 0010 >= 20
Change Skill: Actor1, +Skill
Text: LEARNT!
Control Switches: 20 = ON

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,050
Messages
1,018,548
Members
137,835
Latest member
yetisteven
Top