Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > Star Wolves

Star Wolves 3D space RPG with deep strategy and tactical elements

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 07-23-2010, 10:21 AM
Goblin Wizard Goblin Wizard is offline
Approved Member
 
Join Date: Oct 2008
Posts: 508
Default

You can buy Loin MK2 now. I suppose you want to add other version of lion mk2 so...
  • 1. Adding new dialog entry. ..\Data\Scripts\Trade\DialogGW.xml

    Look for message "msg_MS_ORG_list". Below you'll find few dialog answers. E.g.
    Code:
    <DialogAnswer name="ans_MS_ORG_07">
      <answer>#L_DR5_ans_MS_ORG_07</answer>
      <lua_function>DialogR_buy_GW_Mothership_uel</lua_function>
      <go_message_name />
      <multi_pass>true</multi_pass>
      <sound_name />
    </DialogAnswer>
    Copy and paste this part below. Change it to something like this:
    Code:
    <DialogAnswer name="ans_MS_ORG_08">
      <answer>Lion Mk2 by stivoknis</answer>
      <lua_function>DialogR_buy_Mothership_Lion_mk2</lua_function>
      <go_message_name />
      <multi_pass>true</multi_pass>
      <sound_name />
    </DialogAnswer>
  • 2. modifying buy script ..\Data\Scripts\include\gw.script

    Look for function "_buy_ms_GW(nameMS)". Above this function you'll find several buy functions which are executed by dialog e.g.:
    Code:
    function DialogR_buy_GW_Mothership_uel()
      _buy_ms_GW("Mothership_uel");
    end;
    Copy/paste. You need the function to look like this:
    Code:
    function DialogR_buy_Mothership_Lion_mk2()
      _buy_ms_GW("Mothership_XXX");
    end;
    The "Mothership_XXX" is the name of the ship from the ..\Data\Game\Carcasses.xml.

    add new mothership to the table inside function "_buy_ms_GW(nameMS)" e.g.:
    Code:
    {"Mothership_XXX",1200000},
    the 2nd value is a price.
Generally, that's all. You can make any ship mothership this way but if you want full functionality (hangars, tractor beams, etc.) you will have to change many more things.
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:31 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.