So does anyone know how to make an NPC forcegreet a werewolf? So far I've got this working when the player is a human but as a werewolf nothing happens. Here are the scripts I'm using .
This simply places an NPC behind the PC when the player activates a werewolf.
Begin InfectionForceGreet Short DoOnce Float LocalX Float LocalY Float LocalZ short done Long Code Long Current long target ;________________Beginning of Lycanthrope Activate____________________ Set Code to Key_Activate Setx Current to xKeyPressed, Code ;________________Beginning of Script Preventions____________________ if ( ranconfig == 0 ) return endif If ( ScriptRunning, "BecomeHuman" == 1 ) return elseif ( ScriptRunning, "BecomeLycanthrope" == 1 ) return endif if ( PowerIsActivating == 1 ) return endif if ( MenuMode == 1 ) return endif ;________________End of Script Preventions____________________ if ( Current == 0 ) If ( DoOnce == 1 ) set DoOnce to 0 endif return endif if ( DoOnce == 1 ) return endif set DoOnce to 1 Setx Target to xGetPCtarget ;________________Cannot Transform Messages____________________ if ( Target == 0 ) return endif xSetRef, Target If ( Iswerewolf == 0 ) return endif xSetRef, Target if ( gethealth < 1 ) return endif ;________________End Cannot Transform Messages____________________ placeatpc, ForceGreetNPC, 1, 512, 1 ;place 1 greeter, 512 units beyhind the PCend
Then this script is attached to the NPC to make the player forcegreet it.
begin ForceGreetNPCScript short Done if ( getDisabled == 1 ) setdelete, 1 return endif ;Do Once thing if ( Done == 0 ) set done to 1 forcegreeting return endif ;When we have done talking, diable if ( Done == 1 ) if ( menumode == 0 ) disable return endif endifend
So ya, this works well when the player activates a werewolf in humanform but not when the player activates a werewolf as a werewolf himself. Anyone have any ideas or workarounds for this. The ultimate goal is to get the Dialogue box to pop open and have a few topics to select such as Follow and Stay (already have the topics part done).
When using this method everything works well except that the forcegreeting does nothing. The NPC is always correctly placed and the script runs all the way through.