More! MORE! Updates Ahoy!
Almost too many updates to list but I'll give it a shot. The biggest one is colour, glorious colour.
Here's a preview of the new login screen with colour. That is just a small bit of the colour implementation since I put it anywhere that a highlight was feasible.

If you noticed above, you can now save and load your character from save files. This was a gigantic pain, I had to hack the crap out of the player description to get it to save to file without crashing and then un-hack, as it were, to read it from file unchanged.
Here's what the save files look like and a preview of them being loaded.

A quick explanation of what that is:
first line is obiously the character name, second line is health %,
third is the player's strength, followed by the Room # the player
quit at. The fourth is another obvious one, the description. The final
two are booleans for isNPC and hasScript which are currently unused
at this point.
One of the other big things that I added was a file-based scripting system.
Each mob can have a script file associated with it.msf. Currently
the only command supported is send which (big leap here) sends a say command
to the screen upon a certain action.
Preview of script file:
The preceding number sets when this action happens 0 is upon attack, 1 is upon entrance of the room and 2 is upon death. I'll add multi-word argument support and more supported commands later.
Here's a list of the minor updates I've made
I still have a lot of plans for this:
Extending the scripting system, better system for (N)PC, room, item, creation, more item types, experience/levelling system, skills, spells, etc. inf. The list goes on and on, too much work and not enough time.
If you want to test the game or you want the source here you are(both are .rar so you need WinRAR):
Source
Game
Have Fun!
Here's a preview of the new login screen with colour. That is just a small bit of the colour implementation since I put it anywhere that a highlight was feasible.
If you noticed above, you can now save and load your character from save files. This was a gigantic pain, I had to hack the crap out of the player description to get it to save to file without crashing and then un-hack, as it were, to read it from file unchanged.
Here's what the save files look like and a preview of them being loaded.
shawn
100
8
0
A-weak-human
0
0
100
8
0
A-weak-human
0
0
A quick explanation of what that is:
first line is obiously the character name, second line is health %,
third is the player's strength, followed by the Room # the player
quit at. The fourth is another obvious one, the description. The final
two are booleans for isNPC and hasScript which are currently unused
at this point.
One of the other big things that I added was a file-based scripting system.
Each mob can have a script file associated with it
the only command supported is send which (big leap here) sends a say command
to the screen upon a certain action.
Preview of script file:
2 send Gaaarrrrrrrr!
1 send Hello
0 send DIE!
1 send Hello
0 send DIE!
The preceding number sets when this action happens 0 is upon attack, 1 is upon entrance of the room and 2 is upon death. I'll add multi-word argument support and more supported commands later.
Here's a list of the minor updates I've made
- all arguments to applicable commands, ie. wear all, get all.
- an eat command which restores health if you eat an eatable item
- redesigned equipment command
- get, and drop commands
I still have a lot of plans for this:
Extending the scripting system, better system for (N)PC, room, item, creation, more item types, experience/levelling system, skills, spells, etc. inf. The list goes on and on, too much work and not enough time.
If you want to test the game or you want the source here you are(both are .rar so you need WinRAR):
Source
Game
Have Fun!
Labels: Arena2.0



