how to export characters from finished DM to CSB ?

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.
Post Reply
Pietrus
Novice
Posts: 13
Joined: Tue Jun 01, 2010 3:53 pm

how to export characters from finished DM to CSB ?

Post by Pietrus »

all in the title
User avatar
Joramun
Mon Master
Posts: 927
Joined: Thu May 25, 2006 7:05 pm
Location: The Universe

Re: how to export characters from finished DM to CSB ?

Post by Joramun »

Well, the only solution for now is a bit tedious, but just a bit:

Open the csb dungeon.lua file.

Look at the first line containing

Code: Select all

dsb_add_champion(1, "AIRWING_01", "port_airwing", "AIRWING", "", 3000, 1890, 700, 640, 540, 400, 490, 300, 300, 500, 7, 7, 6, 7)
This is the list of champions.

At the end of the list, add the following

Code: Select all

dsb_add_champion(XXX, "ESB_CHAMPION_NAME", "CHAMPIONPORTRAITNAME", "FIRST NAME", "LAST NAME", HEALTH, STAMINA, MANA, STRENTGH, DEXT, WISDOM, VITALITY, Anti_magic, Anti_fire, 500, Fighter, Ninja, Priest, Wizard)
ALL STATS MUST BE x10 except the skills (0=none, 1=neophyte to 15 =archmaster). The lone stat '500' is the hidden luck stat, which is 50 for all DM/CSB characters.

For each of your champion, be careful that XXX is not already used in the list (100, 101, 102 and 103 should do) and also change the ESB champion name, and be careful to put a valid portrait name (ie the same portrait name as in the DM dungeon, something like 'port_iaido' ).

Then at the end of the file, before

Code: Select all

dsb_party_place(10, 12, 18, 0)
add :

Code: Select all

dsb_champion_toparty(Y, XXX)
for each of your newly created champions, and Y going from 0 to 3 for party position (left to right) and XXX being the number above (100 to 103 if you followed my instructions)

The CSB dungeon.lua and DM dungeon.lua contain all (most ? ) available portrait names. The next release of CSB will come with the "DM PLUS" portraits.
What Is Your Quest ?
User avatar
Sophia
Concise and Honest
Posts: 4306
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: how to export characters from finished DM to CSB ?

Post by Sophia »

Minor correction, luck is the last stat. I just edited your post, I hope you don't mind.
User avatar
ian_scho
High Lord
Posts: 2807
Joined: Fri Apr 07, 2006 8:30 am
Location: Zaragoza, Spain

Re: how to export characters from finished DM to CSB ?

Post by ian_scho »

Ahhh and your imported champion will arrive naked into the world, of course. :)
User avatar
Joramun
Mon Master
Posts: 927
Joined: Thu May 25, 2006 7:05 pm
Location: The Universe

Re: how to export characters from finished DM to CSB ?

Post by Joramun »

Naked Mophus is the only way to go.
What Is Your Quest ?
Post Reply