- Home /
HELP Adventure Loot System
Heey
I'm working on a adventure game similar to
I would like to know how example I find a object (key) in the scene and click it, it will be added to my inventory and then if I click the object (key) in my inventory and click another object in the scene (being a door) it will call another event and do something to progress like a puzzle I'm sure use get what I mean by the games im mentioned above if use have played them.
My progress of a GUI inventory window
Cheers Jazza
Answer by Faridox1 · Feb 23, 2013 at 04:07 PM
can i have the script?
but you have to create another script on c# and name it ti item.cs heres the item script :D
class MySwordItem : IventoryItem
{
protected int damage;
protected int durability;
protected int weight;
// This could be executed when clicked in the GUI
void OnClick()
{
// Equip this sword
}
}
can you post the script in my email wil ya?
this is my email send me the script here --> transformers_in_the_house@hotmail.com
Your answer
Follow this Question
Related Questions
Using items from inventory 1 Answer
Adventure Game tutorial (can't buy coffee) 1 Answer
Check to see if item is in correct slot 1 Answer
Pick up ability? And inventory? 1 Answer