+Delta68 Posted January 27, 2015 Share Posted January 27, 2015 The player picks up Tool_A at Zone_A but has to drop it later in the game in order to pick up a different tool. I want Tool_A to stay where the player leaves it so it is visible in the locations list and it can be picked up again it necessary. My first attempt was to move Zone_A to the player's location and place Tool_A back in it but this didn't work. The zone moved OK but Tool_A returned to its original location. Any ideas? I'm using the Groundspeak builder Thanks M Quote Link to comment
+charlenni Posted January 27, 2015 Share Posted January 27, 2015 Do you have moved the item to the zone? It should work this way, because each item, which is MoveTo() transfered gets the coords of the object it is moved to. You could although create a hidden zone, which shows items always and move the item there. I often restrict the drop command to places, where the player is inside a zone. So it is possible to find the item later in this zone. Quote Link to comment
+Delta68 Posted January 27, 2015 Author Share Posted January 27, 2015 OK, here's a simple test cartridge. A zone called 'ladder' and an item called 'ladder'. The item is inside the zone. I pick up the item and the zone disappears. The ladder is in the inventory. I then move slightly and drop the ladder. The zone has moved and is visible but the emulator thinks the zone is still in the original location and there's no sign of the item anywhere! test.zip Quote Link to comment
Tyreless Posted January 27, 2015 Share Posted January 27, 2015 There's a typo which may cause the problem: zitemLadder.Commands["Pickup"].Enabled = truw Should be: zitemLadder.Commands["Pickup"].Enabled = true Quote Link to comment
+Delta68 Posted January 27, 2015 Author Share Posted January 27, 2015 There's a typo which may cause the problem: zitemLadder.Commands["Pickup"].Enabled = truw Should be: zitemLadder.Commands["Pickup"].Enabled = true Thanks but it's not that. I noticed that once I'd uploaded it but it didn't seem possible to change the zip file. Quote Link to comment
Tyreless Posted January 27, 2015 Share Posted January 27, 2015 Fixing the typo fixed it for me. I imported the lua file into urwigo, fixed the typo, and rebuilt the gwc file. When I run the cartridge in the emulator (in the Wherigo builder) it worked as you described it should work. I pick up the ladder and the zone disappears and the ladder is in my inventory. I drop the ladder and the zone reappears at the drop location with the ladder in it, ready to be picked up again. Quote Link to comment
+Delta68 Posted January 28, 2015 Author Share Posted January 28, 2015 Tyreless, are you able to export the lua file from urwigo so I can see if it's changed at all? Thanks Quote Link to comment
Tyreless Posted January 29, 2015 Share Posted January 29, 2015 I can't work out how to export lua from Urwigo - maybe someone can help me.... Quote Link to comment
+charlenni Posted January 29, 2015 Share Posted January 29, 2015 Sure. Rename the GWZ file to ZIP and open it as ZIP file. You will see all medias and a _cartridge.lua file. That's it. Quote Link to comment
Tyreless Posted January 29, 2015 Share Posted January 29, 2015 Thanks Charlenni. The lua file is attached. test.zip Quote Link to comment
+Delta68 Posted January 30, 2015 Author Share Posted January 30, 2015 Thanks Charlenni. The lua file is attached. Thanks for that! I'll have a look later Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.