I could use help on another script if any one has time please.
I think I'm getting better, but then I run into another one that stumps me.
If : Script: $gameActors.actor(5).Skill($gameVariables.value(11), true)
$gameActors.actor(5).Skill($gameVariables.value(11), true)
So I want it to check if actor #5 has Skill #x where x is Variable#11.
Thanks
And what's happening when you try? Are you getting an error message? We need to know what it says.
$gameActors.actor(5).isLearnedSkill($gameVariables.value(11))returns true if the actor has the skill whose id is in variable 11, and false if they don't.
You don't need to pass true into it.
Here's a good way to start learning - if it's something you can do via event command, look at the rpg_objects.js file at the Game_Interpreter class. With your cursor on that line, search for the name that appears on the event command button. In this case, it's in Conditional Branch, so I searched for Conditional Branch. The 'cases' listed in that function all correspond to the different options you can choose for Conditional Branch. Case 4 is Actor, and underneath that you'll find Skill, which returns actor.isLearnedSkill(n)
Here is a picture of the way i had it, and the error.
Thanks for the advice Shaz. I will try actor.isLearnedSkill(n) and look into that file for reference.
[IMG]http://i1086.photobucket.com/albums/j455/AnimeImports/actor-skill_zpszizesskt.jpg[/IMG]
I am trying to do a open world game and i want to have objects in the game that can only be removed if the user has a certain skill no matter how they attained that skill, and also have various interactions changed by those skills.