- Joined
- Mar 28, 2012
- Messages
- 410
- Reaction score
- 61
- First Language
- English
- Primarily Uses
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
COMMON EVENT
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>
Code:
Control Variables: 0010 += 1
if 0010 >= 20
Change Skill: Actor1, +Skill
Text: LEARNT!
Control Switches: 20 = ON
