Jump to content


Photo

Changing starting xp for a new BG2EE Campaign


5 replies to this topic

#1 VB13

VB13
  • Members
  • 12 posts

Posted 03 February 2018 - 08:40 PM

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. :)

#2 Roxanne

Roxanne

    Modder

  • Modders
  • 2041 posts
  • Gender:Female
  • Location:Auckland, NZ

Posted 03 February 2018 - 11:36 PM

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


The Sandrah Saga

another piece of *buggy, cheesy, unbalanced junk*


#3 Avenger

Avenger
  • Modders
  • 3789 posts
  • Gender:Male
  • Location:Hungary

Posted 04 February 2018 - 09:35 AM

Only sod uses the campaign.2da (bp doesn't). 

But, you might be able to create a 'campaign' in bg2ee



#4 Roxanne

Roxanne

    Modder

  • Modders
  • 2041 posts
  • Gender:Female
  • Location:Auckland, NZ

Posted 04 February 2018 - 09:38 AM

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.


The Sandrah Saga

another piece of *buggy, cheesy, unbalanced junk*


#5 VB13

VB13
  • Members
  • 12 posts

Posted 04 February 2018 - 10:46 AM

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. : )

#6 Avenger

Avenger
  • Modders
  • 3789 posts
  • Gender:Male
  • Location:Hungary

Posted 05 February 2018 - 08:35 AM

 startarea.2da (in sod it is SODSTRTA) contains both (and some other stuff).





Reply to this topic



  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users