Jump to content

A couple of things..


St_Vitruvius

Recommended Posts

I've been looking into a number of different things and thought I might post a couple of questions.

 

First of: I've been looking into making ability and alignment checks during a dialogue. Ex.: STR must be 15 or more and you must be of good alignment. I've tried this, without any luck:

 

IF ~~ THEN BEGIN SR_CHOOS20a
 SAY ~What is your STR and DEX?~
 IF ~CheckStat(Myself,STR,15) CheckStat(Myself,DEX,15)~ THEN REPLY ~Both are 15 or more!~ GOTO SR_CHOOS20
 IF ~CheckStat(Myself,STR,15) !CheckStat(Myself,STR,15)~ THEN REPLY ~Only one is 15 or more.~ GOTO SR_CHOOS20
 IF ~!CheckStat(Myself,STR,15) CheckStat(Myself,STR,15)~ THEN REPLY ~Only one is 15 or more.~ GOTO SR_CHOOS20
 IF ~~ THEN REPLY ~Both are below 15..~ GOTO SR_CHOOS20
END

 

As of now, BG2 seems not to do the checks and displays no choises or replies..

CheckStat(O:Object*,I:Value*,I:StatNum*Stats) is from TRIGGER.IDS.

What would be the correct syntax for multiple conditions along this line?

 

Second:

Can I lower an Elfs (with a certain kit) resistance to charm/sleep? I see that both BG1UB and BG2Fixpack changes a (Half-)Elfs resistance.

BG1UB does it, I believe, by modifying the spells and items, while BG2Fixpack does it by modifying the race. Am I correct?

Can I use the eff's from BG2Fixpack to create a spl, that lowers the resistance by, say, 10 %?

 

Third:

If I wanted to create a new School of Magic (for mages) and assign it to only a certain Mage Kit, how would I do that?

I've had a look at Spell Revisions, but can't see how Demivrgvs creates his Universal School of Magic. Is it just at matter of creating the scrolls and setting it to be only useable by "X kit"?

 

Fouth:

How would I best adjust a characters reaction modifier by one or two points? Using NI I've found a spell-effect that is called "Set Reaction". It sounds like this will force a certain reaction more than adjust the reactin modifier it self.

But for some reason, when I give a kit "Set Reaction -2" his ingame reaction modifier is lowered only by 1.

Is it a perk of how the reaction modifier is calculated or is it something else?

Link to comment

I've been looking into a number of different things and thought I might post a couple of questions.

 

First of: I've been looking into making ability and alignment checks during a dialogue. Ex.: STR must be 15 or more and you must be of good alignment. I've tried this, without any luck:

 

IF ~~ THEN BEGIN SR_CHOOS20a
 SAY ~What is your STR and DEX?~
 IF ~CheckStat(Myself,STR,15) CheckStat(Myself,DEX,15)~ THEN REPLY ~Both are 15 or more!~ GOTO SR_CHOOS20
 IF ~CheckStat(Myself,STR,15) !CheckStat(Myself,STR,15)~ THEN REPLY ~Only one is 15 or more.~ GOTO SR_CHOOS20
 IF ~!CheckStat(Myself,STR,15) CheckStat(Myself,STR,15)~ THEN REPLY ~Only one is 15 or more.~ GOTO SR_CHOOS20
 IF ~~ THEN REPLY ~Both are below 15..~ GOTO SR_CHOOS20
END

 

As of now, BG2 seems not to do the checks and displays no choises or replies..

CheckStat(O:Object*,I:Value*,I:StatNum*Stats) is from TRIGGER.IDS.

What would be the correct syntax for multiple conditions along this line?

The first would be

CheckStatGT(Player1,15,STR)

As for alignment, it's

Alignment(Player1,MASK_GOOD)

If the dialogue is not necessarily with the main player, LastTalkedToBy is a good replacement for Player1.

 

Second:

Can I lower an Elfs (with a certain kit) resistance to charm/sleep? I see that both BG1UB and BG2Fixpack changes a (Half-)Elfs resistance.

BG1UB does it, I believe, by modifying the spells and items, while BG2Fixpack does it by modifying the race. Am I correct?

Can I use the eff's from BG2Fixpack to create a spl, that lowers the resistance by, say, 10 %?

BG2Fixpack mods all the spells and items that apply charm/sleep to first have a 30% or 90% chance of applying immunity effects against charm/sleep if the target is a half-elf or elf respectively.

 

I'm not sure if there's an easy way to go about overriding that (maybe you could give your kit immunity to the immunity-granting spells, and then create your own immunity-granting effects targeting your kit and the races using different percentages).

 

Third:

If I wanted to create a new School of Magic (for mages) and assign it to only a certain Mage Kit, how would I do that?

I've had a look at Spell Revisions, but can't see how Demivrgvs creates his Universal School of Magic. Is it just at matter of creating the scrolls and setting it to be only useable by "X kit"?

The spell schools correspond to the kit usabilities. Both the scroll .itm and the .spl file have usability/exclusion flags - the spell can be limited from any of the 8 traditional schools and also from generalists. (Wild magic checks all the boxes.) The Universal school is just a name for spells that are not limited from any of the specialists.

Link to comment

Second:

Can I lower an Elfs (with a certain kit) resistance to charm/sleep? I see that both BG1UB and BG2Fixpack changes a (Half-)Elfs resistance.

BG1UB does it, I believe, by modifying the spells and items, while BG2Fixpack does it by modifying the race. Am I correct?

Can I use the eff's from BG2Fixpack to create a spl, that lowers the resistance by, say, 10 %?

They both do it the same way, by modifying the spells and items. You can't do it by race or kit/clab, since the game would only roll the percentage once and your character would either be always immune or never immune depending on the one roll.

 

This could be done, but it'd be a complicated, messy collection of overlapping effects and eff files.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...