Jagged Alliance 3

Jagged Alliance 3

【Obsolete】Make IMP Great Again
 This topic has been pinned, so it's probably important
苏大妈  [developer] 22 Jul, 2023 @ 7:57pm
[ Preks Add/Remove discuss ] 技能添加与移除讨论
If you want to add new preks or remove invalid preks :steamhappy:
Last edited by 苏大妈; 22 Jul, 2023 @ 7:57pm
< >
Showing 1-15 of 15 comments
dfjontarget 23 Jul, 2023 @ 9:23am 
There is one perk I truly desire to add to my IMP merc. I want the Endless Knives perk (Blood has it) to be available somewhere. I suspect the reason it hasn't yet been included anywhere is that it must be placed in their secondary hand to function. Other mods will allow it to be put into the inventory but then the perk is locked and can't be moved, which both makes it useless and eliminates the use of an inventory slot. Do you think this is something you can add or educate me on how to accomplish getting this added to my IMP merc?

Thank you for an awesome Workshop item and all the work you have already put into this gift to the community.
大佬,我打了mod后的技能可选项和你图里的不一样,没有维姬的被动【体力活】,这个还是挺强的,希望能添加进去,谢谢。
苏大妈  [developer] 23 Jul, 2023 @ 8:33pm 
Originally posted by dfjontarget:
There is one perk I truly desire to add to my IMP merc. I want the Endless Knives perk (Blood has it) to be available somewhere. I suspect the reason it hasn't yet been included anywhere is that it must be placed in their secondary hand to function. Other mods will allow it to be put into the inventory but then the perk is locked and can't be moved, which both makes it useless and eliminates the use of an inventory slot. Do you think this is something you can add or educate me on how to accomplish getting this added to my IMP merc?

Thank you for an awesome Workshop item and all the work you have already put into this gift to the community.

Keith ""Blood"" Hanson Perk:

Flying Daggers
Move to another position, throwing knives at nearby enemies while moving.

The current mod has his Perk -^
You can equip any knife to use.

To unlock Endless Knives, load the following script
UndefineClass("EndlessKnives") DefineClass.EndlessKnives = { __parents = { "MeleeWeapon" }, __generated_by_class = "InventoryItemCompositeDef", object_class = "MeleeWeapon", Reliability = 50, Icon = "UI/Icons/Weapons/EndlessKnives", DisplayName = T(996476550790, "Endless Knives"), DisplayNamePlural = T(262652558760, "Endless Knives"), AdditionalHint = T(389124413877, [[ <bullet_point> Always available for throwing <bullet_point> Low attack costs <bullet_point> Increased bonus from Aiming]]), UnitStat = "Dexterity", Cost = 150, locked = false, BaseChanceToHit = 100, BaseDamage = 12, AimAccuracy = 20, PenetrationClass = 4, DamageMultiplier = 100, CanThrow = true, AttackAP = 3000, MaxAimActions = 1, Noise = 1, Entity = "Weapon_FC_AMZ_Knife_01", HolsterSlot = "Leg" }
苏大妈  [developer] 23 Jul, 2023 @ 8:34pm 
Originally posted by 数学家琪露诺:
大佬,我打了mod后的技能可选项和你图里的不一样,没有维姬的被动【体力活】,这个还是挺强的,希望能添加进去,谢谢。

没有的技能基本是硬编码绑定角色的, 不修改代码覆写的话, 其他人是无法直接使用的.
ckleomh 24 Jul, 2023 @ 5:36am 
Greetings,

Could you consider to add the perk : ' Inside Dope ', please ?

Regards.
苏大妈  [developer] 24 Jul, 2023 @ 5:59am 
Originally posted by ckleomh:
Greetings,

Could you consider to add the perk : ' Inside Dope ', please ?

Regards.


... local livewire = g_Units.Livewire ...

This perk is hard-coded locking characters,
No one else can use it,
Unless the rewriting code
Last edited by 苏大妈; 24 Jul, 2023 @ 5:59am
ckleomh 24 Jul, 2023 @ 1:35pm 
Originally posted by 苏大妈:

This perk is hard-coded locking characters,
No one else can use it,

