| 01-07-2003, 04:14 AM | #1 |
Hi all. Something very annoying I'm noticing. I have a map, and when someone leaves, it distributes that players units to everyone else remaining in the game. Works great. Problem is, if say that person had an upgrade for a tower like Magic Sentry, and you got one of his towers in the distribution, you now have Magic Sentry even though you haven't researched it. Any ideas on how to get around this without massive triggers? I've tried setting different aspects of alliance, but the only way I can think of is to create an array of upgrades purchased, and force them on the appropriate users when someone leaves (but I don't want to have to do that if at all possible). |
| 01-07-2003, 07:38 AM | #2 |
You're going to need to check for those researches in the triggers when the player leaves, and if they did research it, make those abilities be researched for the player recieving the units that have them. |
| 01-07-2003, 04:34 PM | #3 |
I was afraid of that. Thanks for the for the bad news. :ggani: |
| 01-08-2003, 04:28 AM | #4 |
Unfortunately, it's a no go. Whenever someone leaves and I get a unit with say web, I still get it. I've tried resetting the research level to 0, but I still have it. Removing the ability completely prevents me from even using it even when I upgrade it. Anybody have any ideas? |
| 01-08-2003, 06:42 AM | #5 |
I resolved the problem. I played around and found out that only true abilities are inherited, not unit upgrades such as attack/armor, etc... So I just created an array to keep track of what ability upgrades players made and forced a disable of an ability for that player if they haven't researched it yet. Works like a charm now. |
