Thread: Modding SW3?
View Single Post
  #270  
Old 06-13-2010, 10:15 AM
Goblin Wizard Goblin Wizard is offline
Approved Member
 
Join Date: Oct 2008
Posts: 508
Default

If you use my mod, you can easily change ship you want to buy.

Example: gw.script file. Only two changes are needed.

1.
Code:
function DialogR_buy_Gunslinger_mk2_black0()
  buy_fig("Gunslinger_mk2_black0");
end;
This function is activated when you choose to buy a Gunslinger T in the maintenance station menu. If you want to buy alien fighter change the "Gunslinger_mk2_black0" to "A_Fighter_0"
Below you will find the table:

2.
Code:
local tab_FIG = {
	{"Gunslinger_mk2_black0",280000},
        --//--
	{"AngorFrigate_f",100}
	};
Do the same as before, change the "Gunslinger_mk2_black0" to "A_Fighter_0".

If you want your fighter as additional menu entry you have to add new dialog answer in the DialogGW.xml, make additional function like in 1. and add new line in the fighters table 2.
Reply With Quote