User Tools

Site Tools


lgscript:aisrv

AISrv

MakeGotoObjLoc

Instruct an AI to go to the current location of an object.

Returns boolean success
Parameter integer ai object
Parameter integer target
Parameter string or integer speed (optional)
Parameter string or integer priority (optional)
Parameter any data (optional)

MakeFrobObjWith

Instruct an AI to frob an object with another object.

Returns boolean success
Parameter integer ai object
Parameter integer target
Parameter integer frob with
Parameter string or integer priority (optional)
Parameter any data (optional)

MakeFrobObj

Instruct an AI to frob an object.

Returns boolean success
Parameter integer ai object
Parameter integer target
Parameter string or integer priority (optional)
Parameter any data (optional)

GetAlertLevel

Get the current alert level of an AI.

Returns integer level
Parameter integer ai

SetMinimumAlert

Set the minimum alert level for an AI.

Parameter integer ai
Parameter integer level

ClearGoals

Make an AI forget what it’s doing.

Parameter integer ai

SetScriptFlags

Turn off broadcasts from an AI.

Parameter integer ai
Parameter boolean disable

ClearAlertness

Reset the alertness of an AI to the lowest allowable level.

Parameter integer ai

Signal

Send a signal to an AI.

Parameter integer ai
Parameter string signal

StartConversation

Trigger a conversation.

Returns boolean success
Parameter integer trap
lgscript/aisrv.txt · Last modified: 2009/08/25 22:05 (external edit)