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 ???)
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
So the Catalog Field Value Get returns the path to the field you are wanting, and the Field Path parameter is acually the Field name the Path is located, on top of that the path has a id so the Entry parameter is accually that id.
So to me Catalog Field Value Get SHOULD be set like this
Catalog = This points to the table or data type you are wanting to look at buttons/abilitys/units etc Entry = ObjectID - The ID of the Object Field Path = Field Name - Its not a path like Button/Tooltip its the Name of the Field that HOLDS the path
Theres a problem thou NOT all Fields in the data editor hold paths some hold to the data itself. So I guess that the other Catalog funtions help determine if the Field Path is a path or real data. Any ways this confuses the heck out of me but at least I now understand how this function.
So I created a Function of my own that returns the Tooltip for a Unit. I am going to be making more for other data as i find a need for them.
Here is the GUI Funtion For grabing a Units Tooltip (Copyed as Text)
Sorry to revive a dead topic, but for anyone wondering... To grab the tooltip via catalogs you would need to parse the path that the catalog gives you using StringExternal
Trying to find "Game text for" or "StringExternal" in the editor but is unable to figure out witch option I'm supposed to take.
I'm often stuck at stupid things like this, there is a perfect fine code above but I can never find the function names for it in the editor. It's not called anything with "game" or "string", tested all of them i think so what is it named? Is there a smarter way for me to find out this then by asking you guys for it, its such a silly question that i should know by now.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
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
So the Catalog Field Value Get returns the path to the field you are wanting, and the Field Path parameter is acually the Field name the Path is located, on top of that the path has a
id
so the Entry parameter is accually that id.So to me Catalog Field Value Get SHOULD be set like this
Catalog = This points to the table or data type you are wanting to look at buttons/abilitys/units etc
Entry = ObjectID - The ID of the Object
Field Path = Field Name - Its not a path like Button/Tooltip its the Name of the Field that HOLDS the path
Theres a problem thou NOT all Fields in the data editor hold paths some hold to the data itself. So I guess that the other Catalog funtions help determine if the Field Path is a path or real data. Any ways this confuses the heck out of me but at least I now understand how this function.
So I created a Function of my own that returns the Tooltip for a Unit. I am going to be making more for other data as i find a need for them.
Here is the GUI Funtion For grabing a Units Tooltip (Copyed as Text)
Here is the Script behind it
Sorry to revive a dead topic, but for anyone wondering... To grab the tooltip via catalogs you would need to parse the path that the catalog gives you using StringExternal
Trying to find "Game text for" or "StringExternal" in the editor but is unable to figure out witch option I'm supposed to take.
I'm often stuck at stupid things like this, there is a perfect fine code above but I can never find the function names for it in the editor. It's not called anything with "game" or "string", tested all of them i think so what is it named? Is there a smarter way for me to find out this then by asking you guys for it, its such a silly question that i should know by now.