christianerding Posted September 10, 2011 Share Posted September 10, 2011 Hello Guys, I tried to improve the flamerscript with a "Fear-effect" so enemies will stop fightung and run instead. So I took the existing Enchantment EnchFlamerEffect and added the one more effect called "Run" associated with confidence Flags: Hostile, detrimental, FXpersist, self, touch, target. I added this effect to EnchFlamerEffect Duration 30 Magnitude 100 But the enemies do not run away! What is wrong?? THX for helping, Christian Link to comment Share on other sites More sharing options...
prandiningrat Posted September 10, 2011 Share Posted September 10, 2011 afaik, the only thing to change confidence, is using setav(use this on script)...and if you change it on your enemies during combat then they will not use their new confidence unless you use 'scaonactor' command or evaluating their current package (evp). This why enemies do not run away,because they still using old value of confidence. Link to comment Share on other sites More sharing options...
rickerhk Posted September 10, 2011 Share Posted September 10, 2011 To expand on what Bandit Ngebak said, I would create a base effect of type 'script' with those flags checked. Then a script for the base effect. Then add it to the flamer Object effect with a duration of whatever you like, magnitude 0 scn MyScaryFlamerEffectScript short iOldConf BEGIN ScriptEffectStart set iOldConf to GetAV Confidence SetAV Confidence 1 ;or zero if you want ScaOnActor END BEGIN ScriptEffectFinish SetAV Confidence iOldConf ScaOnActor END Link to comment Share on other sites More sharing options...
christianerding Posted September 11, 2011 Author Share Posted September 11, 2011 (edited) afaik, the only thing to change confidence, is using setav(use this on script)...and if you change it on your enemies during combat then they will not use their new confidence unless you use 'scaonactor' command or evaluating their current package (evp). This why enemies do not run away,because they still using old value of confidence. THX to both of you!! :-) Many thanks for understanding what the problem is, this is not so easy in english. I did not I expect an answer nor a solution to my very special problem, thank you even more for posting a script.I am not a scripter, but I think copy and paste should be manageable by me. I hope it can stick this thing together. It would be so great, when it would work, because I hate it when people shoot at me while burning.They should have other problems. At the moment I am trying to lern how effects work how they are linkend ans so on. THX, Christian Edit: I tried it. Ooooooooooooooooooooohhhhh my god, it works, it simply works!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Thank you rickerhk I have searched for something like that sooo long!! Thanks for writing that script, it describing the way to build this so perfect.I would have needed 100 years to understand the script-engine! :-)))) I have to go now, time for a bbq! Christian Edited September 11, 2011 by christianerding Link to comment Share on other sites More sharing options...
Recommended Posts