Griatch
5590ee2258
Rename all instances of Player->Account.
2017-07-07 23:47:21 +02:00
Griatch
8ee817ce8b
Fix lingering references to old perms/locks to resolve unittests.
2017-02-18 12:00:27 +01:00
Griatch
0bd47f0c52
Change permission strings so Immortals->Developer, Wizards->Admin, Builders->Builder, PlayerHelper->Helper, Players->Player, Guests->Guest. Made perm() and pperm() lock function accept both the plural and singular form (so both Admin and Admins work). Still lacking a data migration for updating an existing database to the new setup.
2017-02-17 23:25:09 +01:00
Griatch
74eebfed6d
Refactor code to remove alerts as per lgtm and #1176 .
2017-01-29 19:02:00 +01:00
Griatch
0da4945c92
Reformatted with markdown syntax and some cleanup.
2017-01-10 18:04:52 +01:00
John Steensen
cc5e09a916
Updated rpsystem.py with install instructions.
...
Added the following to the docstring:
Verbose Installation Instructions:
1. In typeclasses/character.py:
Import the ContribRPCharacter class:
"from evennia.contrib.rpsystem import ContribRPCharacter"
Inherit ContribRPCharacter:
Change "class Character(DefaultCharacter):" to
"class Character(ContribRPCharacter):"
If you have any overriden calls in at_object_creation(self):
Add "super(Character,self).at_object_creation()" as the top line.
2. In typeclasses/rooms.py:
Import the ContribRPRoom class:
"from evennia.contrib.rpsystem import ContribRPRoom"
Inherit ContribRPRoom:
Change "class Character(DefaultRoom):" to
"class Character(ContribRPRoom):"
3. In typeclasses/objects.py
Import the ContribRPObject class:
"from evennia.contrib.rpsystem import ContribRPObject"
Inherit ContribRPObject:
Change "class Character(DefaultObject):" to
"class Character(ContribRPObject):"
4. Reload the server (@reload or from console: "evennia reload")
5. Force typeclass updates as required:
Example for your character: "@type/reset/force me =
typeclasses.characters.Character"
2017-01-10 18:04:52 +01:00
Griatch
de041f1048
Fix some bugs in rpsystem, pertaining to (the relevant parts of) #1112 .
2016-11-01 21:00:41 +01:00
Griatch
384d08f9d8
Make rpsystem embedded emote-says handle references embedded in language quotes. Resolves #1054 . Also make rpsystem say command use the emote mechanism to give it full support for embedded references.
2016-10-23 19:32:54 +02:00
Griatch
c7b689c1d8
Fix unittests and a lingering error in the solution to #1073 .
2016-10-13 22:10:49 +02:00
Griatch
fb96b44324
Fix searching from a ContribRPObject. Resolves #1073 .
2016-10-13 20:34:09 +02:00
Dan Feeney
d88d882439
moved msg_contents to DefaultObject
2016-09-20 16:30:31 +02:00
Dan Feeney
a45ddf84fe
override the default msg_contents on ContribRPRoom to accept a mapping of format tokens to objects which will have get_display_name called
2016-09-20 16:30:31 +02:00
BlauFeuer
ad8d105795
Revert curly braces fix - Griatch did it better
2016-09-10 11:25:50 +02:00
BlauFeuer
dd840ba05b
rpsystem.py minor fixes to CmdEmote
...
+Escape curly braces in emote
+Check for ? as ending punctuation before adding full-stop
2016-09-10 11:25:50 +02:00
Griatch
d5c8db4c82
Fix error in rpsystem's forget command as per #1051 .
2016-09-09 08:24:21 +02:00
Griatch
34f1d84c4c
Excape { } brackets in rpsystem contrib emotes. Resolves #1052 .
2016-09-08 22:52:13 +02:00
Griatch
e373e1733b
Make the move transition hooks use get_display_name to make them compatible with the rpsystem contrib as per #1051 .
2016-09-08 22:11:22 +02:00
Griatch
4f1515fc72
Fix unittests and changed all of rpsystem to use |-type color markers.
2016-09-02 00:26:18 +02:00
Griatch
690bc82862
Fix lingering bug with rpsystem process_sdesc. Also added a new method process_recog for processing recogs separately (defaults to just calling process_sdesc). Also made the rpsystem say command use the get_display_name for its self-name display.
2016-09-02 00:13:59 +02:00
Griatch
f883c9d087
Fix so process_sdesc is called with the correct obj.
2016-09-01 23:39:23 +02:00
Griatch
c8909b4b67
Fix bug in contrib.rpsystem's emote multimatch display.
2016-08-31 23:43:49 +02:00
Griatch
164a28308c
Make contrib.rpsystem's recogs protected from empty strings in the same way as sdescs
2016-08-31 23:24:47 +02:00
Griatch
6730e990b2
Make sure rpsystem sdescs can not be set to the empty string, and if it is, use obj.key. Resolves #1030 .
2016-08-31 23:19:13 +02:00
Griatch
23d87c297a
Fix bug in rpsystem.CmdSay
2016-08-28 21:02:34 +02:00
Griatch
f89b4857ae
Add a custom CmdSay to rpsystem contrib, to handle sdescs.
2016-08-28 20:43:33 +02:00
Griatch
49087b50d1
Allow multi-character keys for EvForm cells and tables. This was due to a too restrictive regex. Resolves #1014 .
2016-08-20 11:41:53 +02:00
Griatch
1da9217a18
Return no match if using obj.search() with an empty list of candidates. This accounts for candidate lists that are created dynamically, for example limiting them to the inventory (which may be empy). Resolves #1016 .
2016-08-20 11:00:33 +02:00
Griatch
bbc2f255fc
Make Builders be able to look/search by key+alias in rpsystem.
2016-08-19 23:20:40 +02:00
Griatch
89fbc44d15
Make the ContribRPObject.search() fully accept all kwargs of normal obj.search. Resolves #1017 .
2016-08-19 22:35:33 +02:00
Griatch
a79108583c
rpsystem contrib: Made the recog/sdesc matching for normal objects also handle objects with multi-word keys or aliases
2016-06-04 13:12:08 +02:00
Griatch
674a475786
Made the rpsystem contrib search handle objects both with- and without sdescs, also allowed to recog objects without a recog handler of their own. Resolves #987 .
2016-06-04 13:06:56 +02:00
Griatch
7870d21b00
Made a patch for rpsystem to pass through possible candidates that has no sdesc handler - this avoids non-sdesc objects from being impossible to locate (for when mixing this contrib with other types of objects). See #987 .
2016-06-02 00:32:15 +02:00
Ahmed Charles
11b61fe335
Import python3 compatible object.
2015-11-02 00:19:04 +01:00
Ahmed Charles
bc340fbf0d
Remove commented out print statements.
2015-10-19 23:31:19 +02:00
Griatch
3cc7f614c0
Removed some more spurious code comments.
2015-09-27 02:22:34 +02:00
Griatch
a338f01598
Removing debugs.
2015-09-26 23:26:53 +02:00
Griatch
8ff1cf91dc
Fixed error in language format input.
2015-09-26 23:26:07 +02:00
Griatch
3eca82ae3b
Further tweaks.
2015-09-26 22:56:46 +02:00
Griatch
dd6b0cfb34
Minor textual update.
2015-09-26 22:56:28 +02:00
Griatch
38e0998ef2
More information on masked state.
2015-09-26 22:52:21 +02:00
Griatch
993f4cbb9d
Added handling of mask command with spurios letters at end.
2015-09-26 22:27:27 +02:00
Griatch
350ef90a82
Fixed unittests to match changes to regex patterns.
2015-09-26 22:24:45 +02:00
Griatch
7625306b44
Worked out some edge cases in masking sdescs, some other side cases remains.
2015-09-26 22:14:20 +02:00
Griatch
d62dd9afab
Fixed an inconsistency in director stance.
2015-09-26 19:30:07 +02:00
Griatch
f6556b426e
Added documentation to rpsystem
2015-09-26 18:56:14 +02:00
Griatch
0cb2daad83
Further work on tweaking the emote system.
2015-09-26 18:56:14 +02:00
Griatch
382846ae08
Added masking possibility to recog system.
2015-09-26 18:56:14 +02:00
Griatch
35583daed2
Started adding parsing to pose.
2015-09-26 18:56:14 +02:00
Griatch
bd39f1548e
Some unittest updates.
2015-09-26 18:56:14 +02:00
Griatch
e9148bc0f6
Added unittests for rplanguage and rpsystem contribs.
2015-09-26 18:56:14 +02:00