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 Using the GiveItem function?
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
#11
RE: Using the GiveItem function?

(04-20-2012, 10:58 PM)palistov Wrote: The entity type "Item" has subtypes: Puzzle, PotionHealth, PotionOil, Key and a few others I can't think of off the top of my head. Basically designates what the item does. Not sure why this is required, but it can't hurt to put the appropriate subtype.
Thank you. That was hard to figure out. However, these are the correct subtypes of Item (that you can find by opening the model editor, selecting "User Defined Variables" in the menu, and setting the "Type" to "Item"):

Puzzle (Probably most items, including keys.)
Coins
Note
Diary
Lantern
Health
Sanity
LampOil
Tinderbox
HandObject

This correct list will be the first on the internet, judging by the search results. Smile


Noob scripting tutorial: From Noob to Pro

04-21-2012, 12:24 AM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#12
RE: Using the GiveItem function?

Bumped here, and YEAH it's old!
BUT... i found a small problem so i searched the forum and came here!
-
GiveItem("Parkingcard", "Sec_Blue", "Parkingticket", "Sec_Blue_cover.jpg", 1);
-
Parkingcard = THIS will be the actual USABLE item IN GAME can be used on entites.
Sec_Blue = the .ent file {the item itself} What you create or a file from Amnesia itself.
Parkingticket = for changing the name in the .english
Sec_Blue_cover.jpg = is the PICTURE you will see in the INVENTORY
-
Don't remove this thread Mods,
Some people might find this usefull for their custom storys {Fc}
07-23-2013, 02:28 AM
Find




Users browsing this thread: 1 Guest(s)