Jump to content

weapon styles


kreso

Recommended Posts

Hello. I stumbled upon a Chinese BG2 page, called T.R.O.W. They have a mod in the downloads section, called Integeration mod. It combines features from Ease of Use, some extra tweaks on spells and classes etc. (Stalker gets Asassination & Evasion HLA's)

They also made a thing called weapon styles.

For example, if you have 2 stars in Sword and Shield style, not only do you gain -4AC vs missiles, but gain an extra AC point at levels 5, 10, 15, 20, 26.

Dual wield (3 stars)

off-hand (i think, Google translate) +2 to hit, -1 damage

Single weapon style bonuses & Two handed are (in addition to vanilla -2AC, +1critical range for Single and those for Two handed - speed, damage, +critical)

5: Hit -1

10: Hit -1, +1 damage

15: Hit -1, +1 damage, the number of attacks +0.5 (from Google translate).

I really like this idea. Wonder if it could be inplemented in Kit Revisions. I really like how AC gets better with levels if you are using S&Shield style, similar to like how your THAC0 improves.

Link to comment

I tried to explore their website but even translating everything here and there I couldn't find such mod. Can you link it to me?

 

Anyway, unless they have code-ninjas able to hack the game engine, afaik they only way to change weapon style is to use the main baldur script, something I was told to never touch for various reasons (I guess the main reason is that the more you fill that script the slower the game runs). Even assuming I could use such script, it would be a long "check player 1 weapon style proficiency points, check which weapon he is actually using (e.g. he may have ++ in single weapon but using a bow), if both checks are valid then assign x bonuses - rinse and repeat every "y time" (the shortest time possible) for every player (in theory for AI controlled enemies too). I really can't imagine this working without causing serious slowdowns. :(

 

Short story: I'm really curious to see how they have done it, IF they have done it.

 

I'd like to hope BGEE2 will remove the hardcodeness and attach a .2da file to them...but I fear it's just a dream.

Link to comment

Hi. Yes I can. But you need to be a forum member to download it. Anyway, here it is.

http://trow.cc/forum...showtopic=13036

They place scripts in baldur.bcs. For example;

 

IF

CheckStatGT(Player1,1,PROFICIENCY2HANDED)

Global("T2WP2H1","GLOBAL",0)

CheckStat(Player1,1,T2WP2H)

THEN

RESPONSE #100

ActionOverride(Player1,ReallyForceSpellRes("T2RMMELE",Myself))

ActionOverride(Player1,ReallyForceSpellRes("T2melee",Myself))

SetGlobal("T2WP2H1","GLOBAL",1)

Continue()

END

 

//ÒƳöЧ¹û

IF

Global("T2WP2H1","GLOBAL",1)

OR(2)

CheckStat(Player1,0,T2WP2H)

HasItemSlot(Player1,SLOT_SHIELD)

THEN

RESPONSE #100

ActionOverride(Player1,ReallyForceSpellRes("T2RMMELE",Myself))

SetGlobal("T2WP2H1","GLOBAL",0)

Continue()

END

 

IF

CheckStatGT(Player2,1,PROFICIENCY2HANDED)

Global("T2WP2H2","GLOBAL",0)

CheckStat(Player2,1,T2WP2H)

THEN

RESPONSE #100

ActionOverride(Player2,ReallyForceSpellRes("T2RMMELE",Myself))

ActionOverride(Player2,ReallyForceSpellRes("T2melee",Myself))

SetGlobal("T2WP2H2","GLOBAL",1)

Continue()

END

 

IF

Global("T2WP2H2","GLOBAL",1)

OR(2)

CheckStat(Player2,0,T2WP2H)

HasItemSlot(Player2,SLOT_SHIELD)

THEN

RESPONSE #100

ActionOverride(Player2,ReallyForceSpellRes("T2RMMELE",Myself))

SetGlobal("T2WP2H2","GLOBAL",0)

Continue()

END

 

IF

CheckStatGT(Player3,1,PROFICIENCY2HANDED)

Global("T2WP2H3","GLOBAL",0)

CheckStat(Player3,1,T2WP2H)

THEN

RESPONSE #100

ActionOverride(Player3,ReallyForceSpellRes("T2RMMELE",Myself))

ActionOverride(Player3,ReallyForceSpellRes("T2melee",Myself))

SetGlobal("T2WP2H3","GLOBAL",1)

Continue()

END

 

IF

Global("T2WP2H3","GLOBAL",1)

OR(2)

CheckStat(Player3,0,T2WP2H)

HasItemSlot(Player3,SLOT_SHIELD)

THEN

RESPONSE #100

ActionOverride(Player3,ReallyForceSpellRes("T2RMMELE",Myself))

SetGlobal("T2WP2H3","GLOBAL",0)

Continue()

END

 

IF

CheckStatGT(Player4,1,PROFICIENCY2HANDED)

Global("T2WP2H4","GLOBAL",0)

CheckStat(Player4,1,T2WP2H)

THEN

RESPONSE #100

ActionOverride(Player4,ReallyForceSpellRes("T2RMMELE",Myself))

ActionOverride(Player4,ReallyForceSpellRes("T2melee",Myself))

SetGlobal("T2WP2H4","GLOBAL",1)

Continue()

END

 

IF

Global("T2WP2H4","GLOBAL",1)

OR(2)

CheckStat(Player4,0,T2WP2H)

HasItemSlot(Player4,SLOT_SHIELD)

THEN

RESPONSE #100

ActionOverride(Player4,ReallyForceSpellRes("T2RMMELE",Myself))

SetGlobal("T2WP2H4","GLOBAL",0)

Continue()

END

 

IF

CheckStatGT(Player5,1,PROFICIENCY2HANDED)

Global("T2WP2H5","GLOBAL",0)

CheckStat(Player5,1,T2WP2H)

THEN

RESPONSE #100

ActionOverride(Player5,ReallyForceSpellRes("T2RMMELE",Myself))

ActionOverride(Player5,ReallyForceSpellRes("T2melee",Myself))

SetGlobal("T2WP2H5","GLOBAL",1)

Continue()

END

 

IF

Global("T2WP2H5","GLOBAL",1)

OR(2)

CheckStat(Player5,0,T2WP2H)

HasItemSlot(Player5,SLOT_SHIELD)

THEN

RESPONSE #100

ActionOverride(Player5,ReallyForceSpellRes("T2RMMELE",Myself))

SetGlobal("T2WP2H5","GLOBAL",0)

Continue()

END

etc.

 

 

It doesn't slow the game a bit. I played a megamod install with Infinity Animations and it went perfectly smooth. (And I don't have an uber PC, rather low-end). My best guess is - this doesn't work for enemies, but I don't do mods... I can't remember where I downloaded the mod itself, but I can send it to you if u want.

