From efd0dc05b6feabacd3602fbabcf17d52ff2d2523 Mon Sep 17 00:00:00 2001 From: Wanne Date: Fri, 18 May 2012 10:05:05 +0000 Subject: [PATCH] - Added new example and usage of a new LUA Method called "HireMerc()" where we can hire a specific merc by the LUA method call git-svn-id: https://ja2svn.mooo.com/source/ja2_v1.13_data@1427 4f8fa57e-7814-0410-bad4-adc449f26b7c --- gamedir/Data-1.13/Scripts/GameInit.lua | 6 ++++++ gamedir/Data-UB/Data-Files/Scripts/GameInit.lua | 6 ++++++ gamedir/Data/Scripts/GameInit.lua | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/gamedir/Data-1.13/Scripts/GameInit.lua b/gamedir/Data-1.13/Scripts/GameInit.lua index f61a538fa..dcf673afc 100644 --- a/gamedir/Data-1.13/Scripts/GameInit.lua +++ b/gamedir/Data-1.13/Scripts/GameInit.lua @@ -84,6 +84,9 @@ http://www.legion.zone.zg.pl/doku.php/modowanie/ja/art_ja_m_22_lua ubSender - uiIndex from SenderNameList.xml iCurrentIMPPosition - Default = -1, or the profile ID of the IMP iCurrentShipmentDestinationID - Default = -1, or the Bobby Ray shipment destination ID + + - HireMerc (MercID) + hires the merc with the specified MercID ************** @@ -143,6 +146,9 @@ http://www.legion.zone.zg.pl/doku.php/modowanie/ja/art_ja_m_22_lua -- Add alternative sector C1-3 AddAltUGSectorNew(3,1,3) + + -- Hire Ivan + HireMerc(7) ]] -- max number of lines can be shown in a message diff --git a/gamedir/Data-UB/Data-Files/Scripts/GameInit.lua b/gamedir/Data-UB/Data-Files/Scripts/GameInit.lua index d8199e650..f7478fbf4 100644 --- a/gamedir/Data-UB/Data-Files/Scripts/GameInit.lua +++ b/gamedir/Data-UB/Data-Files/Scripts/GameInit.lua @@ -84,6 +84,9 @@ http://www.legion.zone.zg.pl/doku.php/modowanie/ja/art_ja_m_22_lua ubSender - uiIndex from SenderNameList.xml iCurrentIMPPosition - Default = -1, or the profile ID of the IMP iCurrentShipmentDestinationID - Default = -1, or the Bobby Ray shipment destination ID + + - HireMerc (MercID) + hires the merc with the specified MercID ************** @@ -143,6 +146,9 @@ http://www.legion.zone.zg.pl/doku.php/modowanie/ja/art_ja_m_22_lua -- Add alternative sector C1-3 AddAltUGSectorNew(3,1,3) + + -- Hire Ivan + HireMerc(7) ]] -- Initialize the pseudo random number generator diff --git a/gamedir/Data/Scripts/GameInit.lua b/gamedir/Data/Scripts/GameInit.lua index f61a538fa..dcf673afc 100644 --- a/gamedir/Data/Scripts/GameInit.lua +++ b/gamedir/Data/Scripts/GameInit.lua @@ -84,6 +84,9 @@ http://www.legion.zone.zg.pl/doku.php/modowanie/ja/art_ja_m_22_lua ubSender - uiIndex from SenderNameList.xml iCurrentIMPPosition - Default = -1, or the profile ID of the IMP iCurrentShipmentDestinationID - Default = -1, or the Bobby Ray shipment destination ID + + - HireMerc (MercID) + hires the merc with the specified MercID ************** @@ -143,6 +146,9 @@ http://www.legion.zone.zg.pl/doku.php/modowanie/ja/art_ja_m_22_lua -- Add alternative sector C1-3 AddAltUGSectorNew(3,1,3) + + -- Hire Ivan + HireMerc(7) ]] -- max number of lines can be shown in a message