Get Names of all Party Members/Split Party without dialogue

Feel free to discuss anything related to the creation of new KotC 2 adventures using the toolset.

Get Names of all Party Members/Split Party without dialogue

Postby Raspelzahn » Mon May 19, 2025 8:58 pm

I'm new here in the forum. So, a big "Hello" to everyone!

I'm working on a Module with high-res Sprites and 2.5d-Maps. While around 20 maps are allready drawn, I do have some questions about scripting:

I actually plan, to split the group without a dialogue. I have found examples of spliting the party in Augury of Chaos, but they all come with the following promt:

Add the Names of... as Dialogue answers...

Is there a way around that?
I tried to write the names of ALL the PartyMembers in different variables (Member 1, Member 2 etc). But that's tricky too.

So, I made this:
Set in variable (*Player1*) with the highest Strength
Put the Character Player1 in "away" status
Do the Strength check again with the rest of the group, write in Player2
Put Player2 in "away" status
etcetc.
Didn't work either. Seems that the strength-check uses also the party member in the away status.

Would be also nice, to get the names of all the partymembers in other circumstances.
-My first language is not english, so forgive my grammatical errors :)
Raspelzahn
Kuo-toa (CR 2)
 
Posts: 6
Joined: Mon May 19, 2025 8:32 pm

Get Names of all Party Members/Split Party without dialogue

Advert
 

Re: Get Names of all Party Members/Split Party without dialo

Postby Raspelzahn » Mon May 19, 2025 9:46 pm

Made it! Complicated, but works...
I forgot the "Focus on remaining party"

Create new variable: (*Member1*) with initial value (**) or number value (*0*)
Create new variable: (*Member2*) with initial value (**) or number value (*0*)
Create new variable: (*Member3*) with initial value (**) or number value (*0*)
Create new variable: (*Member4*) with initial value (**) or number value (*0*)
Create new variable: (*Member5*) with initial value (**) or number value (*0*)
Create new variable: (*Member6*) with initial value (**) or number value (*0*)
// (*1*) //
Set in variable (*Member1*) the name of the party member with (*Highest*) (*Strength*)
Create split party using the characters in (*Member1*)
(*Give to*) character (*{Member1}*) the condition (*Away*) with duration type (*Permanent*), number of rounds (*0*), origin (**), caster level (*0*) and amount (*0*)
Set dialog (*{Member1}*) from character (*Skeleton*) using selection colour (*Red*) and music (**) with volume (*100*) and display image (**) and display framed icon (**) and display under the portrait the (*Creature Name*) (**)
Add dialog answer (*continue*) with text colour (*Blue*) and set the answer as (*Selectable*) requiring the party skill (*Nothing*) or gold (*0*) or item(s) (**) or companion (**) or variable (**) equal/above/below (**) or achievement (**) or quest (**) and save the skilled character's name into the variable (**) and save the selected status of this answer into the variable (**)
Display dialog and wait for a click on a possible answer
Focus on (*Remaining party members*)
// (*2*) //
Set in variable (*Member2*) the name of the party member with (*Highest*) (*Strength*)
Create split party using the characters in (*Member2*)
(*Give to*) character (*{Member2}*) the condition (*Away*) with duration type (*Permanent*), number of rounds (*0*), origin (**), caster level (*0*) and amount (*0*)
Focus on (*Remaining party members*)
// (*3*) //
Set in variable (*Member3*) the name of the party member with (*Highest*) (*Strength*)
Create split party using the characters in (*Member3*)
(*Give to*) character (*{Member3}*) the condition (*Away*) with duration type (*Permanent*), number of rounds (*0*), origin (**), caster level (*0*) and amount (*0*)
Focus on (*Remaining party members*)
// (*4*) //
Set in variable (*Member4*) the name of the party member with (*Highest*) (*Strength*)
Create split party using the characters in (*Member4*)
(*Give to*) character (*{Member4}*) the condition (*Away*) with duration type (*Permanent*), number of rounds (*0*), origin (**), caster level (*0*) and amount (*0*)
Focus on (*Remaining party members*)
// (*5*) //
Set in variable (*Member5*) the name of the party member with (*Highest*) (*Strength*)
Create split party using the characters in (*Member5*)
(*Give to*) character (*{Member5}*) the condition (*Away*) with duration type (*Permanent*), number of rounds (*0*), origin (**), caster level (*0*) and amount (*0*)
Focus on (*Remaining party members*)
// (*6*) //
Set in variable (*Member6*) the name of the party member with (*Highest*) (*Strength*)
End party split and regroup characters
Set dialog (*{Member1},{Member2},{Member3},{Member4},{Member5},{Member6}*) from character (*Skeleton*) using selection colour (*Red*) and music (**) with volume (*100*) and display image (**) and display framed icon (**) and display under the portrait the (*Creature Name*) (**)
Add dialog answer (*continue*) with text colour (*Blue*) and set the answer as (*Selectable*) requiring the party skill (*Nothing*) or gold (*0*) or item(s) (**) or companion (**) or variable (**) equal/above/below (**) or achievement (**) or quest (**) and save the skilled character's name into the variable (**) and save the selected status of this answer into the variable (**)
Display dialog and wait for a click on a possible answer
End script
Raspelzahn
Kuo-toa (CR 2)
 
