![]() |
|
Star Wolves 3D space RPG with deep strategy and tactical elements |
|
Thread Tools | Display Modes |
#27
|
||||
|
||||
![]()
To add my ship to the others Menu you have to do this:
Open the File "gw.script" in the Scripts\Include\ Folder -- I recommend Notepad++ to Mod Stuff like this! Go to the section marked with Code:
-------------------------------------------------------------------------------- ---- Buy MOTHERSHIP section ---------------------------------------------------- -------------------------------------------------------------------------------- Code:
function DialogR_buy_GW_NOVA_Battleship() _buy_ms_GW("NOVA_Battleship"); end; And Change the Table to this: Code:
local tab_MS = { {"Alien_Dreadnought_0",100}, {"Alien_Frigate_0",100}, {"Mega_Chimera",100}, {"BattleshipImp_GK0",100}, {"Chimera",100}, {"Liner_gw",600000}, {"Mothership",200000}, {"Mothership_corporate",1000000}, {"Mothership_empire",1000000}, {"Mothership_KFNI",200000}, {"Invincible_1",1200000}, {"Mothership_Lion",1200000}, {"Mothership_old",100000}, {"Mothership_uel",1200000}, {"P_transport",100}, {"Starhammer_0",1500000}, {"StoneArrow0",100}, {"AngorFrigate",100}, {"NOVA_Battleship",1} }; ![]() We are finished with this File, Save and Close it. Now open up the file "DialogGW" in the Scripts\Trade\ Folder Go to the DialogMessage "msg_MS_OTHER_list" And add an new DialogAnswer to it. Code:
<DialogAnswer name="ans_MS_OTHER_13"> <answer>#L_DR5_ans_MS_OTHER_13</answer> <lua_function>DialogR_buy_GW_NOVA_Battleship</lua_function> <go_message_name /> <multi_pass>true</multi_pass> <sound_name /> </DialogAnswer> Now were Moving on to the Last File named "DialogGW.loc" found in the LocData\English\ Folder Go to the string named "#L_DR5_ans_MS_OTHER_11" and add another under it Like that: #L_DR5_ans_MS_OTHER_13= NOVA Battleship - 1 credit This is basically the text that will show up on the Dialog where you can buy this From, change it however you Like. Thats it, Here are the End Result Files. Link: https://mega.co.nz/#!5kQj1bjT!LaRpXJ...fgQjy4WYfq02rY -- Explosion Distances are found in the "DistanceDetonator"'s You gotta find out which one is used Tho, Before changing the Code:
<explosion_distance>NUMBER</explosion_distance>
__________________
Discord: Nocalora#6847 | SW3.Expansion Thread | SWX.MouseMovementFix | SWX.TUVMark+Src (.tuv editing Tool) | SWX.SLOTMark+Src (.ini Slots editing Tool) Last edited by nocalora29; 12-28-2014 at 01:27 AM. |
|
|