EnglishGermanFrenchRussianPolishItalianSpanish
Log inRegister
 
[HELP] Scripting Help
Post new topic Reply to topic Goto page 1, 2, 3  Next
View previous topic :: View next topic
Author Message
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)



Joined: 15 Nov 2004
Posts: 19852 on topic
Location: London
Thank you for registering your game
modified
PostPosted: Mon, 8. May 06, 01:13    Post subject: [HELP] Scripting Help Reply with quote Print

I've been asked quite a few times about making basic scripts, so i decided to make a small guide for enalbing the script editor and creating your first script.

can be found here
Mirror site here

Guides Available

  • Enabling the Script Editor
  • Creating Your First Script
  • Money Cheat Script - How to add script commands
  • Manually Running Scripts
  • Notority Cheat Script
  • Creating Text Files
  • Using Command Slots
  • Conditional Statements
  • Using Script Arguments
  • Adding custom Wares
  • Creating a Hotkey script
  • Creating an AL Plugin



_________________
My Scripts | MY X3TC Scripts | X3 Plugin Manager | Custom Gui


Last edited by Cycrow on Sat, 2. Feb 08, 22:20; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Brand-X





Joined: 15 Sep 2005
Posts: 232 on topic

Thank you for registering your game
PostPosted: Mon, 8. May 06, 08:15    Post subject: Reply with quote Print

Thanks, Cycrow.

I'll probably find it very useful.

Smile

Back to top
View user's profile Send private message
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)



Joined: 15 Nov 2004
Posts: 19852 on topic
Location: London
Thank you for registering your game
PostPosted: Mon, 8. May 06, 18:15    Post subject: Reply with quote Print

Added some more to the page, will most likly be adding more to it over time

so far its dealing with those you want to make a few simple scripts, like adding money/notorty, etc


_________________
My Scripts | MY X3TC Scripts | X3 Plugin Manager | Custom Gui
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Brand-X





Joined: 15 Sep 2005
Posts: 232 on topic

Thank you for registering your game
PostPosted: Tue, 9. May 06, 05:38    Post subject: Reply with quote Print

I loaded a fresh copy of x3 on my second hard drive and started a new game, as the Bankrupt Assassin. Followed your directions and gave myself 10 mil. Easiest money I ever made. And it showed up as soon as I closed the editor window and looked at my player statistics.

So I tried the race rank thing and initially used a value of 40, but when I closed the editor and checked my stats, that part hadn't seemed to have changed. So I reduced the value to 20, saved and pressed 'r' , then exited to look at my stats. They still hadn't changed. Did I do something wrong?

Yout tut is very nicely presented, by the way. Looks good and loads up fast over dial-up.

Back to top
View user's profile Send private message
Stevo Primus



MEDAL

Joined: 11 Feb 2004
Posts: 194 on topic
Location: London, England
Thank you for registering your game
PostPosted: Tue, 9. May 06, 08:26    Post subject: Reply with quote Print

Well, Cycrow, I'm shocked..... Surprised

In the "add notoriety" script the first variable is the race that you intend to add/remove rep to/from and the second variable is where you would insert "player" as the race!

Other than that the guide's looking nice!

Hope that clears that one up for you IntergalacticBadAss...

Stevo Wink

Back to top
View user's profile Send private message
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)



Joined: 15 Nov 2004
Posts: 19852 on topic
Location: London
Thank you for registering your game
PostPosted: Tue, 9. May 06, 16:31    Post subject: Reply with quote Print

ah i didn't notice that

that'll teach me to write it when im half asleep Razz

i will update the corrected version


_________________
My Scripts | MY X3TC Scripts | X3 Plugin Manager | Custom Gui
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Brand-X





Joined: 15 Sep 2005
Posts: 232 on topic

Thank you for registering your game
PostPosted: Wed, 10. May 06, 02:17    Post subject: Reply with quote Print

Yeah, that was it.

Thanks, Stevo Smile

I can see how it could easily happen tho.
The syntax is somewhat misleading, at least to a noob like myself.

It literally says - 'Argon increase notoriety: race = player: value = xx'
Which works.

But it looked better the first way, more logical.

'Player increase notoriety: race = Argon: value = xx'
Which didn't work.

Razz

Back to top
View user's profile Send private message
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)