Do you think it might go in pair with her PDA ?
I mean is there a way to give the PDA and the perk to the IMP to make it works perhaps ?
Last edited by ckleomh; 24 Jul, 2023 @ 1:42pm
dfjontarget 24 Jul, 2023 @ 4:43pm 
Thank you very much for the Endless Knives mod! This has totally made the game for me! I owe ya a soda should we ever meet up somewhere!
firstkwok 24 Jul, 2023 @ 9:54pm 
Will it be possible to modify to 13 perks instead of 10 please?
苏大妈  [developer] 24 Jul, 2023 @ 10:44pm 
Originally posted by firstkwok:
Will it be possible to modify to 13 perks instead of 10 please?
YES,Just a simple change:
.\Make IMP Great Again\Code\IMP_P.lua --Maximum Perks count g_MaxPerksCount = 13

steam mods are automatically packaged and require the unpacking tool
The nexus version has direct access

Maybe I'll add it to the game option sometime
firstkwok 29 Jul, 2023 @ 12:58am 
Originally posted by 苏大妈:
Originally posted by firstkwok:
Will it be possible to modify to 13 perks instead of 10 please?
YES,Just a simple change:
.\Make IMP Great Again\Code\IMP_P.lua --Maximum Perks count g_MaxPerksCount = 13

steam mods are automatically packaged and require the unpacking tool
The nexus version has direct access

Maybe I'll add it to the game option sometime

Thank you very much for giving me the example.
joevans 4 Aug, 2023 @ 10:04am 
Originally posted by 苏大妈:
Originally posted by dfjontarget:
There is one perk I truly desire to add to my IMP merc. I want the Endless Knives perk (Blood has it) to be available somewhere. I suspect the reason it hasn't yet been included anywhere is that it must be placed in their secondary hand to function. Other mods will allow it to be put into the inventory but then the perk is locked and can't be moved, which both makes it useless and eliminates the use of an inventory slot. Do you think this is something you can add or educate me on how to accomplish getting this added to my IMP merc?

Thank you for an awesome Workshop item and all the work you have already put into this gift to the community.

Keith ""Blood"" Hanson Perk:

Flying Daggers
Move to another position, throwing knives at nearby enemies while moving.

The current mod has his Perk -^
You can equip any knife to use.

To unlock Endless Knives, load the following script
UndefineClass("EndlessKnives") DefineClass.EndlessKnives = { __parents = { "MeleeWeapon" }, __generated_by_class = "InventoryItemCompositeDef", object_class = "MeleeWeapon", Reliability = 50, Icon = "UI/Icons/Weapons/EndlessKnives", DisplayName = T(996476550790, "Endless Knives"), DisplayNamePlural = T(262652558760, "Endless Knives"), AdditionalHint = T(389124413877, [[ <bullet_point> Always available for throwing <bullet_point> Low attack costs <bullet_point> Increased bonus from Aiming]]), UnitStat = "Dexterity", Cost = 150, locked = false, BaseChanceToHit = 100, BaseDamage = 12, AimAccuracy = 20, PenetrationClass = 4, DamageMultiplier = 100, CanThrow = true, AttackAP = 3000, MaxAimActions = 1, Noise = 1, Entity = "Weapon_FC_AMZ_Knife_01", HolsterSlot = "Leg" }


Hey there! I have the mod unpacked but I'm not totally sure where this code should go. Maybe in a .lua file, but maybe you have a different location for perk edits? Can you help me locate where to add this code within your mod?
Last edited by joevans; 4 Aug, 2023 @ 10:06am
苏大妈  [developer] 7 Aug, 2023 @ 5:38am 
Originally posted by joevans:
Originally posted by 苏大妈:

Keith ""Blood"" Hanson Perk:

Flying Daggers
Move to another position, throwing knives at nearby enemies while moving.

The current mod has his Perk -^
You can equip any knife to use.

To unlock Endless Knives, load the following script
UndefineClass("EndlessKnives") DefineClass.EndlessKnives = { __parents = { "MeleeWeapon" }, __generated_by_class = "InventoryItemCompositeDef", object_class = "MeleeWeapon", Reliability = 50, Icon = "UI/Icons/Weapons/EndlessKnives", DisplayName = T(996476550790, "Endless Knives"), DisplayNamePlural = T(262652558760, "Endless Knives"), AdditionalHint = T(389124413877, [[ <bullet_point> Always available for throwing <bullet_point> Low attack costs <bullet_point> Increased bonus from Aiming]]), UnitStat = "Dexterity", Cost = 150, locked = false, BaseChanceToHit = 100, BaseDamage = 12, AimAccuracy = 20, PenetrationClass = 4, DamageMultiplier = 100, CanThrow = true, AttackAP = 3000, MaxAimActions = 1, Noise = 1, Entity = "Weapon_FC_AMZ_Knife_01", HolsterSlot = "Leg" }


