• 0

    posted a message on {Trigger} Allowing the creation of only ONE kind of unit (Like the Mothership)

    This is an old post but I came across it in my initial search to create similar functionality. I did not see this under frequently asked questions, but the solution is simple.

    First create a new requirement. Modules->Data->Requirements, Duplicate or Add new.

    Under Requirement+, switch to express view and enter something like the following:

    CountUnit(yourunitid,QueuedOrBetter) == 0{You can only build one}[TechTreeCheat]
    

    You can also add research requirements etc in this same field by appending:

    && CountUpgrade(yourupgradename,CompleteOnly)
    {Research this at your special building name}[TechTreeCheat]
    

    Once the requirement is created, go to the ability and open Ability:Commands+ and select the requirement you created under the requirements section.

    On a side note, a search for "unique unit" in the forum would display the post below which also describes the solution I mentioned. "unique unit" and "mothership" may be good keywords to use if this is later created under the FAQ.
    http://www.sc2mapster.com/forums/development/map-development/5111-unique-unit-type/

    Posted in: Triggers
  • 0

    posted a message on Two show hero icons and one does not

    Resolved.

    Reviewed data in xml and compared between units and noticed the following tag.

    <FlagArray index="Hero" value="1"/>
    

    This was missing from ghost. Added and hero icon is now visible.

    Not sure where this value is controlled in the editor, but props to Blizzard for letting me see raw xml.

    Posted in: Data
  • 0

    posted a message on Two show hero icons and one does not

    The two units that show icons are duplicated from heroes. The one that does not is duplicated ghost. Something simple overlooked?

    http://s14.postimage.org/pfqn7yc9p/20120628_heroiconissue.jpg

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