scripting
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
scripting [2023/02/28 08:49] – [Script Files] mit | scripting [2023/05/15 02:07] (current) – [Custom Events] mit | ||
---|---|---|---|
Line 53: | Line 53: | ||
===== Custom Events ===== | ===== Custom Events ===== | ||
Custom Events are a special type of event that is triggered from a command and can include custom parameters. | Custom Events are a special type of event that is triggered from a command and can include custom parameters. | ||
- | e.g. *event [Name] TestEvent|MyParam | + | e.g. '' |
will trigger an event specified in your script code like: | will trigger an event specified in your script code like: | ||
- | Event( " | + | < |
{ | { | ||
$text = $gTextParam[1] | $text = $gTextParam[1] | ||
*say Your Parameter was $text | *say Your Parameter was $text | ||
- | } | + | }</ |
Custom events can be triggered for groups of players - e.g. for everyone online (' | Custom events can be triggered for groups of players - e.g. for everyone online (' | ||
scripting.1677595790.txt.gz · Last modified: 2023/02/28 08:49 by mit