another scripting issue
Can I detect when a pc says 'I disbelieve'. Not in a conversation, but when the player types it.
Moderators: Nighthawk4, Dungeon Masters
SetListening(OBJECT_SELF,TRUE);
SetListenPattern(OBJECT_SELF,"I disbelieve",2001);
void main()
{
int nUser = GetUserDefinedEventNumber();
int nMatch = GetListenPatternNumber();
if(nMatch == 2001)
{
object oTarget;
object oSpawn;
location lTarget;
oTarget = GetWaypointByTag("fog_02");
lTarget = GetLocation(oTarget);
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "zep_fog001", lTarget);
oTarget = GetWaypointByTag("fog_01");
}}
Papainhell wrote:You could use an invisable object as well, no need to mess with a creature.