-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from 4Luke4/disarm
New Component: NWN-ish Disarm
- Loading branch information
Showing
12 changed files
with
751 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@0 = "Disarm" | ||
|
||
@1 = "Disarm | ||
|
||
The character can attempt to disarm an opponent in melee combat. The combatant with the larger weapon gains a +2 bonus per size category of difference. If the opponent fails a Save vs. Breath, then the weapon flies from the opponent's hands." | ||
|
||
//@100 = "The selected target is out of range" | ||
@101 = "Disarm Canceled: Inventory full" | ||
@102 = "Disarm: Resisted" | ||
@103 = "Disarm: Hit" | ||
@104 = "This feat cannot be used while wielding a ranged weapon" | ||
@105 = "The targeted creature cannot be disarmed" | ||
//@106 = "Unaffected by effects from Disarm" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@0 = "Disarmare" | ||
|
||
@1 = "Disarmare | ||
|
||
Il personaggio può tentare di disarmare un avversario durante un combattimento in mischia. Il combattente con l'arma più grande ottiene un bonus di +2 per ogni categoria di taglia di differenza. Se l'avversario fallisce un tiro-salvezza contro Soffio, l'arma gli vola via dalle mani." | ||
|
||
//@100 = "Il bersaglio selezionato è fuori portata" | ||
@101 = "Disarmare Annullato: Inventario pieno" | ||
@102 = "Disarmare: Resistito" | ||
@103 = "Disarmare: Colpito" | ||
@104 = "Questa abilità non può essere usata mentre si brandisce un'arma a distanza" | ||
@105 = "La creatura selezionata non può essere disarmata" | ||
//@106 = "Non soggetto agli effetti di Disarmare" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\ | ||
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\ | ||
///// \\\\\ | ||
///// Disarm class feat for Rogues \\\\\ | ||
///// \\\\\ | ||
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\ | ||
/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\/////\\\\\ | ||
|
||
WITH_SCOPE BEGIN | ||
INCLUDE "cdtweaks\luke\misc.tph" | ||
INCLUDE "cdtweaks\ardanis\functions.tph" | ||
// | ||
INCLUDE "cdtweaks\lib\disarm.tph" | ||
WITH_TRA "cdtweaks\languages\english\disarm.tra" "cdtweaks\languages\%LANGUAGE%\disarm.tra" BEGIN | ||
LAF "DISARM" END | ||
END | ||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
DEFINE_ACTION_FUNCTION "DISARM" | ||
BEGIN | ||
LAF "GT_ADD_SPELL" | ||
INT_VAR | ||
"level" = 4 | ||
"preferredSlot" = 44 | ||
"type" = 4 | ||
STR_VAR | ||
"idsName" = "THIEF_DISARM" | ||
RET | ||
"THIEF_DISARM" = "resName" | ||
END | ||
// | ||
WITH_SCOPE BEGIN | ||
ACTION_TO_LOWER "THIEF_DISARM" | ||
// Disarm (main spl file) | ||
CREATE "spl" "%THIEF_DISARM%" | ||
COPY_EXISTING "%THIEF_DISARM%.spl" "override" | ||
WRITE_LONG NAME1 RESOLVE_STR_REF (@0) | ||
WRITE_LONG NAME2 "-1" | ||
WRITE_LONG UNIDENTIFIED_DESC RESOLVE_STR_REF (@1) | ||
WRITE_LONG DESC "-1" | ||
WRITE_LONG 0x18 (BIT14 BOR BIT25) // ignore dead/wild magic, castable when silenced | ||
WRITE_SHORT 0x1C 4 // innate | ||
WRITE_LONG 0x34 1 // level | ||
WRITE_ASCII 0x3A "%DEST_RES%B" #8 // icon | ||
// | ||
LPF "ADD_SPELL_HEADER" INT_VAR "range" = 0 STR_VAR "icon" = "%DEST_RES%B" END | ||
// | ||
LPF "ADD_SPELL_EFFECT" INT_VAR "opcode" = 138 "target" = 1 "parameter2" = 0 END // SEQ_ATTACK | ||
BUT_ONLY | ||
// icon | ||
COPY "cdtweaks\luke\bam\class\disarm.bam" "override\%THIEF_DISARM%b.bam" | ||
END | ||
// lua | ||
WITH_SCOPE BEGIN | ||
OUTER_SET "feedback_strref_inventory_full" = RESOLVE_STR_REF (@101) | ||
OUTER_SET "feedback_strref_resisted" = RESOLVE_STR_REF (@102) | ||
OUTER_SET "feedback_strref_hit" = RESOLVE_STR_REF (@103) | ||
OUTER_SET "feedback_strref_melee_only" = RESOLVE_STR_REF (@104) | ||
OUTER_SET "feedback_strref_cannot_be_disarmed" = RESOLVE_STR_REF (@105) | ||
// | ||
LAF "APPEND_LUA_FUNCTION" STR_VAR "description" = "Class/Kit Abilities" "sourceFileSpec" = "cdtweaks\luke\lua\class\disarm.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 | ||
END |
Binary file not shown.
Oops, something went wrong.