Posts: 6
Joined: Mon May 19, 2025 8:32 pm

Re: Get Names of all Party Members/Split Party without dialo

Postby BlueSalamander » Wed May 21, 2025 6:13 pm

Hello Raspelzahn and welcome! :)
I'm working on a Module with high-res Sprites and 2.5d-Maps. While around 20 maps are allready drawn
Awesome, keep up the great work!

Not sure what you wanted to do - I assume the party has exactly six characters? But still, you can't be certain that they're all in good health and active party members, so doing a split without new instructions could cause problems.

But yeah, I can add a few new instructions:

One expanding the "Set in variable ~ the party's ~" instruction - to put in a variable the comma-separated list of non-petrified/non-dead/non-away active characters.
One expanding the "Set character data in variable" instruction - to put in a variable the n-th element of a comma-separated string.
Another expanding the "Set character data in variable" instruction - to put in a variable the number of elements contained in a comma-separated list.

So then you'd be able to obtain the list of characters, and then from that list, for example a variable containing the name of the first character in the list and another variable containing the name of the second character in the list (you could also select one of the names at random). After that you could concatenate them into a new variable containing for example "Conan,Sonja" and use that to split the party (after checking that the list of party members has more than two names).

Is that something that would be useful to you?
'Say there is a chunk of meat. Pirates will have a banquet and eat it! But heroes will share it with other people. I want all the meat!!' - Luffy in One Piece
User avatar
BlueSalamander
Master Conjuror
 
Posts: 1943
Joined: Sun May 18, 2008 6:20 pm

Re: Get Names of all Party Members/Split Party without dialo

Postby Raspelzahn » Thu May 22, 2025 6:43 am

Thanks, Salamander for your help!

I also work with
set in variable .. *number of .. party members*
to evaluate the party size

I do have more questions now :roll:
On the worldmap use, my module crashes always.
Do you also work with set position of character, to go on the worldmap?
Is there a size, my worldmap has to be? Right now, it is 2048x1536px. Too big? Is that the reason why it crashes?

It is hard to find information about creating a module. I use the KotC2_Module_Editor_Guidebook.pdf, but it is not very deep. Because I bought KotC2 on Steam, I don't have access on this pages member login (where I might find more?).

Second question:
When I arrive on my second map, all the NPC disappear.
If I do save (S) and Load again (L), they are there again. Any Idea, what the reason could be?

PS: A little example, of how the game is gona look like. I have access to some PVGames tiles and some stuff, I draw by myself.
I am at home with a broken leg - lot's of time to work on it ;)
Attachments
town002.jpg
town002.jpg (76.32 KiB) Viewed 1006 times
Raspelzahn
Kuo-toa (CR 2)
 
Posts: 6
Joined: Mon May 19, 2025 8:32 pm

Re: Get Names of all Party Members/Split Party without dialo

Postby BlueSalamander » Fri May 23, 2025 12:12 am

Not a problem, I've added the extra instructions for the upcoming version 1.87.

I've also implemented a new "Auto Fill Skilled Answer" button to accelerate adding new dialogue answers (if the answer text starts with a skill in square brackets, like [Archery] or [Healing], when clicking on the new button the editor will fill the other fields automatically according to that skill).

On the worldmap use, my module crashes always.
Please send me your compressed module to enquiries@heroicfantasygames.com using WeTransfer and I'll let you know exactly what's going on (at least if I experience a crash).

