Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to empty inventory.
ExpectedIdentifier Offline
Member

Posts: 234
Threads: 10
Joined: Sep 2012
Reputation: 11
#5
RE: How to empty inventory.

(03-10-2013, 07:09 PM)W4rpCore Wrote:
(03-10-2013, 07:03 PM)stonecutter Wrote: you have to call this method for every item you have in the inventory:

void RemoveItem(string& asName);

Isn't there a way to reset everything?

also if I try to remove a lantern, but the player doesnt have one, does it give an error or something? or should i check if the player has one first?

You won't get an error I don't think. Also for things such as tinderboxes/laudanum, just count up how many you have on the entire map and remove that many, that way the inventory will be empty no matter how many the player picks up.
03-10-2013, 07:20 PM
Find


Messages In This Thread
How to empty inventory. - by W4rpCore - 03-10-2013, 06:52 PM
RE: How to empty inventory. - by stonecutter - 03-10-2013, 07:03 PM
RE: How to empty inventory. - by W4rpCore - 03-10-2013, 07:09 PM
RE: How to empty inventory. - by ExpectedIdentifier - 03-10-2013, 07:20 PM
RE: How to empty inventory. - by The chaser - 03-10-2013, 07:20 PM
RE: How to empty inventory. - by NaxEla - 03-10-2013, 07:09 PM
RE: How to empty inventory. - by stonecutter - 03-10-2013, 07:26 PM
RE: How to empty inventory. - by PutraenusAlivius - 03-11-2013, 03:42 PM
RE: How to empty inventory. - by No Author - 03-11-2013, 03:53 PM
RE: How to empty inventory. - by W4rpCore - 03-11-2013, 03:58 PM
RE: How to empty inventory. - by PutraenusAlivius - 03-11-2013, 04:04 PM



Users browsing this thread: 1 Guest(s)