Skill Type Conditional Branch

Status
Not open for further replies.

Da Snow God

Warper
Member
Joined
Aug 25, 2016
Messages
2
Reaction score
0
First Language
English
Primarily Uses
If this is in the wrong forum I apologize and please move me. I looked around and can't seem to find what I'm looking for. I'm not the strongest scripter so if this does require some, try and keep it simple. I wan't to make dialog appear only if a certain skill  type is used/known. Not only do I need it to allow certain dialog when a party member is using "Magic," but I also need another to remove static effects of anyone who does NOT use "Magic." 


The first is to allow you to learn magic from the Mage in the starting town and become the mage class. I know how to do everything except the check itself. However I considered using multiple class checks, but my game is coded with over 15 different classes. Only 5 of which are obtainable at start so for only one NPC won't be so bad, but I really would like to ovoid this for the second situation. (Figured out a simpler way  to do this part however it will not work for the other). The second is to allow "Non-magic users" a free heal and debuff removal at alters. Again I know how to do everything except the check its self. This is due to Magic Users being shunned in my game for an added difficulty bonus.


Thank you for any help with this.  :)
 
Last edited by a moderator:

Rinobi

Veteran
Veteran
Joined
Mar 24, 2014
Messages
579
Reaction score
219
First Language
English
Primarily Uses
RMVXA
Get the skill type of the skill being used...
If you place this in a damage formula, It would only work if the skill 'hits'.


Skill Type: None would return 0.


a.current_action.item.stype_id




Check if the party leader has a particular skill type.


$game_party.leader.added_skill_types.include?(stype_id)




Checking the help documentation under 'Data Structures' helps a lot when searching for useful methods.


I'm thinking the script call collection forum for VX Ace could use an update...
 

Da Snow God

Warper
Member
Joined
Aug 25, 2016
Messages
2
Reaction score
0
First Language
English
Primarily Uses
Thanks it was a little rough, but I managed to figure it out with this and some Googling! I don't know how to set this as answered, but I don't need anymore help on it. Thanks again!
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
To get a thread closed, simply report your opening post (the 'Report' button is next where it tells you when a post was made) and ask for it to be closed.


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.
 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

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.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,863
Messages
1,017,053
Members
137,571
Latest member
grr
Top