Script 1:
Scriptname CheckStuff extends Actor
int property SpellAttack = 0 auto
Script 2:
Scriptname MagicStuff extends ActiveMagicEffect
CheckStuff Property PlayerSpellAttack auto
Int testing = 20
Event OnEffectStart(Actor Target, Actor Caster)
;When caster hits a target
debug.MessageBox(testing)
PlayerSpellAttack.SpellAttack = 300
testing = PlayerSpellAttack.SpellAttack
debug.MessageBox(testing)
EndEvent
This returns a 20 the first time, and then a 0 the second time instead of 300 which I would have expected. What am I missing or forgetting to include to share the variable of script 1 with script 2?
Bonus question: Anyone know why I cant use Debug.Messagebox if I call a function in Script 1 from Script 2. It will only appear in game if it's called and located in Script 2(The one with the event).
