Ok so Im making a market system in my game where players can make stuff with their job and then sell it to other players. I have it set up where they put the item up on the market at a certain price. And then all other players can view it.
What I cant figure out how to do is display all items on the market to a buyer and allow them to choose an item. I was thinking of making a pop up grid and that would display all the information, but not sure how to do the verb so they can only see the buy verb when looking at this grid.
ID:160649
Aug 6 2008, 4:44 am (Edited on Aug 6 2008, 6:07 am)
|
|
Aug 6 2008, 9:23 am
|
|
Make it so theres a wall/desk/something with density blocking the buyers from the obj
|
In response to Quiet Screams
|
|
Actually that isnt exactly what I was refering too. They arent gonna be anywhere near the actual object they are just gonna see a list of items and select what they want to buy.
But i figured out a way, i used the click command and added it to a grid so when they click on it in the grid it ask them if they want to buy it. But thanks for the input |
In response to NightJumper88
|
|
Also remember that checking boolean vars (true or false) is better than using ==1 or ==0/null/"".
|
In response to NightJumper88
|
|
Alright. I hope i helped a little xD I'll use that code for my game.
|
Something like this could work:
mob/verb Only add the verb if the player is viewing the window. You could also prevent players from closing the window by disabling it in the interface and making your own close button, which calls hide-market-window. |
In response to Android Data
|
|
Can't the window be closed by ALT-F4, regardless, though?
|