| 10-08-2005, 03:07 AM | #1 | |
Ok, i made an ability where, once the unit uses it it is supposed to upgrade the units Battle Experience and Command Aura Abilities and take out the costs of lumber accordingly. A bug that has seemed to spring up right when i thought I finished it is when you use it whiole having 2 units selected, one of the units it is used for 4 times, while the other none. I have no idea why this is happening, the ability TRAIN is based on beserk. Also if anyone knows how to make it so the little box for beserk doesn't apper on the bottom would be great. Quote:
|
| 10-08-2005, 04:39 AM | #2 |
Making the TempUnitGroup and looping through it is causing the problem. Each unit selected is casting Train(Beserk), so the event fires off once for each unit. Just take out the looping, it's not necessary, unless you want units that don't have Train to get trained... |
| 10-08-2005, 08:53 AM | #3 |
If you only want it to be used on one unit, do like differ said. If you want it to be used for all units selected, youll have to change every (Casting unit) to (Picked unit) |
| 10-08-2005, 06:47 PM | #4 |
You have two problems: first of all, you do stuff for casting unit instead of picked unit, so for each unit selected, the casting unit gets a bonus. Secondly, due to cast event responses bug, when multiple units cast the spell at the exact same time, when the trigger for the first one runs, the "casting unit" is already pointing to the one from the second unit (at least, that's how I would explain the whole thing). |
