Jump to content

Willo wisp companion


Graewolph

Recommended Posts

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. 0

script 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

endif

end

 

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

 

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

endif

end

 

I'm not sure whats going on, could use a lil help. Thanks

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...