[RMVX ACE] SPECIAL EFFECTS WHEN GUARDING BASED ON EQUIPPED SHIELD
Posts
Pages:
1
I'm looking for a way (scripting or eventing) to make it so that when a character uses the Defend command, a spell is cast that depends on the equipped shield.
For example, if the character has a Holy Shield equipped and then guards, the entire part's HP is healed. If the character has a Wide Shield equipped, then guarding will boost the entire party's DEF slightly in addition to giving a large DEF boost to the defending character.
For example, if the character has a Holy Shield equipped and then guards, the entire part's HP is healed. If the character has a Wide Shield equipped, then guarding will boost the entire party's DEF slightly in addition to giving a large DEF boost to the defending character.
So, I'm not sure how it might end up looking like this, but, I'm kinda thinking the script might want to look like...
...that? Did... that make... any sense, or am I just rambling incoherently?
case user.equips[1].id # Checks against the ID value of the skill user's currently equipped shield. when 1 # These ID-values are against the Armor database, so, I largely doubt you'll start at ID#1! #<Special processing to occur if this shield is equipped would go here> #etc for "when 2", "when 3", "when else" end
...that? Did... that make... any sense, or am I just rambling incoherently?
author=Marrend
So, I'm not sure how it might end up looking like this, but, I'm kinda thinking the script might want to look like...
case user.equips[1].id # Checks against the ID value of the skill user's currently equipped shield. when 1 # These ID-values are against the Armor database, so, I largely doubt you'll start at ID#1! #<Special processing to occur if this shield is equipped would go here> #etc for "when 2", "when 3", "when else" end
...that? Did... that make... any sense, or am I just rambling incoherently?
I'm not really familiar with RMVXAce scripting, but I'm familiar with other programming languages so hopefully my knowledge there will translate well enough. That being said, I do understand what the code is supposed to be doing, so I'll try it later and see how it goes.
Pages:
1















