VB13 Posted February 4, 2018 Posted February 4, 2018 Hi, everyone. One little question. I asked the same on Beamdog forums but I'm still a little lost about what to do. I'm creating a new campaign for BG2EE and I want to modify the starting xp of new players to 0, since I want them to start at level 1. I know how to set the Xp Cap in my coding, but if I make a modification in my tp2 to the STARTXP file, it would affect any other new game. Is there a way to code the starting xp at 0 only when my campaign begins? If so, how should I code this? One user send me this coding: ACTION_IF GAME_IS ~bg2ee~ THEN BEGIN COPY_EXISTING ~startare.2da~ ~override~ SET_2DA_ENTRY 12 1 1 ~1000~ BUT_ONLY END ACTION_IF FILE_EXISTS_IN_GAME ~startbp.2da~ THEN BEGIN COPY_EXISTING ~startbp.2da~ ~override~ SET_2DA_ENTRY 12 1 1 ~1000~ BUT_ONLY END If I figured it out, it should copy the STARTARE.2DA and set the xp to 0 if it starts a game in my campaign. I would also be able to determine the starting area and the position X,Y of the character, right? Thanks for your time. Quote
Roxanne Posted February 4, 2018 Posted February 4, 2018 You need to look into campaign.2da If you want to create your own campaign, you need to add it there. Then you can define all the other reference files it shall use for startpoint, xp etc. You also need to add your campaign to the selection screens (there was a thread here in the forum about that, just search for it.) Startbp.2da is just one example, As you can see in campaign.2da it defines some settings for BP=Black Pits Quote
Avenger Posted February 4, 2018 Posted February 4, 2018 Only sod uses the campaign.2da (bp doesn't). But, you might be able to create a 'campaign' in bg2ee Quote
Roxanne Posted February 4, 2018 Posted February 4, 2018 Only sod uses the campaign.2da (bp doesn't). But, you might be able to create a 'campaign' in bg2ee Right, I had my EET blinkers on...there we have a campaign for each part of the game. I should have mentioned this. Quote
VB13 Posted February 4, 2018 Author Posted February 4, 2018 I already figured the xp cap through the SOD but I do not remember if it included the starting area or the starting xp. From what I remember it cannot, then again I'm a newbie so it might have eluded me . That is why I asked about coding in Weidu to make sure it doesn't alter key 2DA. Thank you for your time and patience. : ) Quote
Avenger Posted February 5, 2018 Posted February 5, 2018 startarea.2da (in sod it is SODSTRTA) contains both (and some other stuff). Quote
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.