skill checks...

Here is what I am trying to do with a scrpt.

I have various events as traps.

I have a character with an awareness skill.  This skill will  allow him to detect that trap and disarm  it.

I would like a scripts that for player 1 that detects that trap and does a random roll against the characters agility.   If its below that number it disabled the event if it fails it triggers a secondary event
at the beginning of the event, have a control variable set to a random number in your game's AGI-range, then a conditional branch comparing the result with the player one AGI to determine whether the trap will work or not in the branches.
   This would not, by any means require a script. All you'd need is to have your skill activate a common event that turns on a switch. Whenever this switch is on you'd have the traps be active so that the player can attempt to disarm them. You use a variable and set it to = said character's agility and then do whatever calculations you need to do to determine whether or not it would work.

Edit: why do I always type so slow?

Original thread: https://forums.rpgmakerweb.com/threads/skill-checks.22511/