Editing .sab

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 54: Line 54:
| brokenSaber1, brokenSaber2 || This is unused in [[BaseJKA|base]] multiplayer, but was supposed to be model files to use when your staff gets broken. It does work however in Single Player. It may be used in some mods, so set it to the usual value of "brokenstaff", or whatever broken staff model the mod has.
| brokenSaber1, brokenSaber2 || This is unused in [[BaseJKA|base]] multiplayer, but was supposed to be model files to use when your staff gets broken. It does work however in Single Player. It may be used in some mods, so set it to the usual value of "brokenstaff", or whatever broken staff model the mod has.
|-
|-
| twoHanded                  || set this to 1 for a staff. This restricts [[force powers]] if g_saberRestrictForce is set to 1, but makes the hilt stronger in [[Saber Lock|locks]] and [[Parrying|parries]]. And it makes the hilt break through other sabers(breakParryBouns).
| twoHanded                  || set this to 1 for a staff. This restricts [[force powers]] if g_saberRestrictForce is set to 1, but makes the hilt stronger in [[Saber Lock|locks]] and [[Parrying|parries]].
|}
|}


Line 119: Line 119:
| parryBonus          || a bonus in [[parrying|parries]]. In Single Player, to block sabers with a break parry bonus, this must equal that bonus +2 (ex. a saber needs a PB of 3 to block a BPB of 1).
| parryBonus          || a bonus in [[parrying|parries]]. In Single Player, to block sabers with a break parry bonus, this must equal that bonus +2 (ex. a saber needs a PB of 3 to block a BPB of 1).
|-
|-
| breakParryBonus    || a bonus to break a parry. In Single Player, values of 1+ makes medium, staff, tavion, and perhaps duals stance swings uninterruptible. At most they can only be blocked partially. And without this setting, 'twoHanded 1' can make the hilt break through other sabers. In addition, using Force Rage is capable of breaking parries temporarily.
| breakParryBonus    || a bonus to break a parry. In Single Player, values of 1+ makes medium, staff, tavion, and perhaps duals stance swings uninterruptible. At most they can only be blocked partially.
|-
|-
| disarmBonus        || you should get the idea by now...
| disarmBonus        || you should get the idea by now...
Line 139: Line 139:
| saberRadius        || (normally 3) how wide the saber's first blade should be (minimum of 0.25)
| saberRadius        || (normally 3) how wide the saber's first blade should be (minimum of 0.25)
|-
|-
| bladeStyle2Start    || used to define which blades use bladeStyle and which ones sue bladeStyle2, set to the number of last blade you want to use the default style. Example file can be found at the bottom.
| bladeStyle2Start    || set this to a blade number. Any keys set after this line in the .sab entry will apply only to blades of the set number or higher, allowing you to give different blades different properties (should allow you to have a weapon with one sword blade and one saber blade and the like). This is unconfirmed, so test thoroughly if you use it. You should even be able to use this line multiple times with different values.
|}
|}
※ Once a player holds a saber(.sab) having 'saberStyle' or 'saberStyleLearned' or 'saberStyleForbidden', Restricting npc's saberStyle by editing .sab file will be nullified and npcs are going to begin switching their style regardless of your option.  I think the function of the code which restricts their saberStyle is focused on the player, so restriction on other npc does not working properly.




Line 187: Line 185:
| swingSound3  ||
| swingSound3  ||
|-
|-
| fallSound1  || for when the saber falls to the ground
| fallSound1  ||
|-
|-
| fallSound2  ||
| fallSound2  ||
Line 205: Line 203:
| blockSound3  ||
| blockSound3  ||
|-
|-
| bounceSound1 || these are for your blade/saber bouncing off a wall
| bounceSound1 ||
|-
|-
| bounceSound2 ||
| bounceSound2 ||
Line 386: Line 384:
     blockSound2  "sound/weapons/spoonofdeath/fall2.mp3"
     blockSound2  "sound/weapons/spoonofdeath/fall2.mp3"
     blockSound3  "sound/weapons/spoonofdeath/fall3.mp3"
     blockSound3  "sound/weapons/spoonofdeath/fall3.mp3"
}</nowiki>
===BladeStyle2Start example===
<nowiki>dual_test
{
name "Test"
saberType SABER_STAFF
saberModel "models/weapons2/saber_dual_1/saber_dual_1.glm"
soundOn "sound/weapons/saber/saberon.wav"
soundLoop "sound/weapons/saber/saberhum4.wav"
soundOff "sound/weapons/saber/saberoff.wav"
saberColor red
saberColor2 blue
numBlades 2
saberLength 32
saberStyle staff
throwable 0
singleBladeStyle medium
singleBladeThrowable 1
brokenSaber1 brokenstaff
brokenSaber2 brokenstaff
twoHanded 1
//define Bladestyle 1, you can have a maximum of 2 bladestyles per saber
noblade 0
trailstyle 0
noDlight 0
//define Bladestyle2
noblade2 1
trailstyle2 1
noDlight2 1
//Tell the game to use bladestyle2 for all blades after Blade 1
BladeStyle2Start 1
}</nowiki>
}</nowiki>


[[Category:File Types]]
[[Category:File Types]]
Please note that all contributions to Jedi Knight Wiki | JKHub are considered to be released under the Public Domain (see JKHub:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)