uam.handleNotify(state, id, events)
(10/24 20:20:05) AAAAA on first update
(10/24 20:20:05) AAAAA on first update
(10/24 20:20:05) AAAAA on serverinitcomplete
(10/24 20:20:05) AAAAA on serverinitcomplete
(10/24 20:20:08) AAAAA on OnNotify 1
(10/24 20:20:08) AAAAA on OnNotify -1
(10/24 20:20:08) AAAAA on OnNotify 1
(10/24 20:20:08) AAAAA on OnNotify -1
(10/24 20:20:08) AAAAA on OnNotify -1
(10/24 20:20:08) AAAAA on OnNotify -1
(10/24 20:20:08) AAAAA on OnNotify -1
(repeat OnNotify -1 several times a second until I quit Uru)
from Plasma import *
from PlasmaTypes import *
from UruAgeManager import *
from xPsnlVaultSDL import *
actClickableObject = ptAttribActivator(1, 'Act: Clickable Object')
ObjectMsg = ptAttribString(2, 'Object String')
# Note: Change all "ptResponder" to "ptModifier" for a Modifier class
class aaaaa(ptResponder):
__module__ = __name__
def __init__(self):
ptResponder.__init__(self)
self.id = 106001 # Must be a unique ID of the form: AAASSS Where AAA is the Age Sequence prefix and SSSS is any ID number that's unique among the Age's scripts
self.version = 1 # ???
def OnFirstUpdate(self):
print 'AAAAA on first update'
def OnServerInitComplete(self):
print 'AAAAA on serverinitcomplete'
def OnNotify(self, state, id, events):
uam.handleNotify(state, id, events)
#print 'AAAAA on OnNotify',
#print id
if (id == actClickableObject.id):
if (ObjectMsg.value == 'BookObject'):
uam.output('AAAAA: showing journal')
uam.showBook('PBML Journal', self.key)
def OnSDLNotify(self, VARname, SDLname, playerID, tag):
print 'AAAAA SDL notify.'
def OnTimer(self, id):
print 'AAAAA Timer update',
print id
I also replaced the tabs with whitespaces; sometimes Python gets persnickety about that.
Users browsing this forum: No registered users and 0 guests