Affect Flags - torilmud/docs GitHub Wiki

Affect Flags

Special Affect 1

The 1st set of special affects for mobs and objects.

The Special Affect 1, 2, and 3 flags apply to both objects AND mobs.

Since you can also use them in powers and procs with SET_CBIT() a full list of these flags can be found below.

Flag Name Bit Value Human Readable Description
BLIND 1 "blind" it's blind
INVISIBLE 2 "invisible" is invisible
FARSEE 4 "farsee" can see into adjacent rooms
DETECT_INVISIBLE 8 "detect invisible" can detect invisible creatures/objects
HASTE 16 "haste" gets extra attacks (set for ALL high level mobs)
SENSE_LIFE 32 "sense life" can detect hidden/sneaking/invisible creatures
MINOR_GLOBE 64 "minor globe" protected against low circle spells
STONE_SKIN 128 "stoneskin" stone skin (Probably unstable)
WATERBREATH 2048 "waterbreathing" can breath underwater
PROTECT_EVIL 8192 "protection from evil" evil opponents have a harder time hitting
BOUND 16384 "bound" can't move, worse than major para, bad!
SLOW_POISON 32768 "slow poison" reduces venom damage rate
PROTECT_GOOD 65536 "protection from good" good opponents have a harder time hitting
SLEEP 131072 "sleep" magically slept
SNEAK 524288 "sneak" perm sneak
HIDE 1048576 "hide" perm hide (do not use)
BARKSKIN 16777216 "barkskin" not sure if it works
INFRAVISION 33554432 "infravision" only use this if the race doesn't have it
LEVITATE 67108864 "levitate" perm levitate
FLY 134217728 "fly" perm fly
AWARE 268435456 "aware" not vulnerable to backstabs, bodyslam, etc
PROT_FIRE 536870912 "protection from fire" perm pff
  • The stone_skin flag when set on a mob will not give the mob any visible stone_skin, but will block the mob from casting it on itself until hit by pcs.. it might lead to crashes so avoid it.

Special Affect 2

The 2nd set of special affects for mobs and objects.

The Special Affect 1, 2, and 3 flags apply to both objects AND mobs.

Since you can also use them in powers and procs with SET_CBIT() a full list of these flags can be found below.

Flag Name Bit Value Human Readable Description
FIRESHIELD 1 "fireshield" perm fireshield (perm coldshield not possible)
ULTRAVISION 2 "ultravision" only use this if the race doesn't have it
DETECT_EVIL 4 "detect evil" can detect evil - for efficient protector mobs use
DETECT_GOOD 8 "detect good" can detect good - these flags on them when needed
DETECT_MAGIC 16 "detect magic" can detect magic
PROT_COLD 64 "protection from cold" perm PFC
PROT_LIGHTNING 128 "protection from lightning" perm PFL
MINOR_PARALYSIS 256 "minor paralysis" bad! but legal
MAJOR_PARALYSIS 512 "major paralysis" bad! but legal
SLOW 1024 "slowness" bad! but legal
GLOBE 2048 "globe of invulnerability" only vulnerable to high circle spells
PROT_GAS 4096 "protection from gas" perm PFG
PROT_ACID 8192 "protection from acid" perm PFA
PASS_WITHOUT_TRACE 134217728 "pass without trace" mob can't be tracked
DOCILE 268435456 "docile" mob won't fight unless attacked (even if grouped)
VAMPIRIC_TOUCH 2147483648 "vampiric touch" mob is vamp touchy

Special Affect 3

The 3rd set of special affects for mobs and objects.

The Special Affect 1, 2, and 3 flags apply to both objects AND mobs.

Since you can also use them in powers and procs with SET_CBIT() a full list of these flags can be found below.