Link to comment

Got it. This sends you to their BG2 Tactical mods downloads page :

http://trow.cc/forum...loads&showcat=3

 

From what else I managed to read from their forums, mod creator had more than a few problems with this particular component, but it works fine on my install (I think it's fixed in this version, 1.13). Moreover, if I install this tweak over Item Revision (even Revised shield bonuses component) I get all the benefits. The script somehow patches all Shield, weapon etc. items to provide extra bonuses for weapon styles. It doesn't work viceversa I think. If I add a shield to my install it will provide no bonuses. It only works for items already in the game (even mod-added ones) when this mod component is installed.

 

This http://trow.cc/forum...showtopic=10324 takes you to the mod readme file, which is untranslatable(!?) by Google if you use the one provided by mod download. You might have difficulties reading it anyway. Some best examples:

Zhao Lei surgery - Call Lightning.

Pastor of the two knife Shield - ??

Nani-Ya - Nalia

Nine Lives - my guess Avoid death.

Sneak by - Stalker (kit)

Have fun!

Link to comment

Guess what, they did it exactly as I supposed in my previous post. :)

 

I need some time to think about it, but I'm really curious to know what Arda or Mike think about it. I don't trust my coding knowledge/skill enough. :D

Link to comment

Short answer - can't be done in a consistent and reliable manner.

Long answer - see Demi's post.

 

One of Revisions' priorities is to maintain maximum possible integrity with AI enhancing mods (okay, with DavidW's and aVENGER's mods :D ), and preferably avoid relying upon fragile technical solutions. Neither is possible with the method used by this mod.

Link to comment

Archived

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

×
×
  • Create New...