Skill Restrictions. How to make them work?

Siolenas

David LaSelle
Veteran
Joined
Dec 7, 2012
Messages
44
Reaction score
0
Primarily Uses
Here is what I am trying to do.

Base Skill:  Stealth

Other Skills:

Backstab,  stun. and so on

I want backstab to be only usable when the state stealth has been applied. 

I've tried using Yanfly Skill Restriction script but the skill backstab still is usable at any time.  Here

is the note tag that I am using.

<eval_usable self.state?(28)>
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
post a link to yanfly's script please... AFAIK though, that tag you used is wrong...
 

Alexander Amnell

Jaded Optimist
Veteran
Joined
Mar 17, 2012
Messages
3,404
Reaction score
1,733
First Language
English
Primarily Uses
N/A
The easiest way to do this is to just set the skill as useable when the state is applied. I do the exact same thing by having stealth skills be their own skill type that the player doesn't have access to by default. That way he/she can learn the skills but since they can't use the skilltype unless the state is applied they only have access to them during the state.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Though there are quite a number of ways that that method cannot be used... Like he might want it to be always visible, or he needs it to be same type as the other skills etc... but assuming he doesn't need any of these things, that will be an easy way to do it... :)
 

Siolenas

David LaSelle
Veteran
Joined
Dec 7, 2012
Messages
44
Reaction score
0
Primarily Uses
The easiest way to do this is to just set the skill as useable when the state is applied. I do the exact same thing by having stealth skills be their own skill type that the player doesn't have access to by default. That way he/she can learn the skills but since they can't use the skilltype unless the state is applied they only have access to them during the state.
How would you go about doing that?

http://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/skill-restrictions/ 

Is the link to the skill.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
you should really read the instructions... it's all written there... there's no such thing there as <usable_eval>...

you would be using this I think:

Code:
<restrict eval>  !a.state?(28)</restrict eval>
or
Code:
<restrict eval>  !self.state?(28)</restrict eval>
 
Last edited by a moderator:

Siolenas

David LaSelle
Veteran
Joined
Dec 7, 2012
Messages
44
Reaction score
0
Primarily Uses
Thank you!  I actually got that tag from another post on the forum.  
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,083
Members
137,583
Latest member
write2dgray
Top