Trying to introduce my brain to Osiris. I've been stuck on this...well I forgot how long now.
This is the base script: All I did was override the original(script resource, etc) and included my script and have base use my script.
#INCLUDE FirstScript
INIT
CHARACTER:__Me
CHARACTER:%LookAtChar
CHARACTER:%AttackOfOpportunity
ITEM:%LookAtItem
INT:%FearFlee
INT:%Following = 0
FIXEDSTRING:%PrevIdleAnim = ""
FIXEDSTRING:%CrawInfest_Faction = ""
EXTERN INT:%FleeFromDangerousSurface=1
EXTERN INT:%bool_CanChickenFlee=1
USING FirstScript
And this is my script:
INIT
CHARACTER:__Me
EVENTS
EVENT FirstScriptEvent
ON
OnSkillCast(__Me,"Target_Restoration")
ACTIONS
IF "!c1"
IsInCombat(__Me)
THEN
Output("Success")
ELSE
Output("Failed")
ENDIF
Now if my logic is on point, I should get "success" because I'm NOT in combat, when I cast restoration. I don't expect ELSE to run of course, but never know.
Well, here's the thing, I've yet got this script to work, with any character, at least for the Game Mode of the Editor. I have not tried it in the actual game.
If anyone can tell me what I'm doing wrong here, it'd be appreciated.