Adding help rolling text for a new unit

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

Adding help rolling text for a new unit

Postby bofhlusr » 13 Feb 2015, 02:27

I'm new to FAF so I'm not sure if this is the correct place to post this. If not, I apologize, but since the FA forums in the official website is basically inactive, I didn't know where else to post.

In FA, when you roll the cursor over a unit that you want to build in a factory, a pop-up shows up with a *detailed* description of the unit.

I've checked the files in \gamedata\lua.scd (unitdescription.lua) and in \gamedata\ lua_US.scd (strings_db.lua) but for some reason, I cannot get the rollover for a unit I imported from a mod.

Thanks.
bofhlusr
Crusader
 
Posts: 19
Joined: 02 Feb 2013, 06:43
Has liked: 4 times
Been liked: 1 time
FAF User Name: faforever

Re: Adding help rolling text for a new unit

Postby bofhlusr » 13 Feb 2015, 18:38

I've figured it out myself. To add cursor roll-over help text to a unit in the menu simply edit the C:\FA\mods\My_mod\units\my_unit.bp blueprint file and add an Abilities section under the display section.

For example:

...
Description = '<LOC UEL007_desc>My Super Tank',
Display = {
Abilities = {
'My new super laser tank coments' ,
'Example comments, note the apostrophe and commas',
'Text will pop-up when cursor rolls over the unit',
'MaxRadius = 31 (originally 15)',
'Damage = 100 (originally 50)',
},
Mesh = {
IconFadeInZoom = 130,
...

Enjoy!
bofhlusr
Crusader
 
Posts: 19
Joined: 02 Feb 2013, 06:43
Has liked: 4 times
Been liked: 1 time
FAF User Name: faforever


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest