Difference between revisions of "Prog Appendix 5"

From Immwiki
Jump to: navigation, search
(Added Nightfears)
m
Line 3: Line 3:
 
In this section we will specify the proper bitvectors to use for addaffects that are not straightforward in nature, usually because of some code trickery done by Aeolis.
 
In this section we will specify the proper bitvectors to use for addaffects that are not straightforward in nature, usually because of some code trickery done by Aeolis.
  
<b>99.</b> ''''nightfears'''':
+
<b><i>99.</i> nightfears</b>:
 
In order to properly put the nightfears affect on a player, the "modifier" field of the affect must start out as either "100", "200", or "300", depending on which nightmare they are to have.  As well, if you want nightfears to keep them asleep, you will also need to manually add a second affect with the AFF_SLEEP bit set, but that one must have the modifier of 0.
 
In order to properly put the nightfears affect on a player, the "modifier" field of the affect must start out as either "100", "200", or "300", depending on which nightmare they are to have.  As well, if you want nightfears to keep them asleep, you will also need to manually add a second affect with the AFF_SLEEP bit set, but that one must have the modifier of 0.

Revision as of 19:55, 7 August 2004

Appendix 5: Addaffect Notes

In this section we will specify the proper bitvectors to use for addaffects that are not straightforward in nature, usually because of some code trickery done by Aeolis.

99. nightfears: In order to properly put the nightfears affect on a player, the "modifier" field of the affect must start out as either "100", "200", or "300", depending on which nightmare they are to have. As well, if you want nightfears to keep them asleep, you will also need to manually add a second affect with the AFF_SLEEP bit set, but that one must have the modifier of 0.