- Joined
- Oct 17, 2013
- Messages
- 38
- Reaction score
- 29
- First Language
- Spanish
- Primarily Uses
- RMMV
I wasn't concerned about the magical check but the stype check, without it, any character could use it for it's spells no matter what skill type they have. But that was just a thought 
Dizziness: Yeah I thought of that after I post it, it's definetely not worth the pain.
Lock:
This is the skill's full code:
Dizziness: Yeah I thought of that after I post it, it's definetely not worth the pain.
Lock:
This is the skill's full code:
Code:
<Custom Select Effect>
// Check if this action is a skill and targets an opponent.
if (this.item() && DataManager.isSkill(this.item()) && this.isForOpponent()) {
// Create a pool of blocked Skill TYPES.
var blockedtypes = [];
// Add the skill type ID's to that pool.
blockedtypes.push(7, 8, 9);
// Create a pool of blocked individual skills.
var blockedskills = [];
// Add the individual skill ID's to that pool.
blockedskills.push(249, 250, 251, 252);
blockedskills.push(253, 254, 255, 256);
// Check if the skill type or skill ID matches.
if (blockedtypes.contains(this.item().stypeId) || blockedskills.contains(this.item().id)) {
// If it does, then store the skill's original success rate.
this._formerItemSuccessRate = this.item().successRate;
// Now drop the skill's success rate to 0.
this.item().successRate = 0;
// Start an animation to show the spell shield occurred.
target.startAnimation(53);
}
}
</Custom Select Effect>
<Custom Deselect Effect>
// Check if there is a success rate stored.
if (this._formerItemSuccessRate !== undefined) {
// Restore the skill's success rate.
this.item().successRate = this._formerItemSuccessRate;
// Remove this spell shield state.
target.removeState(stateId);
}
</Custom Deselect Effect>