Markar / minimud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

steps to run python -m venv .venv Mac: source .venv/bin/activate Win: cd .venv/Scripts, ./Activate

superuser for minimud markar werty678

\wsl.localhost\Ubuntu\home\mark\home\muddev\evennia-minimud\server

Delete the current combat script, freeing up related variables

py here.scripts.get('combat').delete()

here.scripts.get('combat').delete() (1, {'scripts.CombatScript': 1})

Delete all in limbo

py _ = [obj.delete() for obj in self.search("#2").contents]

evennia xyzgrid add world.maps.newbie_land evennia xyzgrid

Set an attribute on a room in game py setattr(here, "key", "Training Grounds")

@tel town#15

@dig/teleport A vortex of swirling Chaos;chaos#1 : typeclasses.rooms.Room = enter,vortex

@desc |yA swirling vortex of pure Chaos. You can jump through the vortex to get back to the safety of town, or you can choose to explore the realm.

@dig/teleport In front of a chessboard;chaos#2 : typeclasses.rooms.Room = east;e,west;w

@desc |gIn front of you stands a gigantic chessboard, but with real monsters instead of game pieces. It looks pretty dangerous.

@open chessboard = (1,1,chessboard)

chessboard

@open leave = chaos#2

DELETE ROOMS

from typeclasses.rooms import NewbieSnake all = NewbieGoblin.objects.all()

for x in all: caller.msg(f"x: {x}") x.delete()

RESET LOCKS

self.caller.tags.add("player", category="type") bark = search_object("Bark")[0] bark.locks.add("call:false(); control:perm(Developer); delete:id(3) or perm(Admin);drop:holds(); edit:pid(3) or perm(Admin); examine:perm(Builder); get:false(); puppet:id(4270) or pid(3) or perm(Developer) or pperm(Developer); teleport:perm(Admin); teleport_here:perm(Admin); tell:perm(Admin); view:all()")

SEARCH BY TAG

hasPlayerTags = caller.tags.has("player", "status")

SPAWN OBJECT BY PROTOTYPE IN CODE

corpse = { "key":"a corpse", "typeclass": "typeclasses.corpse.Corpse", "desc": "A small corpse", "location": self.caller.location } spawner.spawn(corpse)

USE SPAWNER IN CODE

objs = spawner.spawn(*list(search_tag("MOB_CORPSE"))) for obj in objs: self.caller.msg(f"obj: {obj}") obj.location = self.location

TEST FUNCTION CALL

msg = self.caller.get_hit_message(self.caller, 4, "fart")

SET LOCAL KEY

self.caller.location.key = "Millennium Square"

DELETE CMDSET ON PLAYER

self.caller.cmdset.delete(ChangelingCmdSet)

About

License:MIT License


Languages

Language:Python 99.3%Language:HTML 0.7%