from direct.interval.IntervalGlobal import * def openbook(): base.localAvatar.b_setAnimState('OpenBook') def readbook(): base.localAvatar.b_setAnimState('ReadBook') base.localAvatar.setSystemMessage(1,'Toon HQ: Thanks for helping us!') def closebook(): base.localAvatar.b_setAnimState('CloseBook') def tptohole(): base.localAvatar.b_setAnimState('TeleportOut') def black(): base.localAvatar.setXYZH(275.299,-585.794,-500.168,-268.849) base.localAvatar.pageDown() def revland(): maze.removeNode() stair1.removeNode() stair2.removeNode() stair3.removeNode() stair4.removeNode() stair5.removeNode() stair6.removeNode() stair7.removeNode() stair8.removeNode() stair9.removeNode() stair10.removeNode() stair11.removeNode() stair12.removeNode() stair13.removeNode() stair14.removeNode() stair15.removeNode() stair16.removeNode() stair17.removeNode() stair18.removeNode() stair19.removeNode() wall1.removeNode() wall2.removeNode() elevator.removeNode() tablespy.removeNode() goon1.removeNode() goon2.removeNode() goon3.removeNode() goon4.removeNode() goon5.removeNode() goon6.removeNode() goon7.removeNode() goon8.removeNode() goon9.removeNode() goon10.removeNode() banquet.removeNode() tablemeet.removeNode() guard1.removeNode() guard2.removeNode() hydrant.removeNode() mailbox.removeNode() trashcan.removeNode() goofy.removeNode() mickey.removeNode() goofy2.removeNode() mickey2.removeNode() dale.removeNode() chip.removeNode() donald.removeNode() daisy.removeNode() pluto.removeNode() botcam1.removeNode() botcam2.removeNode() botcam3.removeNode() botcam4.removeNode() botcam5.removeNode() botcam6.removeNode() botcam7.removeNode() botcam8.removeNode() vp.removeNode() cj.removeNode() cfo.removeNode() ceo.removeNode() mole1.removeNode() mole2.removeNode() mole3.removeNode() def avmov(): base.localAvatar.clearPageUpDown() def tpfromhole(): base.localAvatar.b_setAnimState('TeleportIn') base.localAvatar.setXYZH(0.000,0.000,0.000,-268.849) base.localAvatar.setZ(0) base.localAvatar.collisionsOn() def onTime(): seq = Sequence() seq.append(Func(openbook)) seq.append(Wait(1.0)) seq.append(Func(readbook)) seq.append(Wait(5.0)) seq.append(Func(closebook)) seq.append(Wait(2.0)) seq.append(Func(tptohole)) seq.append(Wait(4.0)) seq.append(Func(revland)) seq.append(Func(black)) seq.append(Wait(2.0)) seq.append(Func(avmov)) seq.append(Wait(0.5)) seq.append(Func(tpfromhole)) seq.start() onTime()