It was not an error exactly. I'm testing scripts through the editor at this point. To review, I have an armor I would like to when worn to allow a character to regenerate (among other things, but that's besides the point at the moment). Manikus told me that this needed two scripts, one to activate/deactivate it, and one to do the actual work.
This is the script Manikus gave me:
name = item_SymbiotecharacterRegeneration
[OnReady] = $SET_CHARACTER_SA($CharacterContext(),"characterRegeneration","3");
[OnUnReady] = $DELETE_CHARACTER_SA($CharacterContext(),"characterRegeneration");
It is indeed valid, as evidenced by screen shot #1
This is the script that actually is supposed to do the work that I was trying to do. It is basically the Troll Regeneration monster ability, but I changed a couple words. Which I admit was way too easy.
name = characterRegeneration
[StartCombatRound] = $VAR tgt;
-tgt = $IndexOf($Myself());
-currHP = $GET_CHAR_HITPOINTS(tgt);
-round = $GetCombatRound();
-$IF (currHP <# 42)
- $IF ($SA_COMBATANT_GET("timeToRegen") == "-?-?-")
- $SET_COMBATANT_SA($Myself(),"timeToRegen",round +# 3);
-$IF (round ==# $SA_COMBATANT_GET("timeToRegen"))
- $RETURN $SET_COMBATANT_SA($Myself(),"characterRegeneration",$SA_PARAM_GET());
Which presented the following message, as evidenced by screen shot #2. I'm sorry I couldn't move the window up or down.