Specific items

Started by Milos Regamer Jevtic, Thu 09/08/2012 05:31:15

Previous topic - Next topic

Milos Regamer Jevtic

Hi, i just want to know how to make specific items be the ONLY thing usable to a specific hotspot. Eg. A yellow key to be only able to open a yellow door, please explain for v272.
What is ultimate POWAH?!

Khris

Code: ags
  // inside the "use inventory on hotspot" event's function
  if (player.ActiveInventory == iYellowkey) {
    // unlock door, etc.
  }
  else player.Say("I can't use that here.");

SMF spam blocked by CleanTalk