[Scripting] Add X per value

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

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

Post Reply
User avatar
Joubarbe
Posts: 4796
Joined: Tue, 31. Oct 06, 12:11
xr

[Scripting] Add X per value

Post by Joubarbe » Tue, 21. Jul 15, 09:55

Hey,

What are these commands used for ?

Code: Select all

add tunings per value (LU)
add shields per value (vanilla)
add lasers per value (vanilla)
add missiles per value (LU)
I mean, how do they work exactly ? I don't quite understand the "value". How does the engine find a proper laser when you enter "$myShip -> add lasers per value : 100 flags:null". And what is this flag ? :)

Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22227
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow » Tue, 21. Jul 15, 21:03

The value is basically a random chance for the best shield/laser in each slot.

the higher the value the more likely it is that it will get the best.
the value is from 0-1000

User avatar
Joubarbe
Posts: 4796
Joined: Tue, 31. Oct 06, 12:11
xr

Post by Joubarbe » Tue, 21. Jul 15, 21:10

So with these commands, no need to add lasers, shields and missiles ? Wow, I spent a lot of time manually equipping my ships, what a waste of time ! :)

Thanks !

Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22227
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow » Tue, 21. Jul 15, 21:31

Yes you can, they are the same functions used by the Jobs engine when creating new ships

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”