The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Script Help Tinderboxes don't remove from inventory
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#1
Tinderboxes don't remove from inventory

Maybe it's so simple that you can't remove them at all, but well. I've made a capture scene and you get the dragged to cell blah blah. Now, I want the player at this point to lose exactly everything. All puzzle items, lantern, oil and everything.

Everything is removed according to script, except for tinderboxes. I've checked the name some times now and maybe that is still the problem at this point, but I wanna be certain.

Below is basically how it looks in OnStart:

//Remove EVERYTHING
    RemoveItem("wooden_bucket");
    RemoveItem("wooden_bucket_1");
    RemoveItem("screwdriver");
    RemoveItem("GlassJar");
    RemoveItem("orbpiece_turquoise");
    RemoveItem("Lantern");
    
    SetPlayerLampOil(0.0f);
    
    for(int i=1; i<=40; ++i) RemoveItem("potion_oil_" + i);
    for(int i=1; i<=40; ++i) RemoveItem("potion_health_" + i);
    for(int i=1; i<=100; ++i) RemoveItem("tinderbox_" + i);

A quick response would be lovely due to my lack of time to finish this mod I'm working on. Got school and other maps I need to help ppl with.

Derp.
04-01-2014, 08:45 PM
Find


Messages In This Thread
Tinderboxes don't remove from inventory - by Neelke - 04-01-2014, 08:45 PM



Users browsing this thread: 1 Guest(s)