Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NWN-ish Barbarian Rage #103

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed cdtweaks/bam/cdhlfrls.bam
Binary file not shown.
Binary file removed cdtweaks/bam/cdhlgaim.bam
Binary file not shown.
Binary file removed cdtweaks/bam/cdpsnsav.bam
Binary file not shown.
Binary file removed cdtweaks/bam/gtdrkbls.bam
Binary file not shown.
Binary file removed cdtweaks/bam/gtdvngrc.bam
Binary file not shown.
Binary file removed cdtweaks/bam/gtmharmr.bam
Binary file not shown.
Binary file removed cdtweaks/bam/gtwpnfin.bam
Binary file not shown.
2 changes: 1 addition & 1 deletion cdtweaks/languages/english/dual_wield.tra
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@0 = "Medium or Heavy Armor Equipped"
@0 = "Dual-Wield"
19 changes: 19 additions & 0 deletions cdtweaks/languages/english/nwn_barbarian_rage.tra
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@0 = "Barbarian Rage

The character is enraged for 7 rounds (plus a number of rounds equal to his Constitution modifier), which grants the character a +4 bonus to Strength and Constitution, a -2 penalty to Armor Class, and a +2 bonus to Saving Throws vs. Spell.

Terrifying Rage: While the barbarian is raging, any enemy (with less than the barbarian's hit dice) that comes close to him must make a Save vs. Death or become panicked for 1d3 rounds. Opponents with the same hit dice as the barbarian will not flee but will receive a -2 penalty to attack and saving throw rolls. Creatures with more than the barbarian's hit dice are not affected by the rage.

Thundering Rage: Any weapon the barbarian wields while in a rage does an additional 2d6 points of damage on a critical hit. There is a 25% chance for a creature hit by one of the barbarian's weapons to be deafened for 3 rounds.
"

@1 = "Terrifying Rage"

@2 = "Thundering Rage (Critical Hit)"
@3 = "Thundering Rage (Deafness)"
@4 = "Deafened"

@5 = "The selected character is already under the effects of Barbarian Rage"
@6 = "Trembling with fear"
@7 = "Panic"
@8 = "Unaffected by effects from Terrifying Rage"
64 changes: 36 additions & 28 deletions cdtweaks/languages/english/weidu.tra
Original file line number Diff line number Diff line change
Expand Up @@ -457,34 +457,6 @@ The uninstall messages above are normal and expected.

@264000 = "PnP Potions [Luke]"

@265000 = "Spontaneous Casting for Clerics [Luke]"

@266000 = "Weapon Finesse feat for Thieves [Luke]"

@267000 = "Dual-Wield feat for Rangers [Luke]"

@268000 = ~"Force" the Archer kit to use bows [Luke]~

@269000 = "NWN-ish Armor vs. Dexterity [Luke]"

@270000 = "Defensive Roll feat for Thieves [Luke]"

@271000 = "Divine Grace / Dark Blessing feat for Paladins / Blackguards [Luke]"

@272000 = "Good Aim racial feat for Halflings [Luke]"

@273000 = "Cleave Feat for Fighters [Luke]"

@274000 = "Sneak Attack class feat for Blackguards [Luke]"

@275000 = "Fearless racial feat for Halflings [Luke]"

@276000 = "Poison Save class feat for Assassins [Luke]"

@277000 = "Planar Turning class feat for Clerics / Paladins [Luke]"

@278000 = "Circle Kick class feat for Monks [Luke]"

/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
///// \\\\\
Expand Down Expand Up @@ -802,3 +774,39 @@ Use Baldur.lua options: a7_interval_ini
@504000 = ~Allow Yeslick to Use Axes~

@505000 = ~Ensure Shar-Teel Doesn't Die in the Original Challenge~

/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
///// \\\\\
///// NWN-ish feats collection \\\\\
///// \\\\\
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\

@600030 = "Spontaneous Casting for Clerics [Luke (EEex)]"

@600040 = "Weapon Finesse class feat for Thieves [Luke (EEex)]"

@600050 = "Dual-Wield class feat for Rangers [Luke (EEex)]"

@600060 = "NWN-ish Armor vs. Dexterity [Luke (EEex)]"

@600070 = "Defensive Roll class feat for Thieves [Luke (EEex)]"

@600080 = "Divine Grace / Dark Blessing feat for Paladins / Blackguards [Luke (EEex)]"

@600090 = "Good Aim racial feat for Halflings [Luke (EEex)]"

@600100 = "Cleave class feat for Fighters [Luke (EEex)]"

@600110 = "Sneak Attack class feat for Blackguards [Luke (EEex)]"

@600120 = "Fearless racial feat for Halflings [Luke (EEex)]"

@600130 = "Poison Save class feat for Assassins [Luke (EEex)]"

@600140 = "Planar Turning class feat for Clerics / Paladins [Luke (EEex)]"

@600150 = "Circle Kick class feat for Monks [Luke (EEex)]"

@600160 = "NWN-ish Barbarian Rage [Luke (EEex)]"
2 changes: 1 addition & 1 deletion cdtweaks/languages/italian/dual_wield.tra
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@0 = "Armatura Media o Pesante Equipaggiata"
@0 = "Doppia-Presa"
19 changes: 19 additions & 0 deletions cdtweaks/languages/italian/nwn_barbarian_rage.tra
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@0 = "Ira Barbarica

La condizione di ira dura per 7 round (più un numero di round pari al modificatore di Costituzione del barbaro) e fornisce un bonus pari a +4 alla Forza e alla Costituzione, una penalità pari a -2 alla Classe Armatura e un bonus pari a +2 ai tiri-salvezza contro Incantesimi.

Ira Terrificante: Mentre il barbaro è in preda all'ira, i nemici (con un dado-vita inferiore a quello del barbaro) che gli si avvicinano devono effettuare un tiro-salvezza contro Morte o cadere in preda al panico per 1d3 round. Nel caso in cui abbiano un dado-vita pari a quello del barbaro, riceveranno una penalità di -2 ai tiri-salvezza e al thac0. Se invece dovessero avere un dado-vita superiore a quello del barbaro, allora non subirebbero alcun effetto.

Ira Tonante: Mentre il barbaro è in preda all'ira, i suoi colpi critici causano 2d6 punti danno aggiuntivi. Inoltre, i suoi attacchi hanno il 25% di possibilità di assordare la creatura colpita.
"

@1 = "Ira Terrificante"

@2 = "Ira Tonante (Colpo Critico)"
@3 = "Ira Tonante (Assordare)"
@4 = "Assordato"

@5 = "Il personaggio selezionato è già in preda a Ira Barbarica"
@6 = "Tremando per la paura"
@7 = "Panico"
@8 = "Non soggetto agli effetti di Ira Terrificante"
62 changes: 36 additions & 26 deletions cdtweaks/languages/italian/weidu.tra
Original file line number Diff line number Diff line change
Expand Up @@ -410,32 +410,6 @@ o rimpiazzata da - un'altra facente parte di uno dei mods installati.~
// @257000 = ~BGT: Limite di esperienza aggiuntivo mentre sei in BG~
// @257100 = ~BGT: Limite di esperienza aggiuntivo in SoA~

@265000 = "Aggiungi talento di classe Lancio Spontaneo per i Chierici [Luke]"

@266000 = "Aggiungi talento Arma Preferita per i Ladri [Luke]"

@267000 = "Aggiungi talento Doppia-Presa per i Ranger [Luke]"

@269000 = "Armatura vs. Destrezza in stile NWN [Luke]"

@270000 = "Aggiungi talento Tiro Difensivo per i ladri [Luke]"

@271000 = "Grazia Divina / Benedizione Oscura per Paladini / Guardie Nere [Luke]"

@272000 = "Aggiungi talento razziale Buona Mira per gli Halfling [Luke]"

@273000 = "Aggiungi talento di classe Incalzare per i Guerrieri [Luke]"

@274000 = "Aggiungi talento di classe Attacco Furtivo per Guardie Nere [Luke]"

@275000 = "Aggiungi talento razziale Temerario per gli Halfling [Luke]"

@276000 = "Aggiungi talento di classe Resistenza ai Veleni per Assassini [Luke]"

@277000 = "Aggiungi talento di classe Scacciare Creature Extraplanari per Paladini e Chierici [Luke]"

@278000 = "Aggiungi talento di classe Calcio Rotante per i Monaci [Luke]"

/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
///// \\\\\
Expand Down Expand Up @@ -718,3 +692,39 @@ Usa opzioni di Baldur.lua: a7_interval_ini
@504000 = ~Permettere a Yeslick di usare le asce~

@505000 = ~Assicura che Shar-Teel non muoia nella sfida iniziale~

/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
///// \\\\\
///// Raccolta di talenti in stile NWN \\\\\
///// \\\\\
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\

@600030 = "Aggiungi talento di classe Lancio Spontaneo per i Chierici [Luke (EEex)]"

@600040 = "Aggiungi talento di classe Arma Preferita per i Ladri [Luke (EEex)]"

@600050 = "Aggiungi talento di classe Doppia-Presa per i Ranger [Luke (EEex)]"

@600060 = "Armatura vs. Destrezza in stile NWN [Luke (EEex)]"

@600070 = "Aggiungi talento di classe Tiro Difensivo per i ladri [Luke (EEex)]"

@600080 = "Grazia Divina / Benedizione Oscura per Paladini / Guardie Nere [Luke (EEex)]"

@600090 = "Aggiungi talento razziale Buona Mira per gli Halfling [Luke (EEex)]"

@600100 = "Aggiungi talento di classe Incalzare per i Guerrieri [Luke (EEex)]"

@600110 = "Aggiungi talento di classe Attacco Furtivo per Guardie Nere [Luke (EEex)]"

@600120 = "Aggiungi talento razziale Temerario per gli Halfling [Luke (EEex)]"

@600130 = "Aggiungi talento di classe Resistenza ai Veleni per Assassini [Luke (EEex)]"

@600140 = "Aggiungi talento di classe Scacciare Creature Extraplanari per Paladini e Chierici [Luke (EEex)]"

@600150 = "Aggiungi talento di classe Calcio Rotante per i Monaci [Luke (EEex)]"

@600160 = "Ira Barbarica in stile NWN [Luke (EEex)]"
50 changes: 32 additions & 18 deletions cdtweaks/lib/circle_kick.tph
Original file line number Diff line number Diff line change
@@ -1,27 +1,41 @@
DEFINE_ACTION_FUNCTION "CIRCLE_KICK"
BEGIN
CREATE "eff" "cdcrkick"
COPY_EXISTING "cdcrkick.eff" "override"
WRITE_LONG 0x10 402 // invoke lua
WRITE_SHORT 0x2C 100 // prob1
WRITE_ASCII 0x30 "GTCKICK1" #8 // lua function
BUT_ONLY
LAF "GT_ADD_SPELL"
INT_VAR
"level" = 8
"type" = 4
STR_VAR
"idsName" = "MONK_CIRCLE_KICK"
RET
"MONK_CIRCLE_KICK" = "resName"
END
//
CREATE "spl" "cdcrkick"
COPY_EXISTING "cdcrkick.spl" "override"
WRITE_LONG NAME1 RESOLVE_STR_REF (@0)
WRITE_LONG 0x18 BIT14 // flags: ignore dead/wild magic
WRITE_SHORT 0x1C 4 // type: innate
WRITE_LONG 0x34 1 // level
WITH_SCOPE BEGIN
ACTION_TO_LOWER "MONK_CIRCLE_KICK"
//
LPF "ADD_SPELL_HEADER" INT_VAR "range" = 30 END
CREATE "eff" "%MONK_CIRCLE_KICK%b"
COPY_EXISTING "%MONK_CIRCLE_KICK%b.eff" "override"
WRITE_LONG 0x10 402 // invoke lua
WRITE_SHORT 0x2C 100 // prob1
WRITE_LONG 0x1C 1 // parameter1
WRITE_ASCII 0x30 "%MONK_CIRCLE_KICK%" #8 // lua function
BUT_ONLY
//
LPF "ADD_SPELL_EFFECT" INT_VAR "opcode" = 402 "target" = 2 STR_VAR "resource" = "GTCKICK2" END // invoke lua
BUT_ONLY_IF_IT_CHANGES
CREATE "spl" "%MONK_CIRCLE_KICK%b"
COPY_EXISTING "%MONK_CIRCLE_KICK%b.spl" "override"
WRITE_LONG NAME1 RESOLVE_STR_REF (@0)
WRITE_LONG 0x18 BIT14 // flags: ignore dead/wild magic
WRITE_SHORT 0x1C 4 // type: innate
WRITE_LONG 0x34 1 // level
//
LPF "ADD_SPELL_HEADER" INT_VAR "range" = 30 END
//
LPF "ADD_SPELL_EFFECT" INT_VAR "opcode" = 402 "target" = 2 "parameter1" = 2 STR_VAR "resource" = "%MONK_CIRCLE_KICK%" END // invoke lua
BUT_ONLY_IF_IT_CHANGES
END
// Listener: run 'func' each time a sprite has finished evaluating its effects
LAF "APPEND_LUA_FUNCTION" STR_VAR "description" = "Listeners" "sourceFileSpec" = "cdtweaks\luke\lua\circle_kick_grant.lua" "destRes" = "m_gtlstn" END
//
LAF "APPEND_LUA_FUNCTION" STR_VAR "description" = "Functions to be invoked via op402" "sourceFileSpec" = "cdtweaks\luke\lua\circle_kick.lua" "destRes" = "m_gt#402" END
LAF "APPEND_LUA_FUNCTION" STR_VAR "description" = "Class/Kit Abilities" "sourceFileSpec" = "cdtweaks\luke\lua\class\circle_kick.lua" "destRes" = "m_gtspcl" END
LAF "APPEND_LUA_FUNCTION" STR_VAR "description" = "AI-related stuff" "sourceFileSpec" = "cdtweaks\luke\lua\ai\object_type.lua" "destRes" = "m_gt#ai" END
//
ACTION_IF !(FILE_EXISTS_IN_GAME "m_gttbls.lua") BEGIN
COPY "cdtweaks\luke\lua\m_gttbls.lua" "override"
Expand Down
52 changes: 33 additions & 19 deletions cdtweaks/lib/cleave.tph
Original file line number Diff line number Diff line change
@@ -1,28 +1,42 @@
DEFINE_ACTION_FUNCTION "CLEAVE"
BEGIN
CREATE "eff" "cdcleave"
COPY_EXISTING "cdcleave.eff" "override"
WRITE_LONG 0x10 402 // invoke lua
WRITE_SHORT 0x2C 100 // prob1
WRITE_ASCII 0x30 "GTCLV01" #8 // lua function
BUT_ONLY
LAF "GT_ADD_SPELL"
INT_VAR
"level" = 1
"type" = 4
STR_VAR
"idsName" = "FIGHTER_CLEAVE"
RET
"FIGHTER_CLEAVE" = "resName"
END
//
CREATE "spl" "cdcleave"
COPY_EXISTING "cdcleave.spl" "override"
WRITE_LONG NAME1 RESOLVE_STR_REF (@0)
WRITE_LONG 0x18 BIT14 // flags: ignore dead/wild magic
WRITE_SHORT 0x1C 4 // type: innate
WRITE_LONG 0x34 1 // level
WITH_SCOPE BEGIN
ACTION_TO_LOWER "FIGHTER_CLEAVE"
//
LPF "ADD_SPELL_HEADER" INT_VAR "range" = 30 END
CREATE "eff" "%FIGHTER_CLEAVE%b"
COPY_EXISTING "%FIGHTER_CLEAVE%b.eff" "override"
WRITE_LONG 0x10 402 // invoke lua
WRITE_SHORT 0x2C 100 // prob1
WRITE_LONG 0x1C 1 // parameter1
WRITE_ASCII 0x30 "%FIGHTER_CLEAVE%" #8 // lua function
BUT_ONLY
//
LPF "ADD_SPELL_EFFECT" INT_VAR "opcode" = 138 "target" = 1 "timing" = 1 END // Set animation sequence (ATTACK) -- probably not needed...?
LPF "ADD_SPELL_EFFECT" INT_VAR "opcode" = 402 "target" = 2 STR_VAR "resource" = "GTCLV02" END // invoke lua
BUT_ONLY_IF_IT_CHANGES
CREATE "spl" "%FIGHTER_CLEAVE%b"
COPY_EXISTING "%FIGHTER_CLEAVE%b.spl" "override"
WRITE_LONG NAME1 RESOLVE_STR_REF (@0)
WRITE_LONG 0x18 BIT14 // flags: ignore dead/wild magic
WRITE_SHORT 0x1C 4 // type: innate
WRITE_LONG 0x34 1 // level
//
LPF "ADD_SPELL_HEADER" INT_VAR "range" = 30 END
//
LPF "ADD_SPELL_EFFECT" INT_VAR "opcode" = 138 "target" = 1 "timing" = 1 END // Set animation sequence (ATTACK) -- probably not needed...?
LPF "ADD_SPELL_EFFECT" INT_VAR "opcode" = 402 "target" = 2 "parameter1" = 2 STR_VAR "resource" = "%FIGHTER_CLEAVE%" END // invoke lua
BUT_ONLY_IF_IT_CHANGES
END
// Listener: run 'func' each time a sprite has finished evaluating its effects
LAF "APPEND_LUA_FUNCTION" STR_VAR "description" = "Listeners" "sourceFileSpec" = "cdtweaks\luke\lua\cleave_grant.lua" "destRes" = "m_gtlstn" END
//
LAF "APPEND_LUA_FUNCTION" STR_VAR "description" = "Functions to be invoked via op402" "sourceFileSpec" = "cdtweaks\luke\lua\cleave.lua" "destRes" = "m_gt#402" END
LAF "APPEND_LUA_FUNCTION" STR_VAR "description" = "Class/Kit Abilities" "sourceFileSpec" = "cdtweaks\luke\lua\class\cleave.lua" "destRes" = "m_gtspcl" END
LAF "APPEND_LUA_FUNCTION" STR_VAR "description" = "AI-related stuff" "sourceFileSpec" = "cdtweaks\luke\lua\ai\object_type.lua" "destRes" = "m_gt#ai" END
//
ACTION_IF !(FILE_EXISTS_IN_GAME "m_gttbls.lua") BEGIN
COPY "cdtweaks\luke\lua\m_gttbls.lua" "override"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions cdtweaks/lib/comp_6160.tpa
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////
///// /////
///// NWN-ish Barbarian Rage \\\\\
///// \\\\\
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////

WITH_SCOPE BEGIN
INCLUDE "cdtweaks\luke\misc.tph"
INCLUDE "cdtweaks\ardanis\functions.tph"
//
INCLUDE "cdtweaks\lib\nwn_barbarian_rage.tph"
//
WITH_TRA "cdtweaks\languages\english\nwn_barbarian_rage.tra" "cdtweaks\languages\%LANGUAGE%\nwn_barbarian_rage.tra" BEGIN
LAF "NWN_BARBARIAN_RAGE" END
END
END
19 changes: 16 additions & 3 deletions cdtweaks/lib/defensive_roll.tph
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
DEFINE_ACTION_FUNCTION "DEFENSIVE_ROLL"
BEGIN
LAF "GT_ADD_SPELL"
INT_VAR
"level" = 4
"type" = 4
STR_VAR
"idsName" = "ROGUE_DEFENSIVE_ROLL"
RET
"ROGUE_DEFENSIVE_ROLL" = "resName"
END
//
WITH_SCOPE BEGIN
OUTER_SET "feedback_strref" = RESOLVE_STR_REF (@0)
LAF "APPEND_LUA_FUNCTION" STR_VAR "description" = "Functions to be invoked via op403" "sourceFileSpec" = "cdtweaks\luke\lua\defensive_roll.lua" "destRes" = "m_gt#403" END
// Listener: run 'func' each time a sprite has finished evaluating its effects
LAF "APPEND_LUA_FUNCTION" STR_VAR "description" = "Class/Kit Abilities" "sourceFileSpec" = "cdtweaks\luke\lua\class\defensive_roll.lua" "destRes" = "m_gtspcl" END
END
//
ACTION_IF !(FILE_EXISTS_IN_GAME "m_gttbls.lua") BEGIN
COPY "cdtweaks\luke\lua\m_gttbls.lua" "override"
END
// Listener: run 'func' each time a sprite has finished evaluating its effects
LAF "APPEND_LUA_FUNCTION" STR_VAR "description" = "Listeners" "sourceFileSpec" = "cdtweaks\luke\lua\defensive_roll_apply.lua" "destRes" = "m_gtlstn" END
END
Loading