From 56be34b9a16931844211a403fa02aace11661b6a Mon Sep 17 00:00:00 2001 From: Hyperdriveguy Date: Fri, 24 Sep 2021 21:58:04 -0600 Subject: [PATCH] add skeleton --- default_story.stry | 53 ++++++++++++++++++++++++++++++++++++++++++++++ main.py | 20 +++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 default_story.stry create mode 100644 main.py diff --git a/default_story.stry b/default_story.stry new file mode 100644 index 0000000..d83b6d6 --- /dev/null +++ b/default_story.stry @@ -0,0 +1,53 @@ +; import definitions from another file +@import battles + +main: + @newgame + @story { + You have been planning a trip out to the desert for a while; however, you're + not sure whether you want to go *Shooting* or simply *Explore* the area. + Which do you prefer? + } + @prompt Shooting Explore + @ifprompt Shooting { + ; change the ability + @ability player marksman + ; [ITEM] added to your inventory! + @additem pistol : container { + ammo : 15 + } + @additem ammo box : container { + ammo : 185 + } + @additem tannerite : 3 + @additem snack : 3 + @story {You head out into the desert.} + @wait + @jump shooting + } + ; fallthrough + @ability player scoutsman + @additem pistol : container { + ammo : 7 + } + @additem compass : 1 + @additem binoculars : 1 + @additem satellite phone : 1 + @story {You head out into the desert.} + @wait + @jump explore + + +shooting: + @story { + You arrive in the desert and find a nice hill to shoot against. + You set up your target and reload your rifle using ammo from the ammo box. + } + @wait + @story {You hold your breath and take a shot.} + @wait + @value field_tannerite : 0 + @value target destroyed : false + + +explore: diff --git a/main.py b/main.py new file mode 100644 index 0000000..fb5cd43 --- /dev/null +++ b/main.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python + +""" +Copyright (C) 2021 Hyperdriveguy + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . + +Full plain text license https://www.gnu.org/licenses/gpl-3.0.txt +"""