Sabatino69 wrote: ↑Fri Dec 01, 2023 1:52 pm
Hi guys,
FIrst of all thank you for your amazing work.
I have just one question,
Did someone of you find away for add spells that are not just actions ?
That you can upcast and ecc...
i want add more spells to my sorcerer but not all spells are scrolls too so i can not only use the learn any wizard scrolls cheat
thank you
p.s.
even if there is any mod that le you select more that one o two spells when you level up
it would be wonderful *_*
Off the top of my head there are two ways to add spells.
EXAMPLE 1
Code: Select all
{$lua}
if syntaxcheck then return end
spell = {
"Target_Light",
"Target_MinorIllusion",
"Target_MageHand",
--------------------------
"Target_Longstrider_6"
}
[ENABLE]
AddSpellToPlayer(spell)
[DISABLE]
This is permanent (survives loading a save game), produces an icon in the common tab of your spellbook, and doesn't cost spell slots (not an issue for cantrips). It also doesn't produce upcastable versions. For example, the Longstrider you see is the maximum upcast, but doesn't produce other level versions. Using "Target_Longstrider" instead would only add the 1st level spell.
EXAMPLE 2
Code: Select all
AddBoostsToPlayer("UnlockSpell(Zone_BurningHands,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,Charisma)")
This one doesn't survive loading, but it adds the spell a lot better. AddChildren means it will add upcast versions. The hex code means it uses non-warlock spell slots, Charisma is what spell modifier it uses. Now that I think about it, I'm not sure which modifiers the addspell spells use...
You can omit the hex code if you want the spell to not use slots.
Credits and more info:
viewtopic.php?p=310442#p310442
viewtopic.php?p=318297#p318297
viewtopic.php?p=313782#p313782
viewtopic.php?p=306872#p306872
viewtopic.php?p=313219#p313219
Hope this helps.
Sabatino69 wrote: ↑Fri Dec 01, 2023 1:52 pm
i want add more spells to my sorcerer but not all spells are scrolls too so i can not only use the learn any wizard scrolls cheat
I never did understand what the learn any wizard scrolls cheat did. I used to use the addspells thing for my sorc, even used a mod for a while, but now I just use vanilla and saved scripts like this to use everytime I load:
Code: Select all
[ENABLE]
{$lua}
if syntaxcheck then return end
---- LEVEL 1
AddBoostsToPlayer("UnlockSpell(Projectile_WitchBolt,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,Charisma)")
AddBoostsToPlayer("UnlockSpell(Shout_DisguiseSelf,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,Charisma)")
AddBoostsToPlayer("UnlockSpell(Zone_Thunderwave,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,Charisma)")
AddBoostsToPlayer("UnlockSpell(Projectile_IceKnife,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,Charisma)")
AddBoostsToPlayer("UnlockSpell(Projectile_MagicMissile,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,Charisma)")
--AddBoostsToPlayer("UnlockSpell(Shout_FalseLife,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,Charisma)")
--AddBoostsToPlayer("UnlockSpell(Shout_FeatherFall,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,Charisma)")
AddBoostsToPlayer("UnlockSpell(Shout_Shield_Wizard,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,Charisma)")
--AddBoostsToPlayer("UnlockSpell(Target_Jump,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,Charisma)")
--AddBoostsToPlayer("UnlockSpell(Target_Longstrider,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,Charisma)")
--AddBoostsToPlayer("UnlockSpell(Target_MageArmor,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,Charisma)")
AddBoostsToPlayer("UnlockSpell(Target_Sleep,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,Charisma)")
AddBoostsToPlayer("UnlockSpell(Zone_BurningHands,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,Charisma)")
---- LEVEL 2
AddBoostsToPlayer("UnlockSpell(Projectile_ScorchingRay,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,)")
AddBoostsToPlayer("UnlockSpell(Shout_MirrorImage,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,)")
AddBoostsToPlayer("UnlockSpell(Shout_SeeInvisibility,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,)")
AddBoostsToPlayer("UnlockSpell(Target_CloudOfDaggers,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,)")
--AddBoostsToPlayer("UnlockSpell(Target_Darkness,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,)")
--AddBoostsToPlayer("UnlockSpell(Target_Darkvision,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,)")
AddBoostsToPlayer("UnlockSpell(Target_HoldPerson,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,)")
AddBoostsToPlayer("UnlockSpell(Target_Invisibility,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,)")
--AddBoostsToPlayer("UnlockSpell(Target_MistyStep,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,)")
AddBoostsToPlayer("UnlockSpell(Target_Shatter,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,)")
--AddBoostsToPlayer("UnlockSpell(Target_Silence,AddChildren,d136c5d9-0ff0-43da-acce-a74a07f8d6bf,,)")
{$asm}
[DISABLE]