Documentation

AiScript

Table of Contents

bbcode_aievent()  : string
Define the AICode to run when <EVENT> are triggered in <GROUP>
bbcode_aiexec()  : mixed
Example 1 [aiexec <GROUP>]
bbcode_aigroup()  : mixed
bbcode_aireset()  : mixed
bbcode_ais()  : mixed
bbcode_aispawn()  : mixed
bbcode_aiusermodel()  : mixed
Example 1 [aiusermodel <NAME>[:[<AIS>@]<BASE_SHEET>]]

Functions

bbcode_aievent()

Define the AICode to run when <EVENT> are triggered in <GROUP>

bbcode_aievent(string $attr, string $text) : string

Take care! The groups are by default prefixed with arkai_<EVENT_ID> except with syntax in example 4

Example 1: Static event and group

[aievent <GROUP>:<EVENT>]
[/aievent]

Example 2: Static event, dynamic group

[aievent <EVENT>]
	<GROUP>
[/aievent]

Example 3: Static event, dynamic group in specified AI

[aievent <EVENT>]
	<AIS>@<GROUP>
[/aievent]

Example 4: Static event, dynamic real group name

[aievent <EVENT>]
	/<GROUP>
[/aievent]
Parameters
$attr : string

<GROUP>:<EVENT> or just <EVENT>

$text : string

See examples for the first line, other lines are AiScript

Return values
string

The generated AiScript using a eScript

List of Ai Events : https://wiki.ryzom.dev/ryzomcore/World-Editor-NPC-Documentation_15925297

bbcode_aiexec()

Example 1 [aiexec <GROUP>]

bbcode_aiexec(mixed $attr, mixed $text) : mixed

[/aiexec]

Example 2 [aiexec] [<AIS>@]<GROUP> [/aiexec]

Example 3 [aiexec] [<AIS>@]/<GROUP> [/aiexec]

Parameters
$attr : mixed
$text : mixed
Return values
mixed

bbcode_aigroup()

bbcode_aigroup(mixed $attr, mixed $text) : mixed
Parameters
$attr : mixed
$text : mixed
Return values
mixed

bbcode_aireset()

bbcode_aireset(mixed $attr, mixed $text) : mixed
Parameters
$attr : mixed
$text : mixed
Return values
mixed

bbcode_ais()

bbcode_ais(mixed $attr, mixed $text) : mixed
Parameters
$attr : mixed
$text : mixed
Return values
mixed

bbcode_aispawn()

bbcode_aispawn(mixed $attr, mixed $text) : mixed
Parameters
$attr : mixed
$text : mixed
Return values
mixed

bbcode_aiusermodel()

Example 1 [aiusermodel <NAME>[:[<AIS>@]<BASE_SHEET>]]

bbcode_aiusermodel(mixed $attr, mixed $text) : mixed

[/aiusermodel]

Example 2 [aiusermodel <NAME>] [<AIS>@]<BASE_SHEET> [/aiusermodel]

Example 3 [aiusermodel] <NAME> [<AIS>@]<BASE_SHEET> [/aiusermodel]

Parameters
$attr : mixed
$text : mixed
Return values
mixed

Search results