mirror of
https://github.com/He4eT/yet-another-experiment.git
synced 2026-05-04 16:47: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
|
||||
initialPlayerChar = me
|
||||
showIntro () {
|
||||
|
||||
experimentNumber = 0
|
||||
dayNumber = 21
|
||||
experimentNumber = rand(100);
|
||||
dayNumber = rand(1000);
|
||||
|
||||
showIntro () {"
|
||||
<.p>
|
||||
"<.p>
|
||||
<q>Experiment <<experimentNumber>>,
|
||||
day number <<dayNumber>>,</q>
|
||||
a cold mechanical voice suddenly interrupts
|
||||
your restless sleep.
|
||||
<q>Have a nice day!</q>
|
||||
<.p>
|
||||
";}
|
||||
<.p>";
|
||||
}
|
||||
showGoodbye () {"
|
||||
<.p>Game over<.p>
|
||||
";}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue