set_activity - ryzom/ryzomcore GitHub Wiki


title: Set Activity description: published: true date: 2023-03-13T01:31:09.916Z tags: editor: markdown dateCreated: 2023-03-13T01:31:06.751Z

setActivity

The setActivity native AI script function changes the activity of the group.

Syntax

()setActivity(Activity: s)

Arguments

  • Activity (string): The activity name the group will take. Valid activities are: "no_change", "escorted", "guard", "guard_escorted", "normal", "faction", "faction_no_assist", and "bandit".

Example

()setActivity("bandit");

This example code gives a "bandit" activity to the group.

⚠️ **GitHub.com Fallback** ⚠️