Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
#555336 21/09/14 07:45 AM
Joined: Sep 2014
S
Sismik Offline OP
stranger
OP Offline
stranger
S
Joined: Sep 2014
Hello guys,

Can you help me for two scripts, I expect easy for you.

1 )I want to add Xp to my party (just one time) when they enter in (box) trigger, line a first exploration.

2) Farmer guy lost his sheep, I need to find him. When I enter in a (box) trigger where the sheep is, the quest is complete.

Thanks for your help smile

Last edited by Sismik; 21/09/14 08:55 AM.
Sismik #555397 22/09/14 12:20 AM
Joined: Aug 2014
K
apprentice
Offline
apprentice
K
Joined: Aug 2014
Assuming you know how to make an IF statement and how to actually make an entire quest work fine.....

1) after the THEN statement, you can use the AddPartyExperience i think, to add XP to everyone.

2) QuestClose, to close the quest, and then you can use the AddPartyExperience again for more xp.

Tip: When you type something on the story editor, it shows every command with that name, you can try to experiment with these lines first, you can find out good things!

Last edited by Kolopaper; 22/09/14 12:21 AM.
Sismik #555477 22/09/14 02:15 PM
Joined: Oct 2008
A
ALF Offline
journeyman
Offline
journeyman
A
Joined: Oct 2008
Assuming you're working with a mod that uses the Main campaign.

1) Make a global box trigger. Generate your definitions in the editor. Create a sub goal of _Start to put your logic in. Call it "SheepQuest" or something. In the INIT section of that goal add your trigger to the DB_ExplorationZones database. It'll look like this: DB_ExplorationZones(TRIGGER_<YourTrigger>,1,<your_level>,<your_gain>);

<YourTrigger> will be the name of the global trigger you placed. <your_level> will be the level of the player you expect. This goes from 1 to 20. <your_gain> is a number from 1 to 10 to indicate how special that zone is. 1 is not very special. The XP your party get depends on those 2 numbers.

2) Create a global box trigger. Generate your definitions in the editor. In the INIT section of the SheepQuest goal we made in 1), add your trigger to the OneShotPlayerTrigger database. It'll look like this:
OneShotPlayerTrigger(TRIGGER_<yoursheeptrigger>);

Now in the KB section of your SheepQuest goal. React to the players walking into the trigger like this:

PROC
ProcOneShotTriggerEntered((CHARACTER)_,(TRIGGER)TRIGGER_<yoursheeptrigger>)
THEN
QuestUpdate("SheepQuest","FoundSheep");
QuestClose("SheepQuest");
GlobalSetEvent("FoundSheep"); //in case you want to check this in a dialog somewhere






Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5