| 09-14-2002, 07:27 PM | #1 |
| 09-15-2002, 04:48 AM | #2 |
Simple :) There are two things you can do. The 1st is the easy way, where you don't give the player their money back. Simply replace the building with the same building with relative hp/mana (this is an option in the replace unit action). The harder way, if you want to give them their gold back is this: Event Unit is issued an order with no target Condition Ordered unit is equal to your builiding order is equal to make builder Action If number of builders + number being built is greater than or equal to five, replace building and give player gold cost of unit else do nothing ...now, replacing the building may give them back the money anyway, in which case you won't need the above, but I'm not sure, I haven't tested it. |
| 09-15-2002, 08:03 AM | #3 |
Now the real question how do we implement a real queue? Hehe, where is blizzard's Arraylist Class? Where is its container hierachy? What abstractlist do we extend? hehe. Seriously though, i just have to take a minute to say that this has to be the most powerful game editor ive ever seen. Its just amazing what custom mods people can create! Anytime someone talks about making an RTS into an FPS, you know you have extreme flexibility. Kudos to blizzard, the company who has yet to make a bad game ;) - jason Oh hey Magos, I had another idea of how you can do this as well. Make a type of unit selection system that you see in the hero castle sieges. In other words, you have a pesant and a set of circles that correspond to the units you are buying. When you want to buy something, you move your pesant onto that circle and then you decerement your players gold and start a timer (to simulate the waiting to buy the unit). The timer only activates if you have 4 or less of that type of unit on the map already. So if you leave the pesant on, its like having a queue, that only deducts gold every time a unit is created. I hope that might spur an idea or two, post here if you have questions about the implementation. - jason |