Flag Name Bit Value Human Readable Description
NOBASH 1 "no bash" DO NOT USE (Doesn't do anything anyway.)
NOCHARM 2 "no charm" Make the wearer immune to charm effects
NOSLEEP 4 "no sleep" Make the wearer immune to sleep effects
NOSUMMON 8 "no summon" Make the wearer immune to summon spells

Full Affect Flag List

In some instances you will be setting these flags via the code (using the SET_CBIT() function) or via power effects. Here is a full list of the flags. Most of these should NEVER be set manually and are only used for internal function use.

Will try to explain those that are not obvious. For some of them, your guess is as good as mine.

Number Name in structs.h Value in constant.c Human Readable Description, if any
1 AFF_BLIND BLIND "blind"
2 AFF_INVISIBLE INVISIBLE "invisible"
3 AFF_FARSEE FARSEE "farsee"
4 AFF_DETECT_INVISIBLE DET-INVIS "detect invisible"
5 AFF_HASTE HASTE "haste"
6 AFF_SENSE_LIFE SENSE-LIFE "sense life"
7 AFF_MINOR_GLOBE MIN-GLOBE "minor globe"
8 AFF_STONE_SKIN STONESKIN "stoneskin"
9 AFF_CHARGING CHARGING "charging"
10 AFF_SHADOW SHADOW "shadow"
11 AFF_WRAITHFORM WRAITHFORM "wraithform" from the wraithform spell
12 AFF_WATERBREATH WATERBREATH "waterbreathing"
13 AFF_KNOCKED_OUT KO-ED "knocked out"
14 AFF_PROTECT_EVIL PR-EVIL "protection from evil"
15 AFF_BOUND BOUND "bound"
16 AFF_SLOW_POISON SLOW-POISON "slow poison"
17 AFF_PROTECT_GOOD PR-GOOD "protection from good"
18 AFF_SLEEP SLEEP "sleep"
19 AFF_SKILL_AWARE SKILL-AWARE "skill aware" for awareness skill
20 AFF_SNEAK SNEAK "sneak"
21 AFF_HIDE HIDE "hide"
22 AFF_PARTIAL_IMMATERIAL PARTIAL-IMMATERIAL "partial immaterial" from the elemental embodies
23 AFF_CHARM CHARM "charm"
24 AFF_MEDITATE MEDITATE "meditate"
25 AFF_BARKSKIN BARKSKIN "barkskin"
26 AFF_INFRAVISION INFRA "infravision"
27 AFF_LEVITATE LEVITATE "levitate"
28 AFF_FLY FLY "fly"
29 AFF_AWARE AWARE "aware"
30 AFF_PROT_FIRE PR-FIRE "protection from fire"
31 AFF_CAMPING CAMPING "camping"
32 AFF_SINGING SINGING "singing" bards
33 AFF_FIRESHIELD FIRESHIELD "fireshield"
34 AFF_ULTRAVISION ULTRA "ultravision"
35 AFF_DETECT_EVIL DET-EVIL "detect evil"
36 AFF_DETECT_GOOD DET-GOOD "detect good"
37 AFF_DETECT_MAGIC DET-MAGIC "detect magic"
38 AFF_FOLLOW_PAUSE FOLLOW-PAUSE "follow pause"
39 AFF_PROT_COLD PR-COLD "protection from cold"
40 AFF_PROT_LIGHTNING PR-LIGHT "protection from lightning"
41 AFF_MINOR_PARALYSIS MIN-PARA "minor paralysis"
42 AFF_MAJOR_PARALYSIS MAJ-PARA "major paralysis"
43 AFF_SLOW SLOW "slowness"
44 AFF_GLOBE GLOBE "globe of invulnerability"
45 AFF_PROT_GAS PR-GAS "protection from gas"
46 AFF_PROT_ACID PR-ACID "protection from acid"
47 AFF_ENHANCED_RESIST ENHANCED_RESIST "enhanced resistance"
48 AFF_HUNTER HUNTER "hunter"
49 AFF_UNUSED_49 UNUSED_49
50 AFF_NOFLEE NOFLEE "no flee"
51 AFF_UNUSED_51 UNUSED_51
52 AFF_STUNNED STUNNED "stunned"
53 AFF_DROPPED_PRIM DROP-PRIM "drop primary"
54 AFF_DROPPED_SECOND DROP-SEC "drop secondary"
55 AFF_FUMBLING_PRIM FUMBLE-PRIM "fumble primary"
56 AFF_FUMBLING_SECOND FUMBLE-SEC "fumble secondary"
57 AFF_RES_PENALTY RESU-PENALTY "resurrection penalty"
58 AFF_MEMORIZING MEMORIZING "memorizing"
59 AFF_BRAINDRAIN BRAIN_DRAINING "brain draining"
60 AFF_PASS_WITHOUT_TRACE PASS_WITHOUT_TRACE "pass without trace"
61 AFF_DOCILE DOCILE "docile"
62 AFF_CASTING CASTING "casting"
63 AFF_SCRIBING SCRIBING "scribing"
64 AFF_VAMPIRIC_TOUCH VAMP_TOUCH "vampiric touch"
65 AFF_NOBASH NOBASH "no bash"
66 AFF_NOCHARM NOCHARM "no charm"
67 AFF_NOSLEEP NOSLEEP "no sleep"
68 AFF_NOSUMMON NOSUMMON "no summon"
69 AFF_PROT_ANIMALS PR-ANIMALS "protection from animals"
70 AFF_PROT_UNDEAD PR-UNDEAD "protection from undead"
71 AFF_MISLEAD MISLEAD "mislead"
72 AFF_UNUSED_72 UNKNOWN
73 AFF_UNUSED_73 UNKNOWN
74 AFF_UNUSED_74 UNKNOWN
75 AFF_UNUSED_75 UNKNOWN
76 AFF_UNUSED_76 UNKNOWN
77 AFF_UNUSED_77 UNKNOWN
78 AFF_UNUSED_78 UNKNOWN
79 AFF_UNUSED_79 UNKNOWN
80 AFF_UNUSED_80 UNKNOWN
81 AFF_UNUSED_81 UNKNOWN
82 AFF_UNUSED_82 UNKNOWN
83 AFF_UNUSED_83 UNKNOWN
84 AFF_UNUSED_84 UNKNOWN
85 AFF_UNUSED_85 UNKNOWN
86 AFF_UNUSED_86 UNKNOWN
87 AFF_UNUSED_87 UNKNOWN
88 AFF_UNUSED_88 UNKNOWN
89 AFF_UNUSED_89 UNKNOWN
90 AFF_UNUSED_90 UNKNOWN
91 AFF_UNUSED_91 UNKNOWN
92 AFF_UNUSED_92 UNKNOWN
93 AFF_UNUSED_93 UNKNOWN
94 AFF_UNUSED_94 UNKNOWN
95 AFF_UNUSED_95 UNKNOWN
96 AFF_UNUSED_96 UNKNOWN
97 AFF_CATFALL CATFALL "catfall"
98 AFF_BODY_CONTROL BODY_CONTROL "body control"
99 AFF_STASIS_FIELD STASIS_FIELD "stasis field"
100 AFF_GLOBE_OF_DARKNESS GLOBE_OF_DARKNESS "globe of darkness"
101 AFF_MAGI_STAFF_ABSORB MAGI_STAFF_ABSORB "magi staff absorb"
102 AFF_ICE_TOMB ICE TOMB "ice tomb"
103 AFF_BLUR BLUR "blur"
104 AFF_BURNING BURNING "burning" For generic char 'burn' events
105 AFF_REPULSION REPULSION "repulsion"
106 AFF_MIND_BLANK MIND_BLANK "mind blank"
107 AFF_DRAGONSCALES DRAGONSCALES "dragonscales"
108 AFF_MIRROR_IMAGE MIRROR_IMAGE "mirror image"
109 AFF_SEQUESTER SEQUESTER "sequester"
110 AFF_NONDETECTION NONDETECTION "nondetection"
111 AFF_DISPLACEMENT DISPLACEMENT "displacement"
112 AFF_GROUP_CACHED GROUP_CACHED "group cached" specified that an obj has been added to a group cache
113 AFF_MORPH MORPH "morph"
114 AFF_MAGE_FLAME MAGE-FLAME "light" For mage flame spell
115 AFF_TOWER_OF_IRON_WILL TOWER "tower of iron will"
116 AFF_FIRE_FOG FIRE_FOG "fire fog"
117 AFF_EXITING_QUEST LEAVING_QUEST "leaving quest" For exiting quest pkill areas
118 AFF_NOBURN_FIRE NOBURN_FIRE "noburn fire"
119 AFF_ENGAGEDINPK ENGAGEDINPK "engaged in pk" PC was engaged in PK
120 AFF_NOBURN_COLD NOBURN_COLD "noburn cold"
121 AFF_GARROTING GARROTING "garroting" Assassin doing the choke thing
122 AFF_GARROTE_VICT GARROTE_VICT "garrote victim" The chokee
123 AFF_TRACKING TRACKING "tracking" We're on the trail
124 AFF_EXITING_ACHERON LEAVING_ACHERON "leaving acheron" like camp, but for acheron
125 AFF_BLACKMANTLE BLACKMANTLE "blackmantle" Person can't heal
126 AFF_NOBURN_ACID NOBURN_ACID "noburn acid"
127 AFF_HEX HEX "hex"
128 AFF_ANCESTRAL_SHIELD ANCESTRAL_SHIELD "ancestral shield"
129 AFF_POISON POISON "poison"
130 AFF_SILENCE_PERSON SILENCE_PERSON "silence person"
131 AFF_EARTH_FOG EARTH_FOG "earth fog"
132 AFF_ENTANGLE ENTANGLE "entangle"
133 AFF_TRUE_SIGHT TRUE_SIGHT "true sight"
134 AFF_DOPPLEGANGER DOPPLEGANGER "doppleganger"
135 AFF_PLANT_ANCHOR PLANT_ANCHOR "plant anchor"
136 AFF_WARCHANTING WARCHANT "warchant"
137 AFF_ELEMENTAL_WATER ELEMENTAL_WATER "elemental water"
138 AFF_ELEMENTAL_FIRE ELEMENTAL_FIRE "elemental fire"
139 AFF_ELEMENTAL_EARTH ELEMENTAL_EARTH "elemental earth"
140 AFF_ELEMENTAL_AIR ELEMENTAL_AIR "elemental air"
141 AFF_ELEMENTAL_MAINTAIN ELEMENTAL_MAINTAIN "elemental embodiment maintain"
142 AFF_ELEMENTAL_WARD ELEMENTAL_WARD "elemental ward"
143 AFF_ORDERED ORDERED "ordered"
144 AFF_CASTER_STONE_SKIN CASTER_STONE_SKIN "caster stoneskin"
145 AFF_BANSHEE_WAIL BANSHEE_WAIL "banshee wail"
146 AFF_UNDEAD_MELEE_PROC UNDEAD_MELEE_PROC "undead melee proc"
147 AFF_UNDEAD_SPELL_PROC UNDEAD_SPELL_PROC "undead spell proc"
148 AFF_DEATH_PACT DEATH_PACT "death pact"
149 AFF_SOUL_BIND SOUL_BIND "soul bind"
150 AFF_CASTER_DRAGONSCALES CASTER_DRGNSCALES "caster dragonscales"
151 AFF_TIME_STOP TIME_STOP "time stop"
152 AFF_EVASION EVASION "evasion"
153 AFF_PATH PATH "pathing"
154 AFF_REVELATION SONG_REVELATION "song of revelation"
155 AFF_PROTECTION SONG_PROTECTION "song of protection"
156 AFF_TRAVEL SONG_TRAVEL "song of travel"
157 AFF_HOWL HOWL "howl"
158 AFF_MULTI_ROUND_SPELL TENDRILS "phantasmal tendrils" For multi-round spells
159 AFF_CAMO CAMO "camoflauge" Camouflage spell