-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lead0b110010100
authored and
Lead0b110010100
committed
Apr 23, 2020
1 parent
eb5dc35
commit 4f533e3
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
quest horsecandy begin | ||
state start begin | ||
when 71110.use begin | ||
say_title("Wie soll dein Pferd heißen?") | ||
local name = input() | ||
local result = horse.set_name(name) | ||
|
||
say_title("Pferdename") | ||
say() | ||
|
||
if result == 1 then | ||
say("Dieser Pferdename ist nicht zulässig.") | ||
return | ||
end | ||
|
||
say(string.format("Dein Pferd heißt nun %s", name)) | ||
say() | ||
item.remove() | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,3 +35,4 @@ soulstone.lua | |
level_info.lua | ||
change_name_item.lua | ||
goldbars.lua | ||
horsecandy.lua |