EnglishGermanFrenchRussianItalianSpanish
Log inRegister
 
add merchant <Var/String> base=<RefObj> wanted wares=<Var/Array> owned wares=<Var/Arr
Post new topic This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic
Author Message
mark_a_condren





Joined: 03 Aug 2005
Posts: 1385 on topic
Location: Newcastle - Australia
Thank you for registering your game
PostPosted: Sat, 2. Oct 10, 16:46    Post subject: add merchant <Var/String> base=<RefObj> wanted wares=<Var/Array> owned wares=<Var/Arr Reply with quote Print

add merchant <Var/String> base= <RefObj> wanted wares= <Var/Array> owned wares= <Var/Array> cash= <Var/Number>


<Var/String> = This is the Merchants name, what is displayed in the list of merchants at a Trading Station.
<RefObj> = The Trading Station you want this Merchant to appear at.
<Var/Array> = The array containing the list of wares this merchant wishes to buy.
<Var/Array> = The array containing the list of wares owned by this merchant.
<Var/Number> = The amount of credits this Merchant starts with.


This command adds a merchant to the barter list in trading stations.
The first string is the Merchants name, what is displayed in the list.
Base is the station they are at and wanted wares and owned wares are arrays of wares that they have.


Examples:

The structure for the wanted and owned ware arrays, each ware is an array of 2 elements, ware and amount.

$wanted.ware.array = alloc array: size = 0
$ware = alloc array: size = 2
$ware[0] = Energy Cells
$ware[1] = 100
append $ware to array $wanted.ware.array

Then to add the merchant to the Trading Station,

add merchant $merchant.name base= $station wanted wares=$wanted.ware.array owned wares=$owned.ware.array cash=$credits

This will add the merchant $merchant.name to the Trading Station specified by $station with the owned and wanted wares in the ware arrays. The merchants credits will alter with their transactions but they will start with the amount you provide at $credits.


Command Location:

    »» Trade Commands
      »» Merchants
      add merchant <Var/String> base= <RefObj> wanted wares= <Var/Array> owned wares= <Var/Array> cash= <Var/Number>


Back to top
View user's profile Send private message Send e-mail
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)

MEDALMEDALMEDAL

Joined: 02 Apr 2006
Posts: 20390 on topic

Thank you for registering your game
PostPosted: Tue, 4. Oct 11, 18:19    Post subject: [TiP][49] 287999 Reply with quote Print

add merchant <Var/String> base= <RefObj> wanted wares= <Var/Array> owned wares= <Var/Array> cash= <Var/Number>


<Var/String> = Dies ist der Händlername, der in der Liste der Händler in einer Handelsstation angezeigt wird.
<RefObj> = Die Handelsstation, an der dieser Händler erscheinen soll.
<Var/Array> = Das Array der Waren, die der Händler kaufen möchte.
<Var/Array> = Das Array mit der Liste an Waren, die der Händler besitzt.
<Var/Number> = Die Menge an Credits, mit der der Händler starten soll.


Dies fügt einen Händler zur Tauschhandelsliste in einer Handelsstation hinzu.


Beispiel:

Die Struktur der gesuchten und eigenen Warenarrays. Jede Ware ist ein Array bestehend aus 2 Elementen: Ware und Menge.

$wanted.ware.array = alloc array: size = 0
$ware = alloc array: size = 2
$ware[0] = Energy Cells
$ware[1] = 100
append $ware to array $wanted.ware.array

Dann um den Händler zur Handelsstation hinzuzufügen:

add merchant $merchant.name base= $station wanted wares=$wanted.ware.array owned wares=$owned.ware.array cash=$credits

Dies wird den Händler $merchant.name zur ausgewälten Handelsstation $station mit den eigenen und gewünschten Warenarrays hinzufügen. Die Menge an Credits $credits kann im Befehl angegeben werden, wird sich aber mit Transaktionen verändern.


Zu finden unter:

    »» Trade Commands
      »» Merchants
      add merchant <Var/String> base= <RefObj> wanted wares= <Var/Array> owned wares= <Var/Array> cash= <Var/Number>


Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic This topic is locked: you cannot edit posts or make replies.
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Sat, 18. Nov 17, 14:02

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2017
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.32580 seconds, sql queries = 16