The word of the day is:

Cocainised

To close this tab, click here

DESCRIPTION

A script is just a file that has a bunch of commands separated by semicolons. This executes the commands for you so you don't have to type them all in!

INSTRUCTIONS

  1. First of all, let's think of what we want in our script. For a simple script, let's make it execute these commands: give health and give armor. Right-click in a blank area in your gamedata>base of Jedi Academy. Click on: new>text document. You should see this:


  2. Now, we need to name the file, but making it end with .cfg, which stands for a configuration file. Let's use test.cfg. Type it in and press enter. If this comes up, just click yes:


  3. Right-click on this, and click edit. Now type in: echo this is my script;give health;give armor:


  4. Save it, and open JA. Type in: /exec test.cfg:


  5. The script should execute and there will be an echo message of “this is my script”, and you will get full health & armor.

  6. EXTRA

    If you want a menu for the commands: god, give armor & give health, this is how you do it:

  1. Click here for a layout of the cfg file.

    At the top of the file are messages that appear when you execute your script. You can change these to your liking. This includes the (name of script) and the (your name) tags.

    Below that are the binds. You can change these too.

    Where it says set exec, inside the quotes put the message that appears when you press your execute key without selecting a command first:


  2. since our first command is god, let's put god4 inside the quotes of the “next” vstr. This starts the menu for the god command. We have to put a “4” here just to distinguish it from the actual command. Our last command is give armor, so we can put armor4 inside the qoutes of the “prev” vstr. It should look like this:


  3. Now, we need to actually set our commands. In the first “set (command)4“line, replace (command) with god. We now need to tell it what bunch of commands to execute. Where it says: set exec vstr, after vstr put god. We now have to put the previous command in. This will be give armor again, because it is our last command. Where it says: set prev vstr (command)4, replace (command) with armor. The next command is give health, so we put it in the second command space. Where it says: echo (command), this is how it will appear in the menu. You can set it out any way you like, but in this tutorial, we are going to list the commands. Since god is our first command, we put: echo 1. God. You have now finished your first menu item! Your script should look like this:


  4. Well unfortunately, we basically need to repeat step f. Just make sure that all the commands are in order, and that none are typed incorrectly. This is how it should look when you are done:


  5. Now, finally, we need to set the commands. In the first line where it says: set (command), replace (command) with god. Inside the quotes, we put the bunch of commands that this menu option executes. You can just put the god command in, or you can put multiple commands in. This is an example of multiple commands:


  6. This bunch of commands turns on god mode, then makes you say: “I am on god mode”. Now, let's do the other commands. When you are done, it should look like this:


  7. Note that I removed the last command because that was a mistake I made, lol.

  8. That's it! You're finally done! Now just type /exec menu, or /exec (whatever you renamed it to) and have fun!