Jump to content

Recommended Posts

Posted

If you are referring to void put_item_on_spot(short loc_x,short loc_y,short what_item) there is no call that makes an item contained or otherwise. You can manually make an item contained by choosing Shift + S, clicking on the square containing the item and then clicking on the line that says "Not Contained".

Posted

Oddly, if you put an object on a container it WILL be contained-- or at least half contained. The player will have to search the container to get the item, but the item will appear on top of the container.

 

Personally I prefer a twist on what Thuryl is talking about. Place the object in a container but have a block_entry() called whenever the player searches until whatever conditions are met so that the player can find the item. Alternatively, hidden containers containing items (with a block_entry()) toggled to visible containers (without a block_entry()) can be useful as well if the space wasn't originally a container.

Posted
Quote:
Originally written by Lazarus.:
Or just specobj with a flag/item/whatever check in the state it calls.
That's the way I do it, and it's so damn easy. Place a specobj terrain script on a container, set memory cell 0 to 10 (or whatever), and then add this in the town script:

Code:
beginstate 10; //or whatever   if(get_flag(0,1) == 0) { //if the condition isn't met...      block_entry(1); //stop them getting the loot      message_dialog("You can't open this chest yet,",""); //and maybe leave them a message   }break; 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...