Difference between revisions of "Prog Appendix 5"

From Immwiki
Jump to: navigation, search
m
 
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
  
 
<b><i>99.</i> nightfears</b>:
 
<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.
 +
 
 +
[[category:Leviticus]]

Latest revision as of 23:45, 26 April 2011

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.