Periodic Lists
Periodic lists are just like periodic actions, except you can define multiple
actions and have the code pick randomly which one to execute. One would use
this for a mob that does alot of different things, and for zone echoes.
Periodic Lists - Format
Note you can have chains as long as you want, the last entry is always LISTDONE
MOB: [
vnum] TIMED
FLAG: [
Flag Value]
CHANCE: [
Chance]
DELAY: [
Delay]
ACTION: [
Reply Cmd#]
[
Arguments/Parameters]
~
DONE
MOB: [
vnum] TIMED
FLAG: [
Flag Value]
CHANCE: [
Chance]
DELAY: [
Delay]
ACTION: [
Reply Cmd#]
[
Arguments/Parameters]
~
LISTDONE
Examples - Periodic List
Here's an example of a mob that does 1 of 3 things every 30 seconds. We'll
use a wandering jester as an example, every 10 seconds, the list proc is called,
at which point it rolls a random number and chooses ONE of the 3 actions.
Then, the action has a 33% chance to be performed.
Basically, approximately once every 30 seconds, ONE of these commands gets performed.
MOB: 91104 LIST
FLAG: 9 ;; NOT_IN_COMBAT + USE_SELF
CHANCE: 2 ;; 33% Chance, or approx. once/30s
DELAY: 0 ;; No Delay
ACTION: 264 ;; Jump
~
DONE
FLAG: 1 ;; NOT_IN_COMBAT
CHANCE: 2 ;; 33% Chance, or approx. once/30s
DELAY: 0 ;; No Delay
ACTION: 112 ;; Flip
~
DONE
FLAG: 1 ;; NOT_IN_COMBAT
CHANCE: 2 ;; 33% Chance, or approx. once/30s
DELAY: 0 ;; No Delay
ACTION: 289 ;; Twirl
~
LISTDONE