Unable to bind, but the script runs?

Post » Thu Jan 03, 2013 9:57 am

I have some little quests which allow npc vampires to take a little drink occasionally whether they are in a cave or a town. A vampire resident in a palace will give another npc or the player a hug once in a while. I ran into a small problem with vampire followers. Quite reasonably, they don't want to stop what they are doing and follow in a timely fashion. I didn't want to cut them off entirely while they are working for the player. I finally hit upon adding an alias for the player which would run a script stopping a running quest if the player changed location. That worked just fine, but the log reports a failure to bind to the alias because " because their base types do not match" for some of the little, dialogue or hello activated quests which contain the player alias.

Spoiler
Scriptname mvbitevstop
Quest Property mvplaybitev Auto
LocationAlias Property mvplay_loc Auto
Event OnLocationChange(Location akOldLoc, Location akNewLoc)
location HabitationLoc = mvplay_loc.GetLocation()
if (akNewLoc != HabitationLoc)
debug.MessageBox("player moved in biteV")
if (mvplaybitev.IsRunning())
mvplaybitev.Stop()
endif
endif
EndEvent

All five instances of this work. I thought they were working, but put in the messagebox after I saw the log. The "unable to bind" message doesn't show up for two of them even though they are all the same. The alias is a forced playerref. Do you have any idea of why the unbound script would go ahead and do what it was supposed to do?
User avatar
Jessica Lloyd
 
Posts: 3481
Joined: Fri Aug 25, 2006 2:11 pm

Return to V - Skyrim