Mirage Source
Chest - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Show Off (https://mirage-engine.uk/forums/forumdisplay.php?fid=10)
+---- Thread: Chest (/showthread.php?tid=1544)



Chest - William - 03-02-2008

Decided to add a simple chest to my game:

[Image: chestxh1.png]
http://img238.imageshack.us/img238/2552/chestxh1.png


Re: Chest - Becoming - 05-02-2008

so how many different chests can you have on one map and how do you open a chest ?


Re: Chest - jasoncannon - 06-02-2008

i am so looking at your chest right now........... :mrgreen: looks good


Re: Chest - Jestar - 08-02-2008

So do you carry the chest in your inventory? or is it like in a bank? either way, nice job.


Re: Chest - Spodi - 09-02-2008

Why did I hope to see boobs when I clicked this?

I don't quite see where the chest is. By chest, you mean like a personal storage / deposit box dealie? Or a chest like "You opened the chest and found a Sword of Awesome"?


Re: Chest - Tony - 09-02-2008

Spodi Wrote:Why did I hope to see boobs when I clicked this?

I don't quite see where the chest is. By chest, you mean like a personal storage / deposit box dealie? Or a chest like "You opened the chest and found a Sword of Awesome"?

It says deposit and withdraw >


Re: Chest - Spodi - 09-02-2008

I've seen quite a few games that allow you to put stuff in public chests as well as take out from them, so I didn't want to jump to conclusions.


Re: Chest - Becoming - 09-02-2008

theres pros and cons really to the whole chest idea. you can either do it by the map, which is pretty lazy and means only 1 chest per map, or you can make them based on an x and y position so you could have all sorts of containers on one map, for instance.
Your in a weapons shop and there is 3 barrels in the corner, you would be able to put the item in any of the 3 barrels without them conflicting with the item.


Re: Chest - seraphelic - 11-02-2008

So how did you set a chest system up? I created mine based on on each purchase or creation, the bag creates a file with its own identifier number so it can retain the items when traded and dropped.


Re: Chest - William - 18-02-2008

I made the chest map based, so you can only open it on that map.

If Getplayermap(index) = 295 then
'chest
end if

It's a very simple system, but hey, a chest is very easy to make.


Re: Chest - Becoming - 18-02-2008

be cool if you could do it by map x & y for barrels. Tongue


Re: Chest - William - 18-02-2008

getplayerx and getplayery, takes 2 minutes to do. All I need to do is login and get the location. But I don't want people blocking the chest so I made it for that whole map.