mirror of
https://github.com/He4eT/simple-tads-game.git
synced 2026-05-04 17:07:24 +00:00
Add potion
This commit is contained in:
parent
eeb63408bb
commit
a2ae664fcb
4 changed files with 24 additions and 0 deletions
|
|
@ -55,3 +55,15 @@ dude: Person
|
|||
+ AskTopic [tGames]
|
||||
"<q>I will later show you one of my games, dude!</q>"
|
||||
;
|
||||
|
||||
+ AskTopic [tPotion]
|
||||
topicResponse() {
|
||||
if (potion.location == dude) {
|
||||
potion.moveInto(me);
|
||||
"<q>Sure, dude! Take it.</q>\n
|
||||
Now you have a potion in your inventory.";
|
||||
} else {
|
||||
"<q>I only had one potion. There's no more, man.</q>";
|
||||
}
|
||||
}
|
||||
;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue