Worms Reinforcements - Challenge Mode Editor
============================================

THIS VERSION WILL ONLY WORK FOR WORMS REINFORCEMENTS, NOT WORMS OR WORMS UNITED!!
OH, IT MODIFIES YOUR WRMS.EXE TOO, NOTHING TO WORRY ABOUT BUT MAKE A BACKUP OF IT :)

(...all the legal crap etc...)
Worms Reinforcements (c) 1995/96 Team 17 Software Ltd.

I asked Andy Davidson on #worms what he thought about this and he didn't seem too
bothered, so I guess it's alright to hack into the executable file =)

****************
* The Programs *
****************

CHALED.EXE :-

This is the editor for making challenge modes. It should be self explanitory when you
run it but I'll explain how it is used here anyway.

The syntax is
CHALED [filename]
I tend to use *.chl for challenge modes, for identification reasons only.

If the file does not exist the program generates a challenge mode with my default
values, when you save it this file is created.
If the file does exist, it simply loads that in instead.

There are 6 options on the main menu,

1. Edit Level Texts
This lets you edit the intro/briefing screens for the mission. It also icludes the
landscape and password edit boxes. The landscape is a custom one located in the 
data\custom\gfx directory and doesn't need the .PCX afterwards. The password *should*
be eight characters (all the ones in the game are, and I haven't tested less).
To edit any of these options simply press the number/letter of the line and the cursor
moves to the end of that line to edit. It will not let you enter more than the maximum
characters allowed, or enter illegal characters.

2. Edit Computer Team Details
This lets you edit the strings for each team - Team name, worm names, and sample set.
The sample set should be located in the data\custom\sfx directory and doesn't need the
.sfx suffix in the string you enter. The edit boxes work in the same way as before.

3. Edit General Options
There are a few things to edit here, I'll explain each one individually, but they all 
operate in the same way. Select the number/letter of the option then use the cursor
up/down arrows to edit them, then press Enter to finish.
Points             : I *think* this is the number of points for the round.
CPU/Human Energy   : The initial health of the worm teams.
CPU/Human Worms    : The number of worms a team has, always the first worms stored.
CPU Controller     : Skill level of the computer team.
*** Delay          : The number of rounds before the weapon is activated.
Worm Select        : Turns worms select off/on.
Mine Delay         : Sets Timer for the mines.
Mines on Landscape : Number of mines generated on landscape.
Mive Time          : How long per turn (cheesy numbers but I'm lazy :)
Unknown [0..n]     : Don't know these, but take the values 0..n.

I think the unkowns are Dud mines, crate drops, booby trapped crates etc.. but I haven't
figured out which ones, and if that is true yet.

4. Edit Weapons
This menu is operated in the same way as the General Options above, but the weapons are
limited to on/off or 1 to 25 of each one. Only the ones with menu options can be edited,
that means fire puch, dragon ball & co are always on.

5. Edit Congratulations Screen
Operated the same way as the Edit Texts menu, but for the congratulations screen when
the challenge mode is completed.

6. Change Mission
Hmmm, been wondering how to set these for each mission? With this! Use the arrow keys
to change to the required mission. It is displayed at the bottom of every screen do you
don't forget.

S. Save & Quit
Once you have made the perfect challenge mode press S to save it and skip to the 
CHLBUILD.EXE section.

Q. Quit
Quits without saving!


CHLBUILD.EXE :-

Once you have a *.chl file (or whatever), copy everything to the Worms Reinforcements
directory and type

CHLBUILD [filename]

It should display a little message (or an error ... DOH!), saying it's written by me.
It takes a little while to copy all the data across, and when it's finished it will say
"All Done!" .... IT WORKED!!!!!!

Next time you load up worms it will have your challenge mode in place of the origianl
one. [hail Worm GOD, hail Worm GOD], but if it didn't work, I want to know about it.


***************
* Other Stuff *
***************

Suppose I better put the original values into a chl file to restore them, but that's
boring! Maybe later when I know what everything is, and stuff.

E-mail any GOOD ones you make to me, and I may stick them on my site :)
Try to keep to graphics/sample banks everyone has, that way everyone can play them
properly, without the odd computer generated landscape crepping in!

If you want the code e-mail me, be warned it's cheesey beyond belief ... I don't know
how to turn that cursor off! (That's why its all keyboard based)

My e-mail address is brianh@globalnet.co.uk, or your bound to find me on Worm2Worm,
alt.games.worms, or #worms using "Jeta" as my nick.

...and to finsh off,
The Worm GOD Homepage
http://www.users.globalnet.co.uk/~brianh/

*****ADDED BY KILJAEDEN******

If you are dumb enough to NOT back up your wrms.exe [like what I did], then wormd GOD
has made an original.chl which if you chalbuild original.chl it will restore the exe
to it's original settings. All thanks goes to Worm GOD, not me, as I am just adding it
to the readme and zip file.

*****************************