A help with some thief skill and a magic

Hy there, there's some skill that I wanna perform...

-Treasure Eye Land: a dq skill that allows you how much treasure are in a dungeon.

-Peep: allow you to analyze the content of the treasure depending of the color of the aura: "Blue aura - contains an item", "Yellow aura - contains gold" and "Red aura - monster-in-a-box".

-Libra: a skill that allow's you to see traps in the dungeon.


These are the skills/magic that I wanna perform. If you had any tips for these skill, I appreciate that.
all of that can be done with base eventing.

for example you can simply count the gold you place in chests and set that into a variable. each time a chest gives gold, that variable is reduces by the same amount. and the skill simply displays the variable.

the aura/traps would be even easier - give each chest a higher priority page that has an aura depending on content, and have all those pages conditioned on a switch with a parallel process wait 10 frames and then switch back.
have the skill trigger the switch to display the auras, and 10 frames later the aura vanishes again.

automatic counting of the treasure gold would require a script and be much more complex than manual caunting
nose for treasure: say theres 6 treasures on the map, the transfer would set a variable to 6 followed by
series of if statments each checking to see if switch is active for each treasure;
if switch is on (treasure already found) reduce variable by 1.
would need to eaither be using normal switchs instead of self switchs for each treasure,
OR a script call that checks for event X's self switch.
the skill just run a common event display message "there is V treasure remaining"

peep: the skill just sets a variable to 1
every treasure box new page, autorun with the skill's variable condition (box1's variable === 1)
contents check player X'Y location if = position directly infront of the box,
>if box already been looted, if has been looted message making fun of silly player;
else display message for the box's aura.
after the "end" line in contents it just increases the variable +1 so the next boxes autorun will trigger.
the last box sets the variable to 0 instead of increasing it.
(probably a better method using script calls but im bad with script)

detect traps: what @Andar said, skill turns on switch, higher page's switch condition with the aura sprite, parallel common event turns switch off after X frames.
Ok @Andar I made two of three of these skills. I said I had to thank you.
Thanks a lot guys. If i encounter any problem, i'll let you know.

Original thread: https://forums.rpgmakerweb.com/threads/a-help-with-some-thief-skill-and-a-magic.138095/