View previous topic :: View next topic |
Author |
Message |
Willy Elektrix
Joined: 27 Jul 2010 Posts: 8
|
Posted: Sat Aug 14, 2010 6:15 pm Post subject: Teleport Item |
|
|
I'm working on an item for my game that will teleport the user back to the beginning of a dungeon. What I've done is a create an item that opens a text box. This text has a "use door" command that warps the player to a door I've created at the beginning of the dungeon.
However, during the game, whenever I use the item from my inventory menu (it's not usable during battle) it brings up a script error that says "Script Error!" "remove_menu: invalid slot -1" "Funny...no scripts running!"
If I hit ignore, it warps back to the beginning of the dungeon like it's supposed to. How do I prevent this error from occurring? Or is there another way to make this item?
To clarify, I'm trying to use it on the same map where it should warp to. I'm not trying to warp between maps. |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Wed Aug 18, 2010 7:44 am Post subject: |
|
|
Already posted this on slimesalad, but in case you see this first;
I figured it out.
When you use an item that triggers a text box, the menu that opened the inventory screen is closed. If the menu item that opened the inventory screen also had the "Close menu if selected" bitset turned on, then it would make a second attempt to close the menu after it was already closed.
The nightly build script had died a couple days ago, so I just restarted it. You can test with current nightly builds |
|
Back to top |
|
 |
|