Mood System V0.02
I patched an off-by-one error in the code that initialized the tiredness variable.
This commit is contained in:
8
story.ni
8
story.ni
@@ -157,7 +157,7 @@ TurnsCount is a number that varies. TurnsCount is usually 0.
|
||||
Every turn:
|
||||
now TimekeepingVar is remainder after dividing TurnsCount by 4;
|
||||
|
||||
A person has a number called TirednessVar. TirednessVar is usually 0.
|
||||
A person has a number called TirednessVar. TirednessVar is usually 1.
|
||||
|
||||
This is the turnpass rule:
|
||||
Now TurnsCount is TurnsCount + 1;
|
||||
@@ -2093,15 +2093,15 @@ To say Dream:
|
||||
If a random chance of 1 in 9 succeeds:
|
||||
choose row 3 in the Table of Dreams;
|
||||
say "You have a nightmare about [a random item from subject entry].";
|
||||
now the securityNum of the player is the securityNum of the player -1;
|
||||
now the securityNum of the player is the securityNum of the player - 1;
|
||||
Otherwise if a random chance of 3 in 9 succeeds:
|
||||
choose row 2 in the Table of Dreams;
|
||||
say "You have a confusing dream about [a random item from subject entry].";
|
||||
now the entertainNum of the player is the entertainNum of the player -1;
|
||||
now the entertainNum of the player is the entertainNum of the player - 1;
|
||||
Otherwise:
|
||||
choose row 1 in the Table of Dreams;
|
||||
say "You have a pleasant dream about [a random item from subject entry].";
|
||||
now the securityNum of the player is the securityNum of the player +1;
|
||||
now the securityNum of the player is the securityNum of the player + 1;
|
||||
|
||||
Table of Dreams
|
||||
valence subject
|
||||
|
Reference in New Issue
Block a user