Author Topic: debug mode  (Read 6467 times)

0 Members and 1 Guest are viewing this topic.

Offline robingravel

debug mode
« on: July 25, 2002, 06:30:27 PM »
There's a debug mode in template?

And how to activate it?

Robin Gravel



Offline Chris Cromer

Re:debug mode
« Reply #1 on: July 25, 2002, 06:33:48 PM »
Press both shift keys and hold them. Then while holding them press the minus key on the number pad. That will open debug mode.
Chris Cromer

It's all fun and games until someone get's hurt then it's just fun. ;)

Offline robingravel

Re:debug mode
« Reply #2 on: July 25, 2002, 08:25:15 PM »
Thanks Chris.

Now. There is a way to teleport from room to room like tp in agi?

Robin Gravel

Joe

  • Guest
Re:debug mode
« Reply #3 on: July 25, 2002, 08:33:16 PM »
Go into Main.sc.  Look for something like: (instance public Template of Game

Go to the handleEvent method and add something like:

(if(Said('go/room'))
   = roomnum GetNumber("Enter room number:")
   (if(= roomnum 1 or = roomnum 800)
     (self:newRoom(roomnum))
   )
)

And add (var roomnum) under the (method (handleEvent pEvent) line.

Joe

  • Guest
Re:debug mode
« Reply #4 on: July 25, 2002, 08:34:39 PM »
Scratch the code I gave you.  It was from my game.  Just do:

(if(Said('go/room'))
   = roomnum GetNumber("Enter room number:")
   (self:newRoom(roomnum))
)

Offline robingravel

Re:debug mode
« Reply #5 on: July 25, 2002, 08:38:54 PM »
The teleporter is not enclosed in debug mode like agi interpreter?

Thanks Joe. I'll look for it.

Robin Gravel

Offline Chris Cromer

Re:debug mode
« Reply #6 on: July 25, 2002, 08:56:00 PM »
The debug mode doesn't have those things... but I do think you can telport by altering a certain variable in the debug mode.
Chris Cromer

It's all fun and games until someone get's hurt then it's just fun. ;)

Offline Robert Eric

Re:debug mode
« Reply #7 on: July 25, 2002, 09:06:59 PM »
Yes.  In debug mode, hit the 'g' button, them type 16.  After that, you can type in the room number you want to teleport to.  Once you close the debug window, you will go to the room.

Offline robingravel

Re:debug mode
« Reply #8 on: July 25, 2002, 09:58:58 PM »
Thanks Robert

It works.

Robin Gravel


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.047 seconds with 22 queries.