• 0

    posted a message on Change Marine's weapon model

    Hello, everyone. I'm building a map where I have a few custom units, and one of them is a Marine (a War Pig, actually) who is a sniper. I changed the weapon data, so it shoots like a Ghost and even uses the Snipe skill. But I would like to know if there's a way for me to (maybe using attachment points in the model?) change the Gauss Rifle shown in the character model to a Sniper Rifle (either the Ghost's, the Spectre's or Jim Raynor's, whichever works best)

    Posted in: Miscellaneous Development
  • 0

    posted a message on Newbie Wednesday- Ask Questions!

    How do I get the last clicked unit?

    Posted in: General Chat
  • 1.86779136741805

    posted a message on Third Person Shooter (TPS) engine - Download if you need one

    Hey, everyone. I tweaked it around, and here's the result:

    Features:

    • Includes Samwise210's modifications (Air Units and All Players can be targeted)
    • You can choose any ground unit for PlayerUnit tweaking just one variable.
    • Friendly Fire (And allies will not fight you back).
    • Ghosts can use Cloak skill.
    • Melee
    • Rapid Fire
    Posted in: Triggers
  • 0

    posted a message on How to get Game Link - Effect?

    Hey, I just found the solution. I used UnitWeaponGet instead of the catalog, and it worked wonders. I can get any unit's weapon now. Had to create a "WeaponToString" function though. I'll post the map when I'm done with it :D Thanks a lot!

    Posted in: Triggers
  • 0

    posted a message on How to get Game Link - Effect?

    Okay, let me go through my findings: StringToText(UnitToString(inputUnitB)) works. I set it to send a chat message, and I received the unit in question.

    SetVariable(effectString, (CatalogFieldValueGet(c_gameCatalogWeapon, weaponUnitValue, "DisplayEffect", c_playerAny))) doesn't seem to work, though. When set to send a message, it says "no text found in parameter"...

    Posted in: Triggers
  • 0

    posted a message on How to get Game Link - Effect?

    I think my version of the SC2 Editor is either bugged or outdated. It's 1.4.1, and I can't get Convert Game Link to String to work... When I check the generated code for the triggers, the function is empty. It's just a pair of parenthesis with the parameter in the middle, without calling the function before...

    Posted in: Triggers
  • 0

    posted a message on How to get Game Link - Effect?

    Just like the String to GameLink you provided, but with different value types.

    Return type String
    New parameter, type Unit called InputUnit
    New Local Variable called Type = (Unit type of InputUnit) <Unit Type>
    New action, type Custom Script (return lv_type;)

    Posted in: Triggers
  • 0

    posted a message on How to get Game Link - Effect?

    This part is working, now. My problem seems to be with getting WeaponUnitValue = CatalogFieldValueGet(Units, Unit To String(InputUnit), "WeaponArray[0]", Any Player) <String> to work... Unit To String takes a Unit and gives back a string based on it's UnitType. But ingame I get an error saying that "entry" wasn't found in the CatalogFieldValueGet, so there's something going wrong in that Unit To String

    Posted in: Triggers
  • 0

    posted a message on How to get Game Link - Effect?

    Got it right, now, removed "effect2" altogether and put "return StringToGameLink(effectString);" as the last action of the function. But I still can't get the effect.. Something's not right with one of the "CatalogFieldValueGet" functions...

    Posted in: Triggers
  • 0

    posted a message on How to get Game Link - Effect?

    @Kueken531: Go

    Didn't work. Syntax error when doing lv_effect2 = StringToGameLink(effectString);

    And I searched, looks like there's only for GameLink to String, but not the inverse...

    Posted in: Triggers
  • 0

    posted a message on How to get Game Link - Effect?

    I think I got as close as I could, but I get a Syntax Error at the line where it tries to do

    Effect2 = EffectString
    


    I'm pretty sure that's because the Effect2 is a GameLink-Effect variable, and EffectString is a String variable, and it won't convert. I just need to know how to convert it...

    Posted in: Triggers
  • 0

    posted a message on How to get Game Link - Effect?

    Thanks a lot, guys. This helped me progress, but I'm still stuck. While I (think) I've got the correct field path for Weapon (WeaponArray[0]) I can't find the field path for Damage Effect.

    Posted in: Triggers
  • 0

    posted a message on How to get Game Link - Effect?

    Hey, everyone. Just started dabbling with SC2 Map Editing today, and had fair progress, but I got stuck in a small problem: I need to get the Game Link - Effect of an unit's base attack (and if possible, of any other ability, etc.) It's something that must be done automatically, because it can be any unit, so it's no use just choosing the correct effect for it. You think this would be possible? How would I do it?

    PS. I did use the search function, so sorry if that was already posted. The keywords I used were yielding a lot of unrelated results, found nothing of this.

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