Joined: 15 Nov 2004
Posts: 19852 on topic
Location: London
Thank you for registering your game
PostPosted: Tue, 27. Jun 06, 17:08    Post subject: Reply with quote Print

I've added 2 new sections of help.

Arrow Creating Text Files
Arrow Using Command Slots


_________________
My Scripts | MY X3TC Scripts | X3 Plugin Manager | Custom Gui
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
kylereich





Joined: 17 Nov 2003
Posts: 238 on topic
Location: USA
Thank you for registering your game
PostPosted: Tue, 25. Jul 06, 00:36    Post subject: Reply with quote Print

Cycrow. First off, thanks for the tutorial.

After I stumbled onto your large script library, I began to have a few ideas of my own. Having never scripted within X2 or X3 your tutorial has set me on my path. However, I noticed a couple typo's that should probably be fixed. Under the Using Command Slots section, you have the following code listed:


Code:
<?xml version="1.0" encoding="UTF-8" ?>
<language id="44">
<page id="2008" title="Script Cmd Names" descr="">
 <t id="240">COMMAND_TEST_TRADE_COMMAND</t>
</page>

<page id="2010" title="Script Cmd Names" descr="">
 <t id="240">Test Trade Command
</page>

<page id="2011" title="Script Cmd Shorts" descr="">
 <t id="240">Test
</page>
</language>



In the section below, I've added "</t>" in the second and third code portions:


Code:
<?xml version="1.0" encoding="UTF-8" ?>
<language id="44">
<page id="2008" title="Script Cmd Names" descr="">
 <t id="240">COMMAND_TEST_TRADE_COMMAND</t>
</page>

<page id="2010" title="Script Cmd Names" descr="">
 <t id="240">Test Trade Command</t>
</page>

<page id="2011" title="Script Cmd Shorts" descr="">
 <t id="240">Test</t>
</page>
</language>



Thanks again, and keep up the excellent work!

-Kyle

Back to top
View user's profile Send private message AIM Address
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)



Joined: 15 Nov 2004
Posts: 19852 on topic
Location: London
Thank you for registering your game
PostPosted: Tue, 25. Jul 06, 03:50    Post subject: Reply with quote Print

ah i didn't notice those Embarassed

thanks

i must forgot to change the tag so it displays in html


_________________
My Scripts | MY X3TC Scripts | X3 Plugin Manager | Custom Gui
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)



Joined: 15 Nov 2004
Posts: 19852 on topic
Location: London
Thank you for registering your game
PostPosted: Sat, 25. Nov 06, 05:29    Post subject: Reply with quote Print

i've updated the help page, now includes guildes for wares, hotkeys and AL plugins


_________________
My Scripts | MY X3TC Scripts | X3 Plugin Manager | Custom Gui
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Cker



MEDAL

Joined: 11 Jan 2006
Posts: 79 on topic

Thank you for registering your game
PostPosted: Fri, 5. Jan 07, 09:52    Post subject: Reply with quote Print

Was thinking of looking at it, but...
Doesn't seem to be working, has the page moved or been deleted? Sad

Back to top
View user's profile Send private message
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)



Joined: 15 Nov 2004
Posts: 19852 on topic
Location: London
Thank you for registering your game
PostPosted: Fri, 5. Jan 07, 14:04    Post subject: Reply with quote Print

it was down, but it should be back up again now.

however, some ppl are having problems viewing the site for some reason.

u could try going to http://86.20.166.202/x3/scripts/help and c if that works


_________________
My Scripts | MY X3TC Scripts | X3 Plugin Manager | Custom Gui
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Cker



MEDAL

Joined: 11 Jan 2006
Posts: 79 on topic

Thank you for registering your game
PostPosted: Fri, 5. Jan 07, 14:23    Post subject: Reply with quote Print

Huzzah, the first link is working again.
But your second link isn't, i better save what you've written quickly Laughing

Back to top
View user's profile Send private message
Metalic Crab





Joined: 18 Feb 2006
Posts: 89 on topic

Thank you for registering your game
PostPosted: Tue, 30. Jan 07, 21:54    Post subject: Reply with quote Print

neither link is working anymore Sad


_________________
A man with nothing can still offer his life.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic Reply to topic Goto page 1, 2, 3  Next
 
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 Thu, 23. May 13, 03:29

All times are GMT + 2 Hours


Board Security

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