forked from vantablack/vantaMOO
Merge pull request 'Add a test script' (#22) from TheSystem/vantaMOO2:vanta into vanta
Reviewed-on: vantablack/vantaMOO#22
This commit is contained in:
commit
384c0bacfc
|
@ -1,4 +1,9 @@
|
|||
# Welcome to Evennia!
|
||||
# vantaMOO
|
||||
This is the git repo for all the vantaMOO code.
|
||||
|
||||
Feel free to fork and make your own changes.
|
||||
|
||||
## Welcome to Evennia!
|
||||
|
||||
This is your game directory, set up to let you start with
|
||||
your new game right away. An overview of this directory is found here:
|
||||
|
@ -29,7 +34,7 @@ to your new game using a MUD client on `localhost`, port `4000`. You can
|
|||
also log into the web client by pointing a browser to
|
||||
`http://localhost:4001`.
|
||||
|
||||
# Getting started
|
||||
## Getting started
|
||||
|
||||
From here on you might want to look at one of the beginner tutorials:
|
||||
http://github.com/evennia/evennia/wiki/Tutorials.
|
||||
|
|
|
@ -14,6 +14,13 @@ just overloads its hooks to have it perform its function.
|
|||
|
||||
from evennia.scripts.scripts import DefaultScript
|
||||
|
||||
class TestScript(DefaultScript):
|
||||
def at_script_creation(self):
|
||||
self.key = "testscript"
|
||||
self.interval = 60
|
||||
|
||||
def at_repeat(self):
|
||||
self.obj.msg_contents("hewwo")
|
||||
|
||||
class Script(DefaultScript):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue