How to set an item-price?

The place to discuss scripting and game modifications for X²: The Threat.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
MasterUltima
Posts: 144
Joined: Wed, 4. Feb 04, 14:45
x3

How to set an item-price?

Post by MasterUltima » Mon, 9. Feb 04, 20:16

Hi guys

I need help with setting up an item-price for a new item I have already implemented in the game, which can be brought from the "Argon Equipment Dock" in Argon Prime (just like the tutorial showed me :))). But I have a problem with the price of the item to sell.

Changing the 9th row in the item-table of TWareT.txt for my item doesnt change the price at all. Even the script which I set up doesnt change the price:

Code: Select all

001 @ = wait 1 ms
002   $ArgonPrime = get sector from universe index: x=1, y=3
003   $EquipmentDock =  find station in galaxy: startsector=$ArgonPrime class or type='Argon Equipment Dock' race=Argonen flags=null refobj=null serial=null max.jumps=0
004   if $EquipmentDock -> exists
005    $EquipmentDock -> add product to factory or dock: Toiletpaper Deluxe
006    $discard = $EquipmentDock -> add 1 units of Toiletpaper Deluxe
007    $EquipmentDock -> set price of ware Toiletpaper Deluxe to 2000000 Cr
008   end
009   return null
If I change "Toiletpaper Deluxe" in the "SET PRICE"-line to another item, the price of the other item doesnt changes too! So Im really wondering what the problem here may be!

Thanks for your help guys!

Post Reply

Return to “X²: The Threat - Scripts and Modding”