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


Thread Rating:
  • 2 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using items between levels?
Zypherzemus Offline
Member

Posts: 94
Threads: 7
Joined: Jul 2011
Reputation: 0
#8
RE: Using items between levels?

(07-06-2011, 10:30 PM)Kyle Wrote:
(07-06-2011, 09:14 PM)MrBigzy Wrote: If you have multiple places where an item MIGHT be used, you can make a script called global.hps and put the callback in there. You can also make one called inventory.hps for combining items and such in multiple levels. Look up Frictional's scripts with the same name for examples; the function names are slightly different for those hps files.

I remember that I tried that once and it just never would work. :/

I have a suggestion, how about in the second level from where you use the item add this in your void OnStart().

void OnStart()
{
     if (HasItem("ItemName") == true)
     {
          RemoveItem("ItemName");
          GiveItem("ItemName");
     }
}

It might work, it might not.

Ok, so the command works, but when I try to use the key on the level door, it says "Item cannot be used this way!" D:
all of the signatures match and everything is correct in the .lang file, but it still doesn't work
07-08-2011, 11:05 PM
Find


Messages In This Thread
Using items between levels? - by Streetboat - 07-05-2011, 06:27 PM
RE: Using items between levels? - by DamnNoHtml - 07-05-2011, 10:47 PM
RE: Using items between levels? - by Zypherzemus - 07-06-2011, 04:41 AM
RE: Using items between levels? - by H. Filipe - 07-06-2011, 12:11 PM
RE: Using items between levels? - by DamnNoHtml - 07-06-2011, 06:13 PM
RE: Using items between levels? - by MrBigzy - 07-06-2011, 09:14 PM
RE: Using items between levels? - by Kyle - 07-06-2011, 10:30 PM
RE: Using items between levels? - by Zypherzemus - 07-08-2011, 11:05 PM
RE: Using items between levels? - by Streetboat - 07-08-2011, 11:26 PM
RE: Using items between levels? - by Zypherzemus - 07-08-2011, 11:42 PM
RE: Using items between levels? - by Kyle - 07-09-2011, 12:19 AM
RE: Using items between levels? - by Zypherzemus - 07-09-2011, 12:35 AM
RE: Using items between levels? - by Kyle - 07-09-2011, 12:37 AM



Users browsing this thread: 1 Guest(s)