hi
a city guard spawns by night and following their tag based waypoints. but when players tries to talk with him he isnt responding to player. just following WPs. his on_convo script is like that.
void main()
{
object oSelf=OBJECT_SELF;
int nRndm=d4();
string sMsg2="b";
string sMsg3="c";
string sMsg4="d";
if (nRndm == 1)
{
int nHour=GetTimeHour();
if (nHour > 6 && nHour < 17)
{
AssignCommand(oSelf,ActionSpeakString("Have a Good Day Citizen."));
}
else
{
AssignCommand(oSelf,ActionSpeakString("Have a Good Night Citizen."));
}
}
if (nRndm == 2)
{
AssignCommand(oSelf, ActionSpeakString(sMsg2, TALKVOLUME_TALK));
}
if (nRndm == 3)
{
AssignCommand(oSelf, ActionSpeakString(sMsg3, TALKVOLUME_TALK));
}
if (nRndm == 4)
{
AssignCommand(oSelf, ActionSpeakString(sMsg4, TALKVOLUME_TALK));
}
}
this script is working on a standing guard. but not working on wp following guard.





Retour en haut






