EnglishGermanFrenchRussianItalianSpanish
Log inRegister
 
Global variables, What is possible with the SE ?
Post new topic Reply to topic
View previous topic :: View next topic
Author Message
PSCO1





Joined: 04 Jun 2009

Location: France

modified
PostPosted: Fri, 29. Jun 18, 20:55    Post subject: Global variables, What is possible with the SE ? Reply with quote Print

Hi all,

Iam back since few time on X3TC and after some times working on my personnal mod (NMCE, not the cockpitMod), I added some good scripts from the community, well as a lot of people Smile

And I would like to speak about this script:
Release Passengers (1.0.1) by X2-Illuminatus
https://forum.egosoft.com/viewtopic.php?t=322403

This script dont reward player with money, just reward player of notority points...
I like money and so, I decided to modify this script to have:

1 - Release passengers (then add money to player in accordence of race sector, +add notority like original version, etc etc.. few more conditions, also added possibility to sell passenger as slave in pirate bases...)

2 - Scan Passengers from the player ship (if Bioscanner installed) to check if, and thats where the problems begins..., to check if passenger is a Pirate, or Yaki, etc etc...


There is a sort of "Cover" for ejected Pirates, right ?
After a lot of searchs, only 1 function add/remove this "Cover", and it seems to be impossible to GET this variable in the SE...
I probably understand why EgoSoft devs didnt added the "Get..." command in SE...

At this point, I decided to read some scripts from the absolute musthave "NPC Bailing Addon" (ThisIsHarsh)
And sadly, no traces of this hypothetical command.. Sad
All is scripted to avoid to have a Pirate in a Spacesuit. thats confirmed my feelings...

Another thing, when a passenger is ejected, his stats about FightSkill, Morale, Aggressivity etc... are recreated after the Spacesuit(ship) is created, but not the name and the race.. well I suppose we cant do anything

And to back to the thread question, I dont know what is possible with Global variables, for my little experience, for me, Global variables can be readable by all scripts of the game, am I right ?

My goal so, is to create a globalVar who add a "Pirate or not" tag on the space suit created (in NPC Bailing Addon in the "eject" script)
and read this variable in "my" script "Release.Passengers"...

Something like this:
Code:
$spacesuit set global variable: name=<var/string> value=<value>

Its an error of syntax ofcourse. is there a possibility ?


_________________
Cockpitmod - Large Gates - NMCE Mod -
Colored Grades
x3dmod forum


Last edited by PSCO1 on Fri, 29. Jun 18, 21:16; edited 1 time in total
Back to top
View user's profile Send private message
Joubarbe





Joined: 31 Oct 2006
Posts: 3280 on topic
Location: France
Thank you for registering your game
PostPosted: Fri, 29. Jun 18, 21:13    Post subject: Reply with quote Print

Code:

get owner race
get true owner


Compare the two and then you'll have the current pirate cover state.


_________________
Mayhem - Satellites Monitoring - ADS (Joubarbian Edition) - The Joubarbian Toolkit - EasyConnect
Back to top
View user's profile Send private message
PSCO1





Joined: 04 Jun 2009

Location: France

PostPosted: Fri, 29. Jun 18, 21:24    Post subject: Reply with quote Print

Thanks for this quick reply Joubarbe !!
I will try this ! 1000x thanks !


_________________
Cockpitmod - Large Gates - NMCE Mod -
Colored Grades
x3dmod forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic Reply to topic
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Sat, 21. Jul 18, 09:36

All times are GMT + 2 Hours

[ Disclaimer / Impressum ] | [ Privacy Policy / Datenschutz ]

Board Security

Copyright © EGOSOFT 1989-2018
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.06225 seconds, sql queries = 17