Logo
Explore Help
Sign In
intercal/ages
1
0
Fork 0
You've already forked ages
Code Issues Pull Requests Releases Wiki Activity
Files
1aa1f861ee7f6ba41d883ce239bd73b453523db9
ages/examplegame/vars.py

8 lines
147 B
Python
Raw Normal View History

Split out examplegame defs by items, rooms, and vars Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2021-11-18 13:02:16 -08:00
"""
Define all game variables here.
"""
Move variables and triggers to be defined in the database * Variables are now defined in the database, rather than the game itself. * Triggers are now defined in the database, rather than hidden away in a method in the game. Custom triggers can now be added as well, in case a game needs more complex behavior that isn't necessarily available in the base library. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2021-11-18 17:32:45 -08:00
from . import database
Split out examplegame defs by items, rooms, and vars Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2021-11-18 13:02:16 -08:00
Move variables and triggers to be defined in the database * Variables are now defined in the database, rather than the game itself. * Triggers are now defined in the database, rather than hidden away in a method in the game. Custom triggers can now be added as well, in case a game needs more complex behavior that isn't necessarily available in the base library. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2021-11-18 17:32:45 -08:00
database.add_var("cabin_door_open", False)
database.add_var("mailbox_open", False)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 62ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API