Script
- Comments
- Math Operands
- Binary Operands
- Colors
- Message Syntax
- Pitfalls <- things that break your editor etc.
- Comments
- Colors
- Characters
- Codes
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
Help is always appreciated, so welcome to the team.eladan wrote:Not sure how useful my 3+ year old knowledge will be, or how often I'll be around, but sign me up and I'll try to help.
If only they could change the blue color..Can you also add to both those topics, forum conventions, including documentation we keep and conventions we use. ie. we store page 17 numbers used, start numbers used, command slots used, and each modder/scripter has their own documented t file number. etc.
You can do that yourself once we get the index straight. Good preface to the ID index. Although, that's not my call. I volunteered for the syntax part.I'd also like to see it mentioned that we never modify t file 0001, we always use our own t file that overwrites or adds into 0001. To get it, go look at the list and select a number that hasnt been used, then get it reserved.
I know of some pitfalls, but I'm not an expert at crashing the compiler, so I expect others to be pitting in as it were..In pitfalls, endless loops would seem worth mentioning and the classic ways of generating them and recognising them.
As would mention of really bad coding techniques and how they are replaced by the good coders here. Not sure thats in your scope or not, but I've seen some classics over time, and the better coding technique was always worth knowing about.
ThanksX2-Illuminatus wrote:Added you to the group, welcome to the team.
No, I don't think there's anything like this. There are a few other MSCI references out there. But they are similar to the one here in the forum. So, they have lists of commands according to the commands section in the SE and then an article for each command. Given that Xai-Corp.net went online, when X3R was the current game and that its creator, moggy2, is inactive for a few years already, I guess most of the TC and AP commands are missing there. Not sure, if anyone is currently working on the MSCI reference.DrBullwinkle wrote:I mean like search for "task" to find the task-related commands.
Yeah, I have done that, too. But there are 9 of those, and 8 pages of individual listings to search.X2-Illuminatus wrote:takeing one key word and searching for that word with the browser search in the index threads.
Done.Logain Abler wrote:Under Trade:
[skip|else] if [not]|while [not]| <RetVar/IF> = <RefObj> add <Var/Number> units of <Var/Ware>
<RetVar/IF> = If the command is to 'return' information. If a variable is used, This command will return TRUE on success, FALSE on failure.
When using on HQ class stations the command always returns 0.
LA
Code: Select all
Argument 1: target Var/Ship/Station, 'target'
Argument 2: pos, Var/Sector Position, 'position'
$x = $pos[0]
$y = $pos[1]
$z = $pos[2]
$sec = pos[3]
write to player logbook: printf: fmt='Moving %s to %s (%s, %s, %s)', $target, $sec, $x, $y, $z
$target -> put into environment: $sec ->
$target -> set position: x=$x y=$y z=$z