> cat /wizhelp/wizcoding
========================================================================
MUD Coding Tutorial - Part 1
========================================================================
PKWAR uses Python for all game code.
TUTORIALS:
Part 1: Getting Started (this)
Part 2: Basic Rooms (help wizcoding2)
Part 3: Objects (help wizcoding3)
Part 4: NPCs (help wizcoding4)
Part 5: Advanced (help wizcoding5)
Part 6: Debugging (help wizcoding6)
Part 7: Money & Loot (help wizcoding7)
YOUR ENVIRONMENT:
Directory: /lib/wizrooms/<yourname>/
FTP: wiz_<yourname>@pkwar.org
Debug log: debug.log in your dir
BASIC STRUCTURE:
```python
from lib.models.entity import Room
def load():
"""Required function"""
return Room(
name="room_id",
description="What players see..."
)
```
FIRST ROOM:
```python
# /lib/wizrooms/yourname/test.py
from lib.models.entity import Room, Exit
from lib.models.enums import ExitType
def load():
room = Room(
name="wizroom_yourname_test",
description="My First Test Room
This is where I learn to code for PKWAR!"
)
room.exits.append(Exit(
name="out",
destination="wizroom_yourname_workroom",
exit_type=ExitType.PATH
))
return room
```
TESTING:
1. Save to your directory
2. goto wizroom_yourname_test
3. Check debug.log for errors
4. Fix and reload
Continue with help wizcoding2
========================================================================
>
_