Graewolph Posted December 27, 2008 Share Posted December 27, 2008 I'm trying to create a will o wisp companion for a mage character. I've been succesful w/maigret's SherjaCm tutorial. I've created a troll as well as having her sherja/Tarana mod. I'm using the same method of coding. However when applying same to willowisp critter the guards attack Willy automatically. They won't attack troll at all but they seem to hate old Willy. It's funny because my troll ends up DEFENDING will. I'm just wondering if guards (in Anvil) are hard coded to HATE Will o wisps? Agress. 8 Confidence 100 energy 80 Resp. 0script used: (maigret's)scn GWBluWillScript ref rEnemy ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; begin OnActivate if IsActionRef player SetIgnoreFriendlyHits 1 if BluwillFollow == 1 set BluwillFollow to 0 Message "'Blu, wait for me.'" elseif BluwillFollow == 0 set BluwillFollow to 1 Message "'Blu, come with me.'" endif EvaluatePackage playGroup Idle 1 else activate endifend ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; begin OnStartCombat ;make sure not to attack friends after accidental hits. set rEnemy to getCombatTarget if GetShouldAttack rEnemy == 0 && Player.GetShouldAttack rEnemy == 0 StopCombat StopCombatAlarmOnActor playGroup Idle 1 return endifend I'm not sure whats going on, could use a lil help. Thanks Link to comment Share on other sites More sharing options...
Graewolph Posted December 27, 2008 Author Share Posted December 27, 2008 Never mind all I figured out what it was, a silly mistake w/the reference ownership thing had it setup wrong! YAYYY no more dead guards! :P Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.