Skip to content
Zachary Perlmutter edited this page Feb 26, 2024 · 6 revisions

give

give <item> [+<level>] [x<quantity>] [-f|--force] [<method> [<args..>]]

Creates and puts into your inventory the generated item.

  • +<level> uses Item#level to set the level of the created item, where <level> is some integer.
    • If this doesn't work as expected (especially in the case of wands/artifacts), please use the upgrade method.
  • x<quantity>, where <quantity> is some integer value, can be included to collect multiple of the same item.
    • This only works as intended if the item is normally stackable.
  • --force (or -f) overrides the pick up logic of the item being collected to be the default, forcing the item to be collected into the player's inventory, even if this was not intended.

The method is called after the level and quantity are set and directly before the item is collected.

spawn

spawn <mob>

Spawns the indicated mob and places it randomly on the depth. All variants accept a method as the final inputs.

spawn <mob> x<quantity>

Attempts to spawns <quantity> mobs, placing them randomly on the depth.

It is possible for this to fail to place the desired number of mobs depending on the level's implementation of randomRespawnCell

spawn <mob> -p|--place

Allows for manual placing of the mob.

affect

affect <buff> [<duration>] [<method> [<args..>]]

Attaches the specified buff to a chosen character.

Specifying <duration> (a double value) will attempt to call the method Buff.affect(target,buff,duration) where target is the specified character. This method only works for FlavourBuffs, however. In the case of non-FlavourBuffs, the scroll will attempt to guess the proper method to use, calling the methods #set, #reset, #prolong, and #extend (in that order), and using the first one that matches a valid method for that buff. If none of those are valid, the user must manually specify the correct method to use by using the <method> functionality.

If <method> is provided, it is called after the buff is successfully attached. An invalid input for <method> will result in a warning.

seed

seed <blob> [<amount>]

Places <amount> (an integer value) units of the desired blob on a chosen tile.

use

use <object> <method> [<args..>]

Attempts to use the indicated method corresponding to the specified object.

This is mostly useful for using methods that have noticeable side-effects. For example, the command use tengusmask choose gladiator will set the hero's subclass to Gladiator by using the method TengusMask#choose(GLADIATOR).

use <object>

An alias for inspect.

inspect

Gives a window showing all supported methods of a given class.

macro

macro <name>

Define a new macro, or change an existing one. Submitting a blank macro will delete it if it already exists.

macro

Gives a list of all macros currently defined.