your triggers make no sense, you have if then else but you dont do a then, you do an if and a else but the else is suppose to be if it fails. what exactly are you trying to do?
To set the unit's custom value of 0 to a string, the if then else' work i have them for 50 other triggers on my map.
Well, a lot of the unit's weapons are called differently than the actual unit. E.g. the Zergling's weapon is called Claws, the Marine has the GaussRifle.
Is it ok for you with these names or do you need a system where you write a unit name and get it's weapon?
I need a system where you write a unit name and get it's weapon. Like weapon 1.
Well it works with all units. But you cannot add most weapons to the unit.
IE: i can add a firebat's weapon to a SCV, but not a Zergling's weapon to an SCV.
:o
If your doing a get catalog feild value it would be
Weapon , weapon name, field value name / array value position if the field is an array of values
Okay, well to make it easier, i'm trying to make a trigger where if a player type @addweapon Marine. It will add the weapon that a marine has, to the selected unit. Couldn't be more specific.
/RAGE!!!!
Okay, seriously though. I am trying to call up a weapon with a string. So to put it as to specify what i am doing. I'd be doing @weapon UnitWhoCarrysWeaponName.
But game link wants me to get an actual unit. I don't have a unit, i want to refer to what weapon that unit of type uses. I'm confused, if that made any sense at all please help :P.
0
Ignore all that if then else stuff. Just focus on the actual trigger part.
0
To set the unit's custom value of 0 to a string, the if then else' work i have them for 50 other triggers on my map.
0
@ShakiShingi: Go
The part where it displays the message i have figured out. Just not the naming part :( please help.
0
@ShakiShingi: Go
Bump And to add to that, it works for a number (ik it's because it's a real). But i want it to work for a string / text. I am mega confused.
0
Ya i need help. I'm bad at explaining exactly what i need so i'll just post my triggers lmao. Pastebin: http://paste.sc2mapster.com/bri4v5x8sgn6zmle/
0
Thanks works perfectly :).
0
I need a system where you write a unit name and get it's weapon. Like weapon 1.
0
@s3rius: Go
No i'm trying to do it by the name of the unit. And i did try that and it didn't work sometimes :O
0
@s3rius: Go
Well it works with all units. But you cannot add most weapons to the unit. IE: i can add a firebat's weapon to a SCV, but not a Zergling's weapon to an SCV. :o
0
@ShakiShingi: Go
bump :O
0
bumpage This works, but not entirely, Can someone explain/fix?
0
It only works for some units.. But thanks :)
0
Bump
0
Okay, well to make it easier, i'm trying to make a trigger where if a player type @addweapon Marine. It will add the weapon that a marine has, to the selected unit. Couldn't be more specific.
0
/RAGE!!!! Okay, seriously though. I am trying to call up a weapon with a string. So to put it as to specify what i am doing. I'd be doing @weapon UnitWhoCarrysWeaponName. But game link wants me to get an actual unit. I don't have a unit, i want to refer to what weapon that unit of type uses. I'm confused, if that made any sense at all please help :P.