Hey there! I have the mod unpacked but I'm not totally sure where this code should go. Maybe in a .lua file, but maybe you have a different location for perk edits? Can you help me locate where to add this code within your mod?

Add it to any lua script.
like use ModTool Create a new mod, and Create a New Code Assets(script.lua), Open and paste the code.Save and load mod
苏大妈  [developer] 7 Aug, 2023 @ 5:45am 
Originally posted by joevans:
Originally posted by 苏大妈:

Keith ""Blood"" Hanson Perk:

Flying Daggers
Move to another position, throwing knives at nearby enemies while moving.

The current mod has his Perk -^
You can equip any knife to use.

To unlock Endless Knives, load the following script
UndefineClass("EndlessKnives") DefineClass.EndlessKnives = { __parents = { "MeleeWeapon" }, __generated_by_class = "InventoryItemCompositeDef", object_class = "MeleeWeapon", Reliability = 50, Icon = "UI/Icons/Weapons/EndlessKnives", DisplayName = T(996476550790, "Endless Knives"), DisplayNamePlural = T(262652558760, "Endless Knives"), AdditionalHint = T(389124413877, [[ <bullet_point> Always available for throwing <bullet_point> Low attack costs <bullet_point> Increased bonus from Aiming]]), UnitStat = "Dexterity", Cost = 150, locked = false, BaseChanceToHit = 100, BaseDamage = 12, AimAccuracy = 20, PenetrationClass = 4, DamageMultiplier = 100, CanThrow = true, AttackAP = 3000, MaxAimActions = 1, Noise = 1, Entity = "Weapon_FC_AMZ_Knife_01", HolsterSlot = "Leg" }


Hey there! I have the mod unpacked but I'm not totally sure where this code should go. Maybe in a .lua file, but maybe you have a different location for perk edits? Can you help me locate where to add this code within your mod?

You can save a file

File structure:
C:\Users\[USER_NAME]\AppData\Roaming\Jagged Alliance 3\mods\
EndlessKnives_Unlock\
--Code\
----EndlessKnives_Unlock.lua
--items.lua
--metadata.lua


items.lua
return { PlaceObj('ModItemCode', { 'name', "EndlessKnives_Unlock", 'CodeFileName', "Code/EndlessKnives_Unlock.lua", }), }

metadata.lua
return PlaceObj('ModDef', { 'title', "EndlessKnives_Unlock", 'description', "EndlessKnives_Unlock", 'id', "dAGYHi7", 'content_path', "Mod/dAGYHi7/", 'author', "name", 'version', 1, 'lua_revision', 233360, 'saved_with_revision', 338408, 'code', { "Code/EndlessKnives_Unlock.lua", }, 'saved', 1690034544, 'code_hash', 3252092490419942614, })


Code\EndlessKnives_Unlock.lua
UndefineClass("EndlessKnives") DefineClass.EndlessKnives = { __parents = { "MeleeWeapon" }, __generated_by_class = "InventoryItemCompositeDef", object_class = "MeleeWeapon", Reliability = 50, Icon = "UI/Icons/Weapons/EndlessKnives", DisplayName = T(996476550790, "Endless Knives"), DisplayNamePlural = T(262652558760, "Endless Knives"), AdditionalHint = T(389124413877, [[ <bullet_point> Always available for throwing <bullet_point> Low attack costs <bullet_point> Increased bonus from Aiming]]), UnitStat = "Dexterity", Cost = 150, locked = false, BaseChanceToHit = 100, BaseDamage = 12, AimAccuracy = 20, PenetrationClass = 4, DamageMultiplier = 100, CanThrow = true, AttackAP = 3000, MaxAimActions = 1, Noise = 1, Entity = "Weapon_FC_AMZ_Knife_01", HolsterSlot = "Leg" }
Last edited by 苏大妈; 7 Aug, 2023 @ 5:46am
joevans 10 Aug, 2023 @ 8:06pm 
Oh! Excellent. I was unaware that you could add mods there. Thank you!
< >
Showing 1-15 of 15 comments
Per page: 1530 50