[script][lib][21.04.08]get rank as number and name

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

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

User avatar
Trickmov
Posts: 1431
Joined: Wed, 7. Nov 07, 19:48
x3tc

[script][lib][21.04.08]get rank as number and name

Post by Trickmov »

When using get fight rank or get trade rank in SE you only get a number between 0 and 10.000.000, that doesn´t represent the real rank (1-31 ).

To get the real rank and the rank name, i wrote this little library script:

http://www.merchant-haven.de/forum/down ... l&df_id=55

The values are returned as array:

Rank [0] = fight ranknummer (1-31)
Rank [1] = fight rankname
Rank [2] = trade ranknummer (1-31)
Rank [3] = trade rankname

This library was made for inclusion in other scripts.


I can´t guarantee, that all values are correct. The values are taken from a list in the german tutorials, i couldn´t test them.

Note: If you want to use the Names, you need the t-files, if they are not included the name will be a readtext, but the ranknumber is correct.
Last edited by Trickmov on Sat, 19. Jul 08, 16:03, edited 3 times in total.
fud
Posts: 9837
Joined: Wed, 25. Jan 06, 14:26
x3

Post by fud »

Nice.
User avatar
Trickmov
Posts: 1431
Joined: Wed, 7. Nov 07, 19:48
x3tc

Post by Trickmov »

Added Trade-Rank Informations... :wink:
jlehtone
Posts: 22476
Joined: Sat, 23. Apr 05, 21:42
x4

Post by jlehtone »

deja vu. I'm quite sure I've seen similar script around. Not that it really matters, as it is handy to have.
Goner Pancake Protector X
Insanity included at no extra charge.
There is no Box. I am the sand.
User avatar
Trickmov
Posts: 1431
Joined: Wed, 7. Nov 07, 19:48
x3tc

Post by Trickmov »

jlehtone wrote:deja vu. I'm quite sure I've seen similar script around. Not that it really matters, as it is handy to have.
Couldn´t find anything like it, only the list in the german tutorials. I wished i would have found something like it, because writing 62 if then or else if then isn´t so funny. :wink:


Trickmov

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