mirror of
https://github.com/He4eT/yet-another-experiment.git
synced 2026-05-05 00:57:22 +00:00
Using rand
This commit is contained in:
parent
46da433a7b
commit
892480d1b5
1 changed files with 6 additions and 6 deletions
12
experiment.t
12
experiment.t
|
|
@ -19,19 +19,19 @@ versionInfo: GameID
|
||||||
|
|
||||||
gameMain: GameMainDef
|
gameMain: GameMainDef
|
||||||
initialPlayerChar = me
|
initialPlayerChar = me
|
||||||
|
showIntro () {
|
||||||
|
|
||||||
experimentNumber = 0
|
experimentNumber = rand(100);
|
||||||
dayNumber = 21
|
dayNumber = rand(1000);
|
||||||
|
|
||||||
showIntro () {"
|
"<.p>
|
||||||
<.p>
|
|
||||||
<q>Experiment <<experimentNumber>>,
|
<q>Experiment <<experimentNumber>>,
|
||||||
day number <<dayNumber>>,</q>
|
day number <<dayNumber>>,</q>
|
||||||
a cold mechanical voice suddenly interrupts
|
a cold mechanical voice suddenly interrupts
|
||||||
your restless sleep.
|
your restless sleep.
|
||||||
<q>Have a nice day!</q>
|
<q>Have a nice day!</q>
|
||||||
<.p>
|
<.p>";
|
||||||
";}
|
}
|
||||||
showGoodbye () {"
|
showGoodbye () {"
|
||||||
<.p>Game over<.p>
|
<.p>Game over<.p>
|
||||||
";}
|
";}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue