View Issue Details

IDProjectCategoryLast Update
0009950Shattered HavenGameplay IdeaJan 12, 2013 5:22 pm
ReporterGameMaker24 Assigned ToChris_McElligottPark  
Status feedbackResolutionreopened 
Summary0009950: New argument for Level script command - Inventory Clear, True or False
DescriptionI'm using the Level script command during the tutorial to send the kids north from Level 001 to Level 095, where they will get weapons training and additional story content.

Currently, the command's only argument is the destination level number. Can we also include a Boolean value to control whether they keep their current inventory? It doesn't make sense for their items to disappear without explanation. Later on, when focus shifts to the parents, I'll use this same command again, but of course inventory does need to reset.
TagsNo tags attached.
Internal WeightFeature Suggestion

Activities

Chris_McElligottPark

Nov 25, 2012 7:38 pm

administrator   ~0029069

Thanks!

* The "LEVEL" command has an optional new second parameter:
** (args: LevelNumber <Optional>KeepInventory) - Send the players to the destination level. The second parameter is optional, and defaults to false. If set to \"true\" (no quotes), then the inventory will get carried to the new level.

GameMaker24

Jan 12, 2013 5:22 pm

manager   ~0029766

Last edited: Jan 12, 2013 5:22 pm

The LEVEL command's new parameter to clear the inventory is only temporarily clearing it. At the end of the tutorial in Level 95, I have set it to FALSE because the parents should not be carrying what the kids had found. This works, at first -- as the parents escape Level 001 (not yet the altered version, 094), they begin empty-handed. However, when they step into Phoenix Forest, they gain what the kids had been carrying.

If you don't want to truly clear the inventory with this flag, then a new command called ClearInventory would solve this, instead.

Issue History

Date Modified Username Field Change
Nov 25, 2012 11:18 am GameMaker24 New Issue
Nov 25, 2012 11:18 am GameMaker24 Status new => assigned
Nov 25, 2012 11:18 am GameMaker24 Assigned To => Chris_McElligottPark
Nov 25, 2012 1:35 pm GameMaker24 Summary New argument for Level script command => New argument for Level script command - Inventory Clear, True or False
Nov 25, 2012 7:38 pm Chris_McElligottPark Note Added: 0029069
Nov 25, 2012 7:38 pm Chris_McElligottPark Status assigned => resolved
Nov 25, 2012 7:38 pm Chris_McElligottPark Resolution open => fixed
Jan 12, 2013 5:22 pm GameMaker24 Note Added: 0029766
Jan 12, 2013 5:22 pm GameMaker24 Status resolved => feedback
Jan 12, 2013 5:22 pm GameMaker24 Resolution fixed => reopened
Jan 12, 2013 5:22 pm GameMaker24 Note Edited: 0029766
Apr 14, 2014 9:30 am Chris_McElligottPark Category Suggestion - Gameplay => Gameplay Idea