Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
0.9.9
Browse files Browse the repository at this point in the history
seq_menu fix
  • Loading branch information
subtledoctor committed Mar 25, 2021
1 parent e24b11f commit d63db65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion TomeAndBlood/TomeAndBlood.tp2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BACKUP ~TomeAndBlood/backup~
AUTHOR ~aquadrizzt~
VERSION ~0.9.8~
VERSION ~0.9.9~

ALWAYS

Expand Down
10 changes: 5 additions & 5 deletions TomeAndBlood/lib/SEQUENCER_MENU.tpa
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

// UI-based Spell Learning tool for Sorcerers/Shamans
// v0.58
// v0.59

// This function is designed to implement a UI-based Spell selection system, as an alternative to dialog-based Spell Selection, utilizing
// the Sequencer/Contingency spell selection menu to learn arcane or divine spells. Innate abilities "can" be learned this way as well,
Expand Down Expand Up @@ -173,13 +173,12 @@
SequencerMenu['DEFAULT'] = function()
local temp = {}
for k,v in pairs (bookSpells) do
if v.level == currentSpellLevel - 1 then
if v.level == %currentLevel% - 1 then
table.insert(temp, v)
end
end
bookSpells = temp
end~~~~~
ACTION_IF GAME_IS ~iwdee~ BEGIN OUTER_SPRINT currentLevel ~contingencySpellLevel~ END ELSE BEGIN OUTER_SPRINT currentLevel ~currentSpellLevel~ END
APPEND ~M_SQTOOL.LUA~ ~~~~~
function SequencerMenuSpellsKnown(multi,spelltable,abilFunc,abil,alignment,postfix,global)
if postfix == nil then
Expand Down Expand Up @@ -322,7 +321,7 @@
TEXT_SPRINT else1 ~~
TEXT_SPRINT text ~local abilVal = %abilVal%%WNL%%TAB%%TAB%abilVal = tonumber(abilVal)%WNL%%TAB%%TAB%~
FOR (i = 1; i < cols; ++i) BEGIN
TEXT_SPRINT text ~~~~~%text%%else1%if currentSpellLevel == %i% and abilVal >~~~~~
TEXT_SPRINT text ~~~~~%text%%else1%if %currentLevel% == %i% and abilVal >~~~~~
FOR (j = 0; j < READ; ++j) BEGIN
READ_2DA_ENTRY_FORMER ~READ~ j i value
// PATCH_IF value > 0 BEGIN
Expand Down Expand Up @@ -373,7 +372,7 @@
TEXT_SPRINT else1 ~~ TEXT_SPRINT text ~~
FOR (i = 1; i < cols; ++i) BEGIN
SET old = 0
TEXT_SPRINT text ~~~~~%text%%else1%if currentSpellLevel == %i% and level >~~~~~
TEXT_SPRINT text ~~~~~%text%%else1%if %currentLevel% == %i% and level >~~~~~
FOR (j = 0; j < READ; ++j) BEGIN
READ_2DA_ENTRY_FORMER ~READ~ j i value
PATCH_IF value > 0 BEGIN
Expand Down Expand Up @@ -414,6 +413,7 @@
INT_VAR class = 1 exclude = 0 maxlevel = ~-1~ multilist = 0 tip = ~-1~ name = ~-1~ desc = ~-1~ column = 1 alignment = 0 global = 0
STR_VAR resref = ~~ icon = ~~ title = ~~ action = ~~ spelltable = ~~ spelllist = ~~ attribute = ~~ attrtable = ~~ custom = ~~ subspell = ~L~ blacklist = ~~
BEGIN
ACTION_IF GAME_IS ~iwdee~ BEGIN OUTER_SPRINT currentLevel ~contingencySpellLevel~ END ELSE BEGIN OUTER_SPRINT currentLevel ~currentSpellLevel~ END
OUTER_SPRINT $ EVAL ~%blacklist%~(~-1~) ~DEFAULT~
ACTION_TO_UPPER resref ACTION_TO_UPPER spelltable ACTION_TO_UPPER spelllist ACTION_TO_UPPER attribute ACTION_TO_UPPER attrtable ACTION_TO_UPPER subspell
LAF SETUP_SEQUENCER_MENU END
Expand Down

0 comments on commit d63db65

Please sign in to comment.