reaper9111 Posted July 11, 2010 Share Posted July 11, 2010 Scn Whatever Ref Target Begin ScriptEffectStart Set Target to GetSelf If Target GetShouldAttack Player == 1 && Target GetInFaction UndeadFaction == 1 && Target GetDistance Player <= 10 Player.PushActorAway Target 25 EndIf End This Should prevent all type of undead to directly arm the player and to push them awayNote damage done by bow and spell will arm the playerThis will prevent all type of undead to get close to the player Any idea why the Undead around the player dos'nt get affected and push away ?Many Thank Reaper Link to comment Share on other sites More sharing options...
goranga Posted July 11, 2010 Share Posted July 11, 2010 I think that if you use pushactoraway function, both pusher and pushed must be NPC-s (you can't use it on player). Can you give some explanation what are you trying to accomplish!!! Maybe you can use stopcombat instead Link to comment Share on other sites More sharing options...
reaper9111 Posted July 11, 2010 Author Share Posted July 11, 2010 Haa, Glad to see en experienced scripter such as your self Goranga replying to me... it will siplyfied thing a lil... he he ! It simple, it a ring (any clothes) that when the player wear it, it will push all the undead that get around the player... No Damage, No Nothing, just push them AwayRing of Undead Repulsion... if this ring a bell... Note that i was able to save the scrip as is in the post...Please let me know if you need more info... Ps what happen to your prostitution mod ? i was reffering it to a few fellow ... and i was surprised to see that you removed it ! Reaper Link to comment Share on other sites More sharing options...
goranga Posted July 11, 2010 Share Posted July 11, 2010 First you need to acquire the reference of NPC. That could be done using some spell (spells with area). Second you need to filter undead creatures (if undeadfaction==1 etc) Then you need to use following functions UndeadRef.StopCombat (that will make him stop combat)SetAV aggression 5 (that will prevent them not to attack you again after they stop combat)Moddisposition 70 (I don't know if undead have any disposition toward you, but if they do you can use this in any case) also you can try this one UndeadRef.ForceFlee Unfortunately I don't have time to test this, but that's the only way to see what works. Try to make something with those functions and see if they are helpfull!!! Link to comment Share on other sites More sharing options...
reaper9111 Posted July 11, 2010 Author Share Posted July 11, 2010 The ForceFlee seem to cause problem or not working most of the time... but i'll try a version of the script with it !How can i use a spell to get theyr REf if this is to be a constant effect ? I mean will i need to cast the Ref spell in every cells ? at every sec ? and how will i do that in Exteror cell ?Anyway, i'll try some new stuff using your idea and will let you know, Thank you for repluying...keep an eye out on this thread Reaper Link to comment Share on other sites More sharing options...
Recommended Posts