Robin_Gravel |
There's a debug mode in template? And how to activate it? Robin Gravel |
AGI1122 | Press both shift keys and hold them. Then while holding them press the minus key on the number pad. That will open debug mode. |
Robin_Gravel |
Thanks Chris. Now. There is a way to teleport from room to room like tp in agi? Robin Gravel |
Joe |
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 |
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)) ) |
Robin_Gravel |
The teleporter is not enclosed in debug mode like agi interpreter? Thanks Joe. I'll look for it. Robin Gravel |
AGI1122 | The debug mode doesn't have those things... but I do think you can telport by altering a certain variable in the debug mode. |
Robert Eric | 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. |
Robin_Gravel |
Thanks Robert It works. Robin Gravel |