Отсканируй на iPhone, чтобы установить
A The Pawn recreation made by me. To be clear: I do not have any affiliation with Magnetic Scrolls, Ltd. The content that follows is for entertainment purposes only. It’s very short, but I’ll keep updating it.
Что нового
Версия 1.4
Hotfix for small bugs
Что делает
Действий: 43-
Show Result
-
Wait
-
Text
-
Set Variableroom
-
Dictionary
-
Set Variableinventory
-
If
-
Text
-
Show Result
-
Wait
-
Text
-
Set Variableroom
-
If
-
Text
-
Show Result
-
Ask for Input>
-
If
-
Text
-
Set Variableroom
-
If
-
Text
-
Show Result
-
Ask for Input>
-
If
-
Text
-
Show Result
-
Ask for Input>
-
If
-
Text
-
Show Result
-
Dictionary
-
Ask for Input>
-
If
-
Text
-
Show Result
-
Ask for Input>
-
If
-
Dictionary
-
Set Variableinventory
-
Text
-
Ask for Input>
-
If
-
Set Variableroom
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#define color orange
#define glyph puzzlePiece
show("Loading...")
wait(2)
@room = "(e.g., \\"INTRO\\", \\"grassy_wilderness\\", etc.)"
@inventory = {}
if @room == "INTRO" {
const IntroText = "The Pawn - Copyright (c) 1985 Magnetic Scrolls Ltd.\nVersion 1.0\nYou wake up on a sunny August morning with birds singing, and the air fresh and clear. However, your joints are stiff and you have not woken up in your bedroom as you would have expected. Trying to recall what happened the night before, you manage to piece together a few brief glimpses to give the following account:\nYou were walking home, having just done your week's shopping at the supermarket when you noticed a stranger in a white overcoat coming towards you. When he got very close you noticed that he was wearing glasses and had a thick, bushy beard. As he passed you he let out a hollow, cackling laugh and you felt a sharp blow on the back of your head. Then you woke up.\nYou now notice that you are wearing a silver wristband which covers your forearm."
show(IntroText)
wait(1)
@room = "on_the_path"
}
if @room == "on_the_path" {
const OnThePathRoomText = "On The Path\nYou are on a gravel path leading north to two snow capped mountains. To the west is a dying forest.\nEastward is a vast grassy plain and the path also continues southward."
show(OnThePathRoomText)
prompt(">")
if == "e" || contains "east" || == "go east" {
@room = "grassy_wilderness"
}
}
if @room == "grassy_wilderness" {
const GrassyWildernessRoomText = "Grassy Wilderness\nYou find yourself in a vast wilderness of grassy plain extending to the limit of your vision in every direction.\nKronos the magician zooms past on a circular stone platform that hovers above the ground, executes a steep, banked turn and glides to a halt in front of you. \\"Greetings, stranger\\", Kronos says in a deep, rich voice."
show(GrassyWildernessRoomText)
prompt("> ")
if contains "examine platform" || contains "examine this platform" || contains "examine the platform" || contains "Examine" {
const ExaminePlatformText = "The platform is a circle of stone about one metre across.\n\\"I am having great trouble in finding someone to perform an extremely simple task and I wonder if you would help me out.\nIf you deliver this sealed letter to King Erik of Kerovnia, you will be well rewarded when I next meet you on your travels and I would be forever indebted to you.\\" \nThe magician then offers you a sealed note."
show(ExaminePlatformText)
prompt("> ")
if == "get note" || == "get the note" || == "get this note" || == "collect note" || == "collect the note" || == "collect this note" || contains "Collect" || contains "Get" {
const NoteText = "You have now got the note"
show(NoteText)
prompt("> ")
}
if contains "kronos" || contains "wristband" || contains "ronos" || contains "ristband" {
const WristbandText = "Pointing at the silver wristband he says, I can remove that pretty bangle, but my service do not come free of charge - I will exact a deed of service. If you kill the man who rides the horse with no legs and bring his dead body to my room in the northernmost mountain I will remove this wristband and set you free from all worldly bondage. I fully realise that this is a difficult task and so I will lend you some help in the form of this small chest. Be careful, it is lethal when opened, so make sure that he is the only one to open it."
show(WristbandText)
prompt("> ")
}
if contains "get chest" || contains "hest" || == "get chest" || contains "collect chest" || contains "ollect" {
@inventory = {
"item1": "chest"
}
prompt("> ")
}
if contains "w" || contains "west" || contains "go west" {
@room
}
}
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от stardj1999
Вам также может понравиться
Реклама