• 0

    posted a message on Say Command

    Ignore all that if then else stuff. Just focus on the actual trigger part.

    Posted in: Triggers
  • 0

    posted a message on Say Command
    Quote from darkdemondd: Go

    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.

    Posted in: Triggers
  • 0

    posted a message on Say Command

    @ShakiShingi: Go

    The part where it displays the message i have figured out. Just not the naming part :( please help.

    Posted in: Triggers
  • 0

    posted a message on Say Command

    @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.

    Posted in: Triggers
  • 0

    posted a message on Say Command

    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/

    Posted in: Triggers
  • 0

    posted a message on Damn you game link!

    Thanks works perfectly :).

    Posted in: Triggers
  • 0

    posted a message on Damn you game link!
    Quote from s3rius: Go

    @ShakiShingi: Go

    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.

    Posted in: Triggers
  • 0

    posted a message on Damn you game link!

    @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

    Posted in: Triggers
  • 0

    posted a message on Damn you game link!

    @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

    Posted in: Triggers
  • 0

    posted a message on Damn you game link!

    @ShakiShingi: Go

    bump :O

    Posted in: Triggers
  • 0

    posted a message on Damn you game link!

    bumpage This works, but not entirely, Can someone explain/fix?

    Posted in: Triggers
  • 0

    posted a message on Damn you game link!
    Quote from s3rius: Go

    Hurray for something GUI doesn't seem to be capable of - sorry, chap.

    But behold the might of Galaxy, there is a simple solution:

    Add a Weapon Via String
        Events
            Game - Player Any Player types a chat message containing "@addweapon", matching Partially
        Local Variables
            weaponName = (Word 2 of (Entered chat string)) <String>
        Conditions
            (Word 1 of (Entered chat string)) == "@addweapon"
        Actions
            Unit - Add lv_weaponName to (your selected unit) using turret Fixed Right
    

    As a weapon you select Custom Script and then enter the name of the string variable that holds the weapon string (add a lv_ in front of it).

    It only works for some units.. But thanks :)

    Posted in: Triggers
  • 0

    posted a message on Damn you game link!

    Bump

    Posted in: Triggers
  • 0

    posted a message on Damn you game link!
    Quote from SouLCarveRR: Go

    @ShakiShingi: Go

    Your post makes no sense.

    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.

    Posted in: Triggers
  • 0

    posted a message on Damn you game link!

    /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.

    Posted in: Triggers
  • To post a comment, please or register a new account.