Common Event Variables not setting variables

Hello RPG Maker peeps,

I am having issues calling the variables I set in the database for checking the variables (user,target,skill,item) in battle.

You can find the script here: http://himeworks.com/2013/04/common-event-variables/

Also here is my set up:

http://i.imgur.com/hik1gzO.png <-- Script Variable Set up

http://i.imgur.com/OoeGye1.png <-- Common Event Variable Set up.

http://i.imgur.com/Q5Ey5yC.png <--- Troop Set up

http://i.imgur.com/XvDwkck.png <-- The Result.

Does anyone have any ideas?
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
Of course those values are zero - the troop event that calls the common event has no actor ID, it has no target or any of the other data.


The skript will always overwrite the previous data with the data of the current call - drop that troop event, call the skript from a skill and it should give the data for that specific skill use.
Oh okay. Thanks Andar. That's kinda crappy for what I want to do. But i'll figure something out.

@Shaz. Sorry I thought I posted in the correct forum. Problem solved.
You posted in VX Ace support. Since it's such a huge subject, there is a special forum for support with scripts.

Original thread: https://forums.rpgmakerweb.com/threads/common-event-variables-not-setting-variables.39998/