Documentation

aievent.php

Table of Contents

bbcode_aievent()  : string
Define the AICode to run when <EVENT> are triggered in <GROUP>

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

Search results