# README
Scripting Language
All scripting is in ECMAScript 5.1 (AKA javascript).
Room Scripting
See Room Scripting
Mob Scripting
See Mob Scripting
Item Scripting
See Item Scripting
Buff Scripting
See Buff Scripting
Spell Scripting
See Spell Scripting
Script Functions
ActorObject Functions - Functions that query or alter user/mob data.
RoomObject Functions - Functions that query or alter room data.
ItemObject Functions - Functions that query or alter item data.
Utility Functions - Helper and info functions.
Messaging Functions - Helper and info functions.
Special symbols in user or mob commands:
There are some special prefixes that can help target more specifically than just a name. These are particularly helpful when there may be other matching targets on a given name:
goblin
peaceful vsgoblin
that hit you `(that is fighting),dagger
vs adagger
with enhancements- user
sam
vs usersamuel
, when sam has already left the room.
These are only useful in commands
such as look
, give
, attack
, etc.
!{number}
- denotes a specificItemId
as a target.drop !123
will dropItemId
=123
give !123 to samuel
will giveItemId
=123
to a user or mob in the room namedsamuel
#{number}
- denotes a specificMob Instance Id
as a target.kick #98
will kickMob Instance Id
=98
@{number}
- denotes a specificUserId
as a target.give !123 to @5
will giveItemId
=123
toUserId
=5
give !123 to #98
will giveItemId
=123
toMob Instance Id
=98
These are optional, everything can still be referred to by name
or augmented name ( dagger#2
etc. )