How to 'RunInteraction_Inventory'?

Started by J.D.Cann, Sun 06/11/2011 00:16:46

Previous topic - Next topic

J.D.Cann

Hello, Im new to this and need some help.

I have found the relevant script help within the manual and checked the Knowledge Base but that also doesnt really clear it up.

Basically im trying to do the classic and simple, find a key-use it on the locked door-open door, scenario.

And I cant work out the correct script and where to put it in which 'events' box?

Cheers for your help. Also, Im using Catia, a CAD software to design my backgrounds. I dont know if this is a done thing? but as a design engineer it seemed obvious to me. If anyone wants to see what the backgrounds look like let me know and Ill send you some pics.

...

and i promise they wont just be pics of me in my pants! well, not all of them anyway. (and thats english pants btw :/


Cheers,

Joe

PatientRock

Check out Densming's tutorial videos. Extremely helpful. They'll take you through everything you need.

http://www.youtube.com/user/densming



Matti

#2
Yeah, you should check out those videos. As for your current problem:

In the objects event pane (the lightning bolt icon), click the [...] next to "use inventory on object".



Then a function will be created where you can write down something like this:

Code: ags

if (cEgo.ActiveInventory == ikey) {
  doorlocked = false;
  cEgo.Say ("I unlocked the door!");
}


Edit: Thanks, NickyNyce.

NickyNyce

#3

Those Densming videos are old, but they really get you into learning all the small things to get you started... do yourself a favor and check'em out

If you want some constructive criticism on your backgrounds, post one in the critics lounge

EDIT: No prob Matti  ;)

SMF spam blocked by CleanTalk