![]() |
Scripts Recollection - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Articles (https://www.frictionalgames.com/forum/forum-40.html) +---- Thread: Scripts Recollection (/thread-5117.html) |
RE: Scripts Recollection - house - 01-10-2011 (01-10-2011, 11:04 PM)Tony32 Wrote: Hmm. Can anyone explain/tell me which function is used to trigger something when an item is picked up? Heres the code: Code: if(HasItem("NAME OF ITEM") == true) { Example: Code: void OnStart() RE: Scripts Recollection - Tony32 - 01-11-2011 (01-10-2011, 11:59 PM)house Wrote: Heres the code: Thank you. Is that the correct way to do it? I did something else to make it work, but I aint sure if it's the correct one. I did it like this: Code: void OnStart() then the PickUpKeyStorage function: Code: //Pick up storage key It surely works perfect, but is it correct? :p Thanks! RE: Scripts Recollection - Tony32 - 01-13-2011 I think this thread should be stickied. Great source of info : ![]() RE: Scripts Recollection - Seragath - 01-13-2011 Agreed, what the above post said. RE: Scripts Recollection - Frontcannon - 01-13-2011 (01-11-2011, 02:37 PM)Tony32 Wrote: You could alternatively just write PickUpKeyStorage in the callback field of the key. RE: Scripts Recollection - Akumasama - 01-15-2011 Is the creator of this thread still active on the forum? Or else we might wanna recreate the thread so it can be edited. RE: Scripts Recollection - Frontcannon - 01-15-2011 (01-15-2011, 06:25 PM)Akumasama Wrote: Is the creator of this thread still active on the forum? Currently doing this, would you mind making the 2nd post? If we have a character limit on this forum we might need a 2nd post. RE: Scripts Recollection - Akumasama - 01-18-2011 Do you mean that I make the second post on the topic or...? If so, tell me when you're going to make it so I can post quickly ![]() And I'll be on everyday to check for new stuff ofcourse. RE: Scripts Recollection - Ianlis - 01-21-2011 How about something for those of us that don't know heads or tails about programming, and don't even wanna try to learn? RE: Scripts Recollection - Akumasama - 01-22-2011 (01-21-2011, 11:45 PM)Ianlis Wrote: How about something for those of us that don't know heads or tails about programming, and don't even wanna try to learn? They don't deserve to make levels. Or any other kind of game that needs scripting/coding to make something. |