mojavesuave Posted August 12, 2022 Share Posted August 12, 2022 (edited) I want to make a custom actor effect that when applied to a creature, allows them to fully restore health at 50% health, play an effect shader, play a sound, play a message. I have tried several variations of my script and none of them have ever worked despite successfully compiling. I’ve tried using several other scripts as templates and followed the exact syntax with no luck.. I’m not sure whether my issue is the script, base effect, or actor effect. I’ve used other base effects as templates for mine and the same goes for actor effects. Something I don't understand is that I can reference the creature in game, and manually write what is in my script into the console and it works fine....but the script does not. script attempt 1: scn TestEffectScript short DoOnce Begin Gamemode If GetHealthPercentage <= 0.50 && DoOnce == 0 CastImmediateOnSelf TestActorEffect PlaySound TestEffectSound MessageEx "Enemy is effected" Set DoOnce to 1 Endif END script attempt 2: ScriptName TestEffectScript Begin ScriptEffectUpdate If GetHealthPercentage < 0.5 ResetHealth PlaySound3D TestEffectSound PMS TestEffect MessageEx "Enemy is effected" EndIf End Edited August 12, 2022 by mojavesuave Link to comment Share on other sites More sharing options...
gogutier Posted August 13, 2022 Share Posted August 13, 2022 It doesn't work at all? If put ' print("test") ' at the beginning it does show it on console? Also you should try using 'BEGIN ScriptEffectStart - end' in the initial block. Link to comment Share on other sites More sharing options...
mojavesuave Posted August 16, 2022 Author Share Posted August 16, 2022 (edited) Not at all, I think its a syntax/block structure oversight on my end. I'll be trying both of those, appreciate the suggestions Edited August 16, 2022 by mojavesuave Link to comment Share on other sites More sharing options...
Recommended Posts