Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: Temporary Iventory Storage  (Read 2169 times)

0 Members and 1 Guest are viewing this topic.

Diaf

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
    • View Profile
Temporary Iventory Storage
« on: July 15, 2009, 08:45:15 AM »

Basically what Im trying to do in my game is have a box where you can put a certain item in and depending on what you do get out a modified item or the original  item.

At first I just used Game.DropItem to do this but I noticed that when I do that and go to the area that you originally get the item it has returned there. Then I tried Game.DeleteItem but then the game spits the dummy when I try get the original item back out.

Is there a way you can remove an inventory item from inventory, not have it return to where it comes from and allow you to add the same item again later?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Temporary Iventory Storage
« Reply #1 on: July 15, 2009, 09:18:31 AM »

Remember every game object in WME can hold its own inventory. You can take advantage of this and for example have a dummy entity (created with Game.CreateEntity()) and use it for storage of hidden inventory items.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.045 seconds with 20 queries.