add skeleton

This commit is contained in:
Hyperdriveguy 2021-09-24 21:58:04 -06:00
parent 52812eabd5
commit 56be34b9a1
2 changed files with 73 additions and 0 deletions

53
default_story.stry Normal file
View file

@ -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:

20
main.py Normal file
View file

@ -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 <https://www.gnu.org/licenses/>.
Full plain text license https://www.gnu.org/licenses/gpl-3.0.txt
"""