| 05-22-2007, 12:00 AM | #2 |
It's because all the abilities have the same Order Id. The problem is that when a unit is ordered to use one ability, it will use all the abilities it has that have the same Order Id. The only way I can think of a workaround is creating dummy abilities (which wouldn't say how much gold/wood the ability would cost) to give to your builder unit. Then you'd have to detect what ability was to be cast and create a dummy unit with the correct spell and order it to build. |
| 05-22-2007, 12:54 AM | #3 |
I was thinking about that too. Well sorta. Only issue is: When you want to place a building, the target building you are placing isnt the appropiate. What about those ID's. Can i change those id's somehow? Thnx for the reply though! |
| 05-22-2007, 01:20 AM | #4 |
You can change the Order Id of any spell, but it will not affect anything. The only spell that changing the orderid for is "Channel". The best solution I can think of right now is to make the builder unit a "worker" like a peon/peasant. Then you'd simply make it build the appropriate units and make sure those units have an instantaneous build time (0.5 seconds or something). I also just realized that using dummy abilities wouldn't show the grid where the building would be placed. |
| 05-22-2007, 01:28 AM | #5 |
Wow, that was the best thread starter I've seen in awhile.. most sound like the writer of it is just learning the ABCs.. I believe the easiest way to do it would be just to base them off dummy abilities which are ground targeted, such as shockwave. This doesn't show the dummy unit on a grid like the other spell can, but it would still work. Trigger the creation of the unit, using Create unit at target point of ability being cast. |
| 05-22-2007, 01:31 AM | #6 | |
Quote:
|
| 05-22-2007, 09:55 PM | #8 |
One possible workaround could be that you owuld only have a single spell on oyur unit to create some generic building, and then allow that building to be upgraded into any of the 8 buildings needed. That might not fit with what you want to achieve, the buildings may have different pathing maps and other such problems, but if you don't have these problems then this would be the easiest solution, doesn't require any triggers. |
| 05-22-2007, 10:10 PM | #9 |
That was my first sollution indeed. I always can't cope with the restrictions the editor got for me... I hereby thank you guys for the help. I know what to do to work around. I have chosen this workaround: 8 dummies. triggers wich ability is used. Builds something, and upgrades it automatically into the correct building. Thnx for all the help! last question is: I have used some of the models. Where do i put the credits? And is there any group of programmers i can join to dedicate to and release my map with that name? |
| 05-23-2007, 05:19 AM | #10 | |
Quote:
|
