Winter said:
Deus Ex said:
I am messing around with party definitions etc as Winter suggested - and I have defined both parties and party templates. When I put code in that does the "party_add_member" function, I do not get an error - and I imagine there is a party somewhere that has the members in it - but there does not seem to be any way to "connect" it to the NPC - after I have assigned members to the "captain" group - and I tried doing it using the party_add_member as well as putting them in the initial declaration (in parties and parties_templates) in all cases when I have the NPC join me there do not appear to be any troops with him.
Ah, you didn't say this was a companion NPC! That changes things.
The first thing you need to tell us is
when exactly you're trying to add these troops. In a map encounter, the solution could potentially be very simple; do a [store_encountered_party,reg(0)], and then add the troops to reg(0). You can't do that in a trigger, obviously, so I can't offer you any help with that. Let me know if this works.
Winter
hmmm companion eh? I remember seeing that word in the code in a few places, but never took the time to figure out what it was for - still don't know *grin*.
So what is different about companions, and how do define them?
In any event, I see several applications for this - for npcs that may join your group, for other npc's that may be placed static and used for some purpose. I can see it being used in town and on the world map - so I would like to be able to do it ALL *BIG GRIN*
So far, I am testing using an npc modeled on one of the npc's like marnid, or borcha or one of the others. This captain has an spawn point in a tavern - and I have everything working for him to talk about himself, and join your group - he will leave on the world map and either wait, or return to the tavern.
I was testing to see if I could have him start with, or get some troops. Then I was going to use the "change_screen_exchange_members" call and see if he actually had the party members and also try to transfer them to the party.
But I am also interested in playing around with creating a party lead by an NPC to do things on the world map - to learn more about missions and triggers and such - thinking what it would be like to be able to have certain NPC lead parties static spawn, maybe patrol, have them able to join the player party even - or use them to set up encounters or battles.
So world map stuff and getting an NPC led party to spawn, and then be able to join (so I guess I gotta figure out this companion bit eh?).
If there is a write up on this somewhere, please link me - don't want to take up valuable time answering questions that are basic or obvious, or already answered. - I would also be happy to take it to PM or email if that would be preferred...
I am going to go back and make sure I can call "change_screen_exchange_members" succesfully with "captain" even when he has no troops - THEN I will worry about getting him some troops to play with.
So any information about how to use campanions to assign troops - or how to do it without using companions - in towns and out on the world map - would be appreciated - that's not asking too much, is it??
Once again, many thanks for all the help so far.
DE
If it would be helpful I can post or email code - but I don't know if that is needed really at this point.
EDIT: Ok it is really starting to look like the "change_screen_exchange_members" function only works on the world map. I am still relatively certain that the captain is not getting any troops in his group because when he joins me, they do not show up in my group