Author Topic: Specific items  (Read 155 times)  Share 

Milos Regamer Jevtic

  • Ju Dont Nou D Pauer Of D Dark Sajd!
    • I can help with backgrounds
    •  
    • I can help with characters
    •  
    • I can help with story design
    •  
Specific items
« on: 09 Aug 2012, 05:31 »
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

  • Evil Dark Emperor Death-Kill
    • Lifetime Achievement Award Winner
    •  
    • I can help with play testing
    •  
    • I can help with scripting
    •  
    • I can help with translating
    •  
Re: Specific items
« Reply #1 on: 09 Aug 2012, 12:18 »
Code: Adventure Game Studio
  1.   // inside the "use inventory on hotspot" event's function
  2.   if (player.ActiveInventory == iYellowkey) {
  3.     // unlock door, etc.
  4.   }
  5.   else player.Say("I can't use that here.");
http://whathaveyoutried.com/

The other day on yahoo answers:
"Can you print colored images with black ink? If so tell me how please Thanx Kimberly"