"Create an object" Wizmode command


Ask fellow adventurers how to stay alive in the deep, dark, dangerous dungeon below, or share your own accumulated wisdom.

User avatar

Blades Runner

Posts: 623

Joined: Thursday, 23rd December 2010, 19:17

Post Friday, 25th February 2011, 22:27

"Create an object" Wizmode command

Can someone please tell me how to create elven/orcish/dwarven *weapon*/*armour* in wiz mode?
I press & - o - ( - *weapon name* - *elven*
And it creates just simple non-racial weapon.

Also, where can I find full list of racial weapon/items? Wiki is quite useless on this one.

Dungeon Dilettante

Posts: 1

Joined: Saturday, 26th February 2011, 22:46

Post Saturday, 26th February 2011, 23:14

Re: "Create an object" Wizmode command

You have to use the wizard menu to tweak the object's properties after you create it. To do this press &, t, select the item you wish to modify, then press e for flags.
Several different flags for each racial bonus appear to exist (an orcish flail has a different flag than an orcish falchion), but using one in place of the other doesn't appear to affect anything. That said, 0x01010001 is one of the flags for orcish (found off of an orcish dagger), and 0x04000000 is one of the flags for elven (found off of an elven long sword). I'm not sure what the flags for dwarven items are, but you can easily find out by following the same steps above to tweak the weapon, as whatever flag the weapon currently has will be displayed.

Dungeon Master

Posts: 4

Joined: Thursday, 16th December 2010, 19:46

Post Sunday, 27th February 2011, 17:00

Re: "Create an object" Wizmode command

If you know the vault item syntax, you may find it easier to use &% instead of &o to create an item in wizmode:

&% race:elven robe

creates an elven robe. Vault item syntax is described in http://gitorious.org/crawl/crawl/blobs/ ... xt#line484
User avatar

Dungeon Master

Posts: 4031

Joined: Thursday, 16th December 2010, 20:37

Location: France

Post Tuesday, 1st March 2011, 23:20

Re: "Create an object" Wizmode command

Curio wrote:Can someone please tell me how to create elven/orcish/dwarven *weapon*/*armour* in wiz mode?
I press & - o - ( - *weapon name* - *elven*
And it creates just simple non-racial weapon.

Also, where can I find full list of racial weapon/items? Wiki is quite useless on this one.

Item flags are in enum.h:1561

  Code:
ISFLAG_KNOW_CURSE        = 0x00000001,  // curse status
ISFLAG_KNOW_TYPE         = 0x00000002,  // artefact name, sub/special types
ISFLAG_KNOW_PLUSES       = 0x00000004,  // to hit/to dam/to AC/charges
ISFLAG_KNOW_PROPERTIES   = 0x00000008,  // know special artefact properties
ISFLAG_IDENT_MASK        = 0x0000000F,  // mask of all id related flags

// these three masks are of the minimal flags set upon using equipment:
ISFLAG_EQ_WEAPON_MASK    = 0x0000000B,  // mask of flags for weapon equip
ISFLAG_EQ_ARMOUR_MASK    = 0x0000000F,  // mask of flags for armour equip
ISFLAG_EQ_JEWELLERY_MASK = 0x0000000F,  // mask of flags for known jewellery

ISFLAG_CURSED            = 0x00000100,  // cursed
ISFLAG_BLESSED_WEAPON    = 0x00000200,  // personalized TSO's gift
ISFLAG_SEEN_CURSED       = 0x00000400,  // was seen being cursed
ISFLAG_RESERVED_3        = 0x00000800,  // reserved

ISFLAG_RANDART           = 0x00001000,  // special value is seed
ISFLAG_UNRANDART         = 0x00002000,  // is an unrandart
ISFLAG_ARTEFACT_MASK     = 0x00003000,  // randart or unrandart
ISFLAG_DROPPED           = 0x00004000,  // dropped item (no autopickup)
ISFLAG_THROWN            = 0x00008000,  // thrown missile weapon

// these don't have to remain as flags
ISFLAG_NO_DESC           = 0x00000000,  // used for clearing these flags
ISFLAG_GLOWING           = 0x00010000,  // weapons or armour
ISFLAG_RUNED             = 0x00020000,  // weapons or armour
ISFLAG_EMBROIDERED_SHINY = 0x00040000,  // armour: depends on sub-type
ISFLAG_COSMETIC_MASK     = 0x00070000,  // mask of cosmetic descriptions

ISFLAG_NO_RACE           = 0x00000000,  // used for clearing these flags
ISFLAG_ORCISH            = 0x01000000,  // low quality items
ISFLAG_DWARVEN           = 0x02000000,  // strong and robust items
ISFLAG_ELVEN             = 0x04000000,  // light and accurate items
ISFLAG_RACIAL_MASK       = 0x07000000,  // mask of racial equipment types

ISFLAG_NOTED_ID          = 0x08000000,
ISFLAG_NOTED_GET         = 0x10000000,

ISFLAG_BEEN_IN_INV       = 0x20000000,  // Item has been in inventory
ISFLAG_SUMMONED          = 0x40000000,  // Item generated on a summon
ISFLAG_DROPPED_BY_ALLY   = 0x80000000,  // Item was dropped by an ally


full list of items is in itemprop.cc
<+Grunt> You dereference an invalid pointer! Ouch! That really hurt! The game dies...

Return to Dungeon Crawling Advice

Who is online

Users browsing this forum: No registered users and 101 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.