#Two tags cant be added to a unit through scripting

1 messages · Page 1 of 1 (latest)

dreamy kelp
#

Uhhhhh title explains it?

languid sequoiaBOT
#
Thank you for reporting a bug

Please make sure your report contains all required information to quickly reproduce this issue!
If you see this and noticed a similar problem, feel free to provide additional information.

#
⬜ Open
celest glade
#

Just tested this and it worked fine.

#

Please note that tags have to be unique. So adding the same tag multiple times to a unit will not work

dreamy kelp
#

weird

#

i did that

#

did not work

quiet mantle
#

Show script

dreamy kelp
#

i figured it out

#

i forgot to say that

#

so uhhhh you have to put in BOTH TAGS when using a hastag (with a space in between) for it to detect both

celest glade
#

I think you are doing something wrong. If you have to put both tags with a space, you must have added them as a single tag

#

For instance AddTag with "Tag1 Tag2" will be one tag. So HasTag with "Tag1" will be false, but HasTag with "Tag1 Tag2" will be true

dreamy kelp
#

i dont know

celest glade
#

Do you have a screenshot of the script?

dreamy kelp
#

uh yeah lemme get it

#

heeeeere

#

two addtags

celest glade
#

Okay, so first thing that's very risky is that the second add tag is not connected to the ReplaceWithPassive node.
There is no guarantee that both tags will be added before the unit is replaced.

dreamy kelp
#

hmm

#

but

#

wait

#

then how come both tags are added as one?

#

If they may not have been added at all?

celest glade
#

I dont know. Based on the code behind that node it's literally impossible. Do you have the complete map? I would like to debug to see all of the script in action

dreamy kelp
#

uh sure

#

one second