Does anyone know how to properly transfer float variables from parent and child scripts? I had already marked the variables as a float property and they work in it's own script, but when I access the variable in a child script, the value does not show (compiling works). I thought that I didn't fill in the property on CK, but I still didn't get the value to transfer when I did.
Just writing up a sample to give the idea:
Scriptname ScriptA extends ActiveMagicEffect
Float Property VarA Auto
Float Property VarB Auto
Float StoredVarB
Int Casting = 0
Event OnEffectStart(Actor Target, Actor Caster)
If Caster.GetAV("Infamy") == 0
VarA = Caster.GetScale()
EndIf
Casting = 1
EndEvent
Event OnEffectFinish(Actor Target, Actor Caster)
If Casting == 1
StoredVarB = VarB
VarB = 0
Casting = 0
EndIf
EndEvent
Scriptname ScriptB extends ScriptA
Float RoC
Float VarC
Float Casting
Event OnEffectStart(Actor Target, Actor Caster)
RoC = (Caster.GetAV("Fame") - VarA) / 100
If Caster.GetAV("Fame") > VarA
Caster.ModAV("Fame", RoC)
VarC += RoC
Casting = 1
EndIf
Utility.Wait(1)
EndEvent
Event OnEffectFinish(Actor Target, Actor Caster)
If Casting == 1
VarB = VarC
Casting = 0
VarC = 0
EndIf
EndEvent
I need values to be able to transfer back and forth, but I have not been able to make that happen despite my code compiling correctly. Tried everything and looked up everything. So I'm all out of ideas and immensely frustrated. =/