Posted: Tue Oct 23, 2018 2:08 am Post subject:
AttachEffect and Armor types + buildings problem.
So here's the thing. I've made an AttachEffect super weapon in which it affects certain base defense and by that, I have to use custom ArmorTypes. Here are the codes:
I don't think I need to show the super weapon code since it's working as intended.
The problem is, this base defense with Armor=sentry isn't affected on the AttachEffect. However, my vehicles and infantry with Armor=otherunits are affected. At first, I thought AttachEffect doesn't work on building so I tried to change the verses into this:
Code:
Verses=0%,0%,0%,0%,0%,0%,0%,100%,0%,0%,0%
So basically, I made ALL Armor=steel types must be affected on the AttachEffect. The result is yes they're affected EXCEPT the Armor=sentry one, despite I've listed sentry=steel under ArmorTypes. QUICK_EDIT
Maybe the foundation plays a role here?
Your custom building 2x2 while all normal defenses are 1x1?
I never tested attacheffect so no clue if it works as well with bigger foundations.
Does your building get affected when using default steel armor?
So far your tests haven't really shown the exact place of the error. _________________ SHP Artist of Twisted Insurrection: Nod buildings
Maybe the foundation plays a role here?
Your custom building 2x2 while all normal defenses are 1x1?
I never tested attacheffect so no clue if it works as well with bigger foundations.
Does your building get affected when using default steel armor?
So far your tests haven't really shown the exact place of the error.
Yes, I did say that all buildings with default armor=steel are affected except with the specific custom armor, despite the "custom armor=steel". And they're 1x1:
chr0nicz420 wrote:
At first, I thought AttachEffect doesn't work on building so I tried to change the verses into this:
Code:
Verses=0%,0%,0%,0%,0%,0%,0%,100%,0%,0%,0%
So basically, I made ALL Armor=steel types must be affected on the AttachEffect. The result is yes they're affected EXCEPT the Armor=sentry one, despite I've listed sentry=steel under ArmorTypes.
I also have 2x2 building that has custom armor for this AttachEffect that I made but that building isn't affected too.
TAK02 wrote:
chr0nicz420 wrote:
CellSpread=9999
Didn't the docs say something about large CellSpread values?
EDIT: NVM. I thought the AttachEffect didn't work at all.
I've already done several AttachEffect super weapons with CellSpread=9999 before and they're all working as intended. However, they're all just units. This is my first time of doing an AttachEffect that affects buildings and with custom armor type. QUICK_EDIT
Screw AttachEffect. Can't think of any use for it.
Would you and Omega kindly stop throwing my opinion around? I think I'll end up finding a use for it soon enough after all
@chr0nicz420:
Try with the other ArmorTypes, not a new one, the old ones.
If it doesn't work then, Ares is bugged. Or it's something else... QUICK_EDIT
@chr0nicz420:
Try with the other ArmorTypes, not a new one, the old ones.
If it doesn't work then, Ares is bugged. Or it's something else...
What do you mean by other ArmorTypes? Do you mean the default wood,steel,concrete?
I've already mentioned that I've already tried using the default armor type, particularly steel, and all of my armor=steel are affected on my AttachEffect as intended except the custom armor type, despite the "custom armor=steel" that I've listed under ArmorTypes.
chr0nicz420 wrote:
At first, I thought AttachEffect doesn't work on building so I tried to change the verses into this:
Code:
Verses=0%,0%,0%,0%,0%,0%,0%,100%,0%,0%,0%
So basically, I made ALL Armor=steel types must be affected on the AttachEffect. The result is yes they're affected EXCEPT the Armor=sentry one, despite I've listed sentry=steel under ArmorTypes.
Is this building the firer of the superweapon and needs DamageSelf? It's the only thing that makes possible sense. _________________ "Don't beg for things; Do it yourself or you'll never get anything." QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum