Couple of quick questions

This forum is for the Lua scriptable clone of DM/CSB called Dungeon Strikes Back by Sophia. Use DSB to build your own highly customised games.

Moderator: Sophia

Forum rules
Please read the Forum rules and policies before posting.
User avatar
Sophia
Concise and Honest
Posts: 4240
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: Couple of quick questions

Post by Sophia »

By the way, if you want to preserve lower case letters and also still have spell runes, you can do that in current versions of DSB, as long as your font includes the spell runes starting at ASCII value 129.

There's a thread about that here: viewtopic.php?p=159468#p159468
User avatar
Automaton
Journeyman
Posts: 88
Joined: Sat Aug 28, 2004 10:49 am

Re: Couple of quick questions

Post by Automaton »

Thanks very much for the pointers!

I did a little bit of figuring out for myself, but got there!

For anyone else trying to do this, you need to override (in your own custom lua files) these bits:

global.lua

Code: Select all

powchar = { "a", "b", "c", "d", "e", "f" }
magic.lua

Code: Select all

	magic_runes = {
		"a", "b", "c", "d", "e", "f",
		"g", "h", "i", "j", "k", "l",
		"m", "n", "o", "p", "q", "r",
		"s", "t", "u", "v", "w", "x"
	},
Mine look like:

Code: Select all

powchar = {"\129", "\130", "\131", "\132", "\133", "\134"}

Code: Select all

	magic_runes = {
		"\129", "\130", "\131", "\132", "\133", "\134",
		"\135", "\136", "\137", "\138", "\139", "\140",
		"\141", "\142", "\143", "\144", "\145", "\146",
		"\147", "\148", "\149", "\150", "\151", "\152"
	},
Now I got:

Image
Image
Image
Image

And my daleland font looks like:

Image

Note to others: Watch out for F'ing paint softs. The default palette fontED puts out had 3!!!! yellows of the same value, so even though I chose 255 to paint, when saving in gimp, if converted them to the other yellow(s). Then it went wrong again and I found the second yellow. Finally after changing the 2nd yellow to blue, the 3rd and final yellow at index 255 stuck as the real yellow when saved.

The 2 colours pointed to in blue were the same colour yellow as the last one

Image

Cheers!
Nick K.
User avatar
Gambit37
Should eat more pies
Posts: 13715
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Couple of quick questions

Post by Gambit37 »

Nice job on getting it to work finally :)
User avatar
Automaton
Journeyman
Posts: 88
Joined: Sat Aug 28, 2004 10:49 am

Re: Couple of quick questions

Post by Automaton »

Thank you Gambit,

Your insights were like beloved signposts in the forest of contrarian lua bollocks. ;-)
Post Reply