[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: 13293
Joined: Sun, 15. Feb 04, 20: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: 22227
Joined: Sun, 14. Nov 04, 23: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: 13293
Joined: Sun, 15. Feb 04, 20: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”