[SCRIPT] Utility Script: Ware2Relval

The place to discuss scripting and game modifications for X³: Reunion.

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

Post Reply
User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 11489
Joined: Sun, 15. Feb 04, 21:12
x4

[SCRIPT] Utility Script: Ware2Relval

Post by euclid » Mon, 23. Oct 06, 01:41

I thought you find this script also useful. It returns the RelVal of any tradable ware in vanilla X3. Modders and scripters are free to append the Relvals of their new wares.

Wares2RelVal


Thanks to Jakesnake5 for hosting :thumb_up:


Cheers Euclid

Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 20594
Joined: Mon, 15. Nov 04, 00:26
x4

Post by Cycrow » Mon, 23. Oct 06, 03:53

how does this differ to the command

Code: Select all

<revar> = get relvalue <var/ware>

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 11489
Joined: Sun, 15. Feb 04, 21:12
x4

Post by euclid » Mon, 23. Oct 06, 13:17

Cycrow wrote:how does this differ to the command

Code: Select all

<revar> = get relvalue <var/ware>

This command returns the NPC relvalue which is, in general , not the same as the player relvalue.

Example: 1 GJ shields has NPC relvalue 4800 and player relvalue 7440.


Cheers Euclid

Post Reply

Return to “X³: Reunion - Scripts and Modding”