SHARE
TWEET

Untitled

a guest Feb 18th, 2020 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from evennia import DefaultCharacter
  2. from random import randint
  3.  
  4. class Character(DefaultCharacter):
  5.  
  6.     def at_object_creation(self):
  7.         self.db.gold = 20
  8.         self.get_gamever()
  9.         self.pop_inven()
  10.     def get_gamever(self):
  11.         ver = randint(1, 4)
  12.         self.db.gamever = ver
  13.     def pop_inven(self):
  14.         objone = evennia.prototypes.spawner.spawn(receipt)
  15.         objone.location = character
  16.     pass
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top