| 12-14-2003, 05:34 PM | #1 |
ok need help bad, my project is stuck... i need to find a way to find out how many of an item is for sale at a building. What i am doing. I have an item called people that gets another in stock every 5 seconds, with a max of 10000, if it builds up to a certain number, it upgrades to the next building type. So what i need to know is how to set, get, and basically manimpulate the number of charges of an item. Thx for help in advance. |
| 12-14-2003, 06:27 PM | #2 |
I'm no trigger expert but i geuss you need a varible, That goes +1 every 5 seconds (To work like the item) and when a item is bought to go -1 then when it reaches a certain number a upgrade is started. |
| 12-14-2003, 06:32 PM | #3 |
what you could do is have it not actially check. Have an intiger, every 5 second set it +1, basicly like what thet other guy said. To manipulate the number of items in stock is to remove the item from the store then put it back at the desired stock, the problem i see with doing it like that will reset its charge time(or whatever you would call it). These are under the neutral building triggers. |
| 12-14-2003, 06:38 PM | #4 |
oh god, this is gonna be soooooo gay, cause there isn't anyway to make linked lists... see each one of the 12 players can have upto 300 citys... (would make maximum population 3,000,000) but if i have 300 citys per player that is gonna be an array of 3600 ints, you guys sure there is no other way.... OHHHHHHHhh i got one for myself lol. heres what i recomend to anyone trying this for self.... make buildings mana corispond to amount!!! that way u can detect the mana, and have it work that way :P well thx for help anyway |
