don't know what the hell you're talking about as I HATE rpgs on warcraft III - but, lets assume you mean hes basing his spells damage off your intel... its quite easy really, a unit casts the spell then in the triggers it takes over and does a integer comparison setting the current intelligence as another variable, then he uses that variable to go on with the spell...