slot machine not working (HasXp SeqCond)

var int XP; global in class
If you define it globally in the class. You can not use that define in a local function in that class.

you can’t define 2 types of XP in same file, not Globally and locally(only locally). Your saying the global type is an int but the local your saying it is a XP Class. That will not work.

local XP XP; use just in this function local (AS LONG AS NOT DEFINED GLOBALLY)

XP = HasXP(TargetActor);

wheres this function at? HasXP(TargetActor); what does it return?