please help with a small bit of script language

Hi all.

I'm looking to set up some passive states that only apply when a specific skill type is available to an actor. im using:

Victor Engine - Passive States

i have made a dummy skill for the text. in the dummy skills notes i cant work out how to set it up.

what i think i need is something like

<passive state: 38>

$game_actors[1] . has skill type X;

</passive state>

 

i want it to apply passive state 38 to actor 1 if actor 1 has skill type X

Victor Engine - Passive States.txt
Try this:

<passive state: 38>$game_actors[actor_id].added_skill_types.include?(your_skill_type_id)</passive state>or maybe this if you want to make the check for the actor himself(not sure if this will work):

Code:
self.added_skill_types.include?(your_skill_type_id)
Awesome! worked like a charm ^^

this saves me a lot of work

thank you evgenij

now how do i report as solved??
You just hit the Report button on your post and ask for the thread to be solved.


Or wait for a moderator to come by and see your command that it works as needed 😉


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/please-help-with-a-small-bit-of-script-language.29785/