| Blockland Forums > Modification Help |
| Coding Request: Stacking Items |
| << < (3/3) |
| Red_Guy:
--- Quote from: Amade on June 21, 2010, 01:01:37 AM ---Not really. messageClient(%client,'MsgItemPickup',"",%slot,%item); --- End quote --- Im interested in doing the same for one of my own mods - so how would you accomplish this? for instance - set stuff up so the player can pick up 5 hammers. when the pickup the 2nd hammer, it puts a "2" on the player's icon, or the description. How would you do that? |
| Amade:
--- Quote from: Red_Guy on June 21, 2010, 03:50:32 PM ---Im interested in doing the same for one of my own mods - so how would you accomplish this? for instance - set stuff up so the player can pick up 5 hammers. when the pickup the 2nd hammer, it puts a "2" on the player's icon, or the description. How would you do that? --- End quote --- Make a bunch of items with different icons. Alternatively mod the client's tools GUI to have a counter. |
| Butler:
To make is count how many you have in your inventory slot, couldn't you just make like, 10 prints, all numbered from 1-10. Then every time you pick up a new pack. It changes the slot image to the next increasing number. And vice versa for using them. Right? |
| Red_Guy:
--- Quote from: Amade on June 21, 2010, 05:25:47 PM ---Make a bunch of items with different icons. Alternatively mod the client's tools GUI to have a counter. --- End quote --- Horribly inefficent with all the datablocks needed - but yes that would work. |
| Navigation |
| Message Index |
| Previous page |