 |
View previous topic :: View next topic |
 |
|
|
|
|
Author |
Message |
|
|
|
|
|
Cycrow Moderator (Script&Mod)


Joined: 15 Nov 2004 Posts: 19852 on topic Location: London

 |
Posted: Mon, 8. May 06, 01:13 Post subject: [HELP] Scripting Help |
|
|
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 |
|
|
|
 |
|
|
|
|
|
Brand-X
Joined: 15 Sep 2005 Posts: 232 on topic

|
Posted: Mon, 8. May 06, 08:15 Post subject: |
|
|
Thanks, Cycrow.
I'll probably find it very useful.

|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Cycrow Moderator (Script&Mod)


Joined: 15 Nov 2004 Posts: 19852 on topic Location: London

|
Posted: Mon, 8. May 06, 18:15 Post subject: |
|
|
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 |
|
|
|
 |
|
|
|
|
|
Brand-X
Joined: 15 Sep 2005 Posts: 232 on topic

|
Posted: Tue, 9. May 06, 05:38 Post subject: |
|
|
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 |
|
|
|
 |
|
|
|
|
|
Stevo Primus
Joined: 11 Feb 2004 Posts: 194 on topic Location: London, England

|
Posted: Tue, 9. May 06, 08:26 Post subject: |
|
|
Well, Cycrow, I'm shocked.....
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 
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Cycrow Moderator (Script&Mod)


Joined: 15 Nov 2004 Posts: 19852 on topic Location: London

|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Brand-X
Joined: 15 Sep 2005 Posts: 232 on topic

|
Posted: Wed, 10. May 06, 02:17 Post subject: |
|
|
Yeah, that was it.
Thanks, Stevo
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.

|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Cycrow Moderator (Script&Mod)


Joined: 15 Nov 2004 Posts: 19852 on topic Location: London

|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
kylereich
Joined: 17 Nov 2003 Posts: 238 on topic Location: USA

|
Posted: Tue, 25. Jul 06, 00:36 Post subject: |
|
|
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 |
|
|
|
 |
|
|
|
|
|
Cycrow Moderator (Script&Mod)


Joined: 15 Nov 2004 Posts: 19852 on topic Location: London

|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Cycrow Moderator (Script&Mod)


Joined: 15 Nov 2004 Posts: 19852 on topic Location: London

|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Cker

Joined: 11 Jan 2006 Posts: 79 on topic

|
Posted: Fri, 5. Jan 07, 09:52 Post subject: |
|
|
Was thinking of looking at it, but...
Doesn't seem to be working, has the page moved or been deleted? 
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Cycrow Moderator (Script&Mod)


Joined: 15 Nov 2004 Posts: 19852 on topic Location: London

|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Cker

Joined: 11 Jan 2006 Posts: 79 on topic

|
Posted: Fri, 5. Jan 07, 14:23 Post subject: |
|
|
Huzzah, the first link is working again.
But your second link isn't, i better save what you've written quickly 
|
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
Metalic Crab
Joined: 18 Feb 2006 Posts: 89 on topic

|
Posted: Tue, 30. Jan 07, 21:54 Post subject: |
|
|
neither link is working anymore 
_________________ A man with nothing can still offer his life. |
|
|
|
|
|
|
Back to top |
|
|
|
 |
|
|
|
|
|
|
|