I can't get AttachEffect to work

Asked by Templarfreak

Has this been implemented yet? I try to use AttachEffect and it doesn't work. Here's my code:

[GENERICWH]
CellSpread=5
PercentAtMax=.5
Wall=yes
Wood=yes
Verses=0%,0%,0%,0%,0%,0%,0%,0%,0%,0%,0%
Conventional=yes
Rocker=no
AttachEffect.FirepowerMultiplier=10.0
AttachEffect.ArmorMultiplier=1.1
AttachEffect.Cumulative=Yes
Tiberium=no
Sparky=no

It doesn't seem to work for me, so it's obvious I'm either doing something wrong or it's not in 0.4 yet...

But this says "New in 0.4" so I'm guessing it's not in there yet...?
http://ares-developers.github.io/Ares-docs/new/attacheffect.html

Question information

Language:
English Edit question
Status:
Solved
For:
Ares Edit question
Assignee:
No assignee Edit question
Solved by:
Templarfreak
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
Graion Dilach (graiondilach) said :
#1

Yes, AttachEffects are not applied on 0% verses. Neither does EMP or other Ares effects tbh.

Revision history for this message
Templarfreak (nodtrooper32) said :
#2

That doesn't help, I also tried putting it on the Super Weapon that this is attached to and it doesn't work...

[GenericSWSpecial]
UIName=Name:SuperWeapon
Name=SuperWeapon
IsPowered=true
RechargeTime=0.1
Type=GenericWarhead
SidebarImage=
ShowTimer=no
DisableableFromShell=no
AttachEffect.Duration=-1
AttachEffect.FirepowerMultiplier=10.0
AttachEffect.ArmorMultiplier=1.1
AttachEffect.Cumulative=Yes
Cursor.Frame=431
Cursor.Count=1
SW.AnimationVisibility=all
SW.AffectsHouse=team
SW.ManualFire=Yes
SW.Warhead=GENRICWH
EVA.Activated=EVA_UnitFirePowerUpgraded

Revision history for this message
Templarfreak (nodtrooper32) said :
#3

I am completely certain I am using 0.4. Does it go on the Warhead and the VS has to have at least 1% or something? o.o

Revision history for this message
Graion Dilach (graiondilach) said :
#4

Yes, Warhead needs to have at least 1% verses against intended target to get the AttachEffect applied to it. The exact percentage does not matter as long as it's not 0%.

Revision history for this message
Graion Dilach (graiondilach) said :
#5

wait... why the hell do you added AE tags to your superweapon?! Get those out, they're warhead tags, duh.

Revision history for this message
Templarfreak (nodtrooper32) said :
#6

Uh, sorry. Did not know, it's not very specific on the Documentations page. xD

Revision history for this message
Templarfreak (nodtrooper32) said :
#7

Thanks Graion Dilach, that solved my question.

Revision history for this message
Templarfreak (nodtrooper32) said :
#8

One more quick question, for Type=GenericWarhead, do I need an Action= tag, and if so what's it's action?

Revision history for this message
Graion Dilach (graiondilach) said :
#9

"AttachEffect tags can be applied to both the Big Four (all TechnoTypes) and Warheads, unless stated otherwise."

Second sentence. It's there.

Revision history for this message
Graion Dilach (graiondilach) said :
#10

No, you don't really need to use Actions on new SWs, they're just for mouse defaults.

Revision history for this message
Templarfreak (nodtrooper32) said :
#11

Okay, it still won't work. It's suppose to be set up like this, right?

[MINDHAZEWH]
CellSpread=5
PercentAtMax=.5
Wall=yes
Wood=yes
Verses=!%,!%,!%,!%,!%,!%,!%,!%,!%,!%,!%
AttachEffect.Duration=-1
AttachEffect.FirepowerMultiplier=10.0
AttachEffect.ArmorMultiplier=1.1
AttachEffect.Cumulative=Yes
Conventional=yes
Rocker=no
Tiberium=no
Sparky=no

[MindhazeSpecial]
UIName=Name:GenericSW
Name=GenericSuperWeapon
IsPowered=true
RechargeTime=0.1
Type=GenericWarhead
SidebarImage=INJCICON
ShowTimer=no
DisableableFromShell=no
Cursor.Frame=431
Cursor.Count=1
SW.AnimationVisibility=all
SW.AffectsHouse=team
SW.ManualFire=Yes
SW.Warhead=GenericWH
EVA.Activated=EVA_UnitFirePowerUpgraded

Revision history for this message
Templarfreak (nodtrooper32) said :
#12

*Facepalm* It's an ! instead of 1...Hold on, lemme test it one more time.

Revision history for this message
Templarfreak (nodtrooper32) said :
#13

Okay, thanks for all the help. It's fixed now and functioning.