• 0

    posted a message on [Resolved-sort of] How to get Tooltip/Description info for units, abilitys, items in triggers?
    • Original post quoted below

    Ok I see now how this works

    Example Unit Marine: When you look in the data editor it says its tooltip field is set to "Button/Tooltip/id

    So (for me atleast) it seems units always have a button/tooltip/ prefix then the uints id

    So now I know how to make a function that will return a tooltip for a give unit. Not sure the string path for abilitys tooltips But for now I think I understand how to pull them up within triggers.

    Im gonna try and make some functions that will return a Units Tooltip, Ability Arry, Weap/Attack Tooltips (I dont see any links from the unit data to upgrade data, I onlt see links from upgrades to units ???)

    I will try to post them when I do

    Quote from soulzjd: Go

    Im creating a dialog system (Im using the GUI editor for triggers) What I want is to take the text from tooltips for a given object and display it in some other way

    I had another post with basicly the same problem, http://forums.sc2mapster.com/development/map-development/2113-geting-unit-icons-how/#p6

    I dont know how to find things like "UNIT_TYPE" "UNIT_RACE" "UNIT_NAME" using the acutions/functions in the GUI editor.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Dark Templar - Transmission model by unit type not showing

    The Dark Templar Transmistion Portrait is not working or missing

    Transmission - Send transmission to (Player group(TriggeringPlayer)) from (Unit type Dark Templar (Do override portrait)) playing Hero:Sound Link[tmpInt] with name Hero:Name[tmpInt] and message Hero:Discription[tmpInt] using (Cinematic portrait (Top Left)) playing Talk (Set To 120.0 seconds, Don't Wait until it finishes)

    Normally I have a Hero:UnitType[tmpInt] replacing the "Dark Templar" but to test if it was my code or the code behind this action I changed and set the values manually useing the GUI so I dont know if this is a missing model or missing GUI issue.

    Posted in: Galaxy Editor Bugs and Feedback
  • 0

    posted a message on activating trigger with item?

    I have not looked at items or creation of them but I did see an event for units for when it gains or is given a 'powerup'. I have seen items in maps i was checking out that incressed speed and damage. But I have done so little with the creation of new units/items that I dont know if I would know what to look for lol

    Posted in: Miscellaneous Development
  • 0

    posted a message on Finding a Portrait for a known unit type?

    You said you are working with pure galaxy, I have not look yet but where do I find info on how the code behind the gui looks? I remember for the world editor I could view it some how. Not sure if i can in this one or not.

    As for the data tables how or what are they relitive to like C I know the records are basicly some forum of struct are data tables like a preset db object or just like a colection of globals ?

    Sorry if this post is not making sence its geting late for me hehe

    Posted in: Miscellaneous Development
  • 0

    posted a message on Finding a Portrait for a known unit type?

    @s3rius: Go

    Well I was wanting to use a list of unit types, add them to a drop down list or each on to a button. Then when one is selected popup a portrait for the selected unit type. But I was having issues trying to find a way to find the correct model for a unit type. Even when I just selected the model manually the portrait didnt show correctly (I use Marine and it only showed his feet and it was not the nice 3d looking portrait you get from Transmistions ether)

    I think for now Im going to just use a transmistion portrait. As that works fine for what I am looking for.(not sure if it sends the messeage or anything else in the transmistion to other players or just one like it says)

    As for the data tables and catagorys. I think I understand how to use them to a degree but I dont think I fully understand there uses. Like for example I am assuming you could use one of them to take a unit type and grab any data from it but I dont know how. Like for the transmistions, they use a Sound Link. Well I think is should be possible to use ether data table or catagory to find the Sound Link to the Ready sound for a giving unit but I dont know how. With all the needed conversitons game link to string to text to.... and on and on. Like for text to string there is no text to string at the top level of seting a string variable you have to dig like 2 to 3 functions in to do it but for string to Text its right there.

    I cant wait until months after the game is out since by then the editor will be more idiot proof .... then ill understand it more LOL

    Posted in: Miscellaneous Development
  • 0

    posted a message on Finding a Portrait for a known unit type?

    Is it possible to create a portrait from a unit type on the fly when you dont know the model or even the unit thats going to be needing the portrait?

    Also I am trying to find more info on how to use both data tables and catalog elements of the trigger editor so any other info on good uses for them would be helpful

    Posted in: Miscellaneous Development
  • 0

    posted a message on Is it possible to get info on units from a unit type?

    They have made this very hard to pull a name from a unit!!! I might be able to create a real unit on the map then grab the info I need and remove the unit but i will figure something out :/

    Posted in: Miscellaneous Development
  • 0

    posted a message on Is it possible to get info on units from a unit type?

    @zifoon: Go

    Im dumb or patch change something or we are both missing something lol not sure what but this is what i got

    00:00:00.00 Trigger Error in 'gt_MapInit_Func': Catalog field 'Discription' could not be read (Core: a required object could not be found)

    Variable - Set tmpUnitTooltip = (Value of Units (String(Hero:UnitType[tmpUnitCount])) "Tooltip" for player Any Player)

    Not sure what to do ... I need to look into what these catalogs are and also data tables and how to use them

    Posted in: Miscellaneous Development
  • 0

    posted a message on Is it possible to get info on units from a unit type?

    Heres my goal, to create a dialog that shows a grid of icons for units with the tooltips being the tooltip you would find if you were going to build the unit.

    My problem is I cant seem to find any way to take a unit type and find the tooltip for it and assign it to the dialog item tooltip.

    As for the Icon for the unit I also can not use any actions i know of to take the icon from a unit type ether. Right now I have 2 action script/triggers where I manually send the unit type and image file. how ever it is looking like im going to also have to create my own tooltip with that action script as well :(

    If anyone knows how to find data about a unit when you know the unit type that would be nice, also if anyone knows how to convert a unit type into a string i would like that as well

    Posted in: Miscellaneous Development
  • 0

    posted a message on Geting Unit Icons (how?)
    Quote from PhyzX21: Go

    @s3rius:

    What is exactly is "<image path of the unit here>"? How do you call you the image path of the unit? Can you give an example?

    Thanks

    CButton_Icon Assets\Textures\btn-building-terran-barracks.dds

    The Assets\Textures\btn-building-terran-barracks.dds is the path to the icon for the barracks i found it under art and sound and then buttons .... you can find the same for units as well like

    CButton_Icon Assets\Textures\btn-unit-terran-marauder.dds

    Quote from s3rius: Go

    There's no native for that, but you can use a workaround.

    Thanks I was hoping not to have to add the icons manually

    Posted in: Miscellaneous Development
  • 0

    posted a message on Geting Unit Icons (how?)

    Is it possible yet to make a trigger or custom script that will return a unit types icon?

    I ask since I am trying to create a dialog that I send a list of unit types (using unit group right now) and it will fill the dialog with the icons for each unit as buttons. But it seems right now I can not just simply add a unit to the unit group and instead have to add the unit AND its icon.

    If anyone knows of a way to grab the icon from just knowing the unit type I would like to know how thanks.

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