Do you also work with set position of character, to go on the worldmap?
Yes, the "Set Position" of character instruction can be used to open the world map and place the player's Knight token on it. Alternatively, from the current map the player may be allowed to click on the "Game" icon (in the top-left corner) then on "World Map" to open the world map.

Is there a size, my worldmap has to be? Right now, it is 2048x1536px. Too big? Is that the reason why it crashes?
It's not too big. I have one of size 2825 x 2091, it works. I've had to switch the colour depth from 16 bits to 8 bits, though. You can also try both a PNG and JPG version of it.

Because I bought KotC2 on Steam, I don't have access on this pages member login (where I might find more?).
On the website, the content is the same as on Steam.

When I arrive on my second map, all the NPC disappear.
If I do save (S) and Load again (L), they are there again. Any Idea, what the reason could be?
Not sure, it sounds like a memory bug. Together with your module, please add a saved game just before this happens, and I'll check it out.

PS: A little example, of how the game is gona look like. I have access to some PVGames tiles and some stuff, I draw by myself.
Thanks! Awesome, it looks very nice.

Jesse of PVGames is working on a new fantasy pack, I'm looking forward to that and I'll update my PVGames assets once it's out.

Cheers! Best regards 8-)
'Say there is a chunk of meat. Pirates will have a banquet and eat it! But heroes will share it with other people. I want all the meat!!' - Luffy in One Piece
User avatar
BlueSalamander
Master Conjuror
 
Posts: 1943
Joined: Sun May 18, 2008 6:20 pm

Re: Get Names of all Party Members/Split Party without dialo

Postby Raspelzahn » Fri May 23, 2025 12:37 am

Whow, you are a beast! :o

Thanks for all the help and the speedy replies!
I very much like KotC2. The Temple of elemental Evil is my all time favorite and KotC2 is something very close imho. Deeper when it comes to combat, thats for sure

"Because I bought KotC2 on Steam, I don't have access on this pages member login (where I might find more?).
On the website, the content is the same as on Steam."

Good to know, merci bien!

"On the worldmap use, my module crashes always.
Please send me your compressed module to enquiries@heroicfantasygames.com using WeTransfer and I'll let you know exactly what's going on (at least if I experience a crash)."

I might work a little bit on my module first, before i'll send it to you. Maybe I find a solution by myself. Thanks for the offer.

"I've also implemented a new "Auto Fill Skilled Answer" button to accelerate adding new dialogue answers (if the answer text starts with a skill in square brackets, like [Archery] or [Healing], when clicking on the new button the editor will fill the other fields automatically according to that skill)."

Sounds great!
Thanks again for your great support!
Raspelzahn
Kuo-toa (CR 2)
 
Posts: 6
Joined: Mon May 19, 2025 8:32 pm

Re: Get Names of all Party Members/Split Party without dialo

Postby BlueSalamander » Fri May 23, 2025 12:52 am

No worries :)

You can also try a transition-to-world-map script containing only a single line: "Set Position" of party leader somewhere in your world map.

If that doesn't crash the world map, then the problem may be somewhere in the rest of your original script. Cheers 8-)
'Say there is a chunk of meat. Pirates will have a banquet and eat it! But heroes will share it with other people. I want all the meat!!' - Luffy in One Piece
User avatar
BlueSalamander
Master Conjuror
 
Posts: 1943
Joined: Sun May 18, 2008 6:20 pm

Re: Get Names of all Party Members/Split Party without dialo

Postby Raspelzahn » Sat May 24, 2025 8:36 am

I've sent the Module via Wetransfer. You should get the E-Mail.
It is far from beeing finished, but crashes makes testing difficult.
Many Thanks
Raspelzahn
Kuo-toa (CR 2)
 
Posts: 6
Joined: Mon May 19, 2025 8:32 pm

Re: Get Names of all Party Members/Split Party without dialo

Postby BlueSalamander » Sat May 24, 2025 8:58 am

Thanks, I can't download it without the password. Please send it to enquiries@heroicfantasygames.com
Cheers 8-)
'Say there is a chunk of meat. Pirates will have a banquet and eat it! But heroes will share it with other people. I want all the meat!!' - Luffy in One Piece
User avatar
BlueSalamander
Master Conjuror
 
Posts: 1943
Joined: Sun May 18, 2008 6:20 pm


Return to KotC 2 Forum for Adventure-Module Creation

Who is online

Users browsing this forum: No registered users and 118 guests

cron