12699 0.1 0.1 6000 3788 pts/0 S 06:25 0:01 ../src/rom 3083
12789 6.2 0.8 24964 18456 pts/0 S 06:26 1:03 python3.4 ./pyom
if ch.act.is_set('nosummon nofollow autogold autoexits')
#True if all 4 bits are set.
if ch.act.is_nosummon:
#true if nosummon is set
if ch.act.is_set(PLR_NOSUMMON | PLR_NOFOLLOW |PLR_AUTOGOLD)
# True if all 3 are set.
ch.act.set_bit(['nofollow', 'nosummon', 'autoexits'])
#sets nofollow, nosummon, autoexits
if actor.perm_hit > 20:
if actor.perm_hit > 30:
actor.do_say("I'm pretty much god.")
else:
actor.do_say("I'm a beast!")
else:
actor.do_say("I'm a wimp!")
if actor.guild.name == 'mage':
actor.do_say("I'm a mage tho, so don't mess with me.")
elif actor.guild.name == 'thief':
actor.do_say("I'm a thief, hold your wallet!")
else:
actor.do_say("I'm not sure what I am.")
if not actor.act.is_set(PLR_CANLOOT):
actor.do_say("And I can't loot!")
for vict in actor.in_room.people:
actor.do_say(vict.name)
Here's what our do_help now looks like. This is an example of how alias' now work, as well a basic default_arg to pass to them if need be. This is commands/do_help.py
The way we have it setup, to add or remove commands from the game is simply adding or removing a file. The current setup has all the files in a single folder but we plan to use a subdirectory tree to organize them a little better.
The future game plan now is to do a similar thing to spells. Scripting seems to have popped up. Syn has discovered python can tokenize itself. The experiments ensue ;)
*Edit
Tenitively for a spell setup you'd drop this spell_acid_blast.py into the spells subdirectory and you'd have acid blast.