multicasting is in arena.lua, search for "hi_magic" tag.
this is the super evil mod to cast unlimmited spells without high magic (1000 times for 1001 rounds):
start
Quote:
-- Высшая магия (начало)
local t = skill_power("hi_magic", 1)
Logic.hero_lu_var("double_book_charges", t)
if t > 0 then t = 2 else t = 1000 end
Logic.hero_lu_var("book_times", t +book_extra_times)
|
end
Quote:
-- Высшая магия (окончание)
local dbc = Logic.hero_lu_var("double_book_charges")
if dbc ~= nil then
dbc = tonumber(dbc)
if dbc > 0 and tonumber(Logic.hero_lu_var("book_times")) == 0 then -- это означает, что книга была использована 2 раза, проверка строго на 0, т.к. -1 - это спец. значение при превышении маны, тогда высшая магия считается не потраченной
dbc = dbc - 1
Logic.hero_lu_var("double_book_charges", dbc)
end
if dbc > 0 then Logic.hero_lu_var("book_times", 2)
else Logic.hero_lu_var("book_times", 1000 +book_extra_times) end
end
end
|
also if you want to cast spells without regard to mana, edit the skills.txt (both files are in session.kfc), again search for hi_magic skill-here is an example where the mana limit is 10 000
Quote:
hi_magic {
pos=2,4
deps=destroyer
pic=skillicon3_12_
name=skill_hi_magic_caption
hint_header=skill_hi_magic
hint_text=skill_hi_magic_hint
levels {
1 {
deps=1
runes=0,0,12
trade=
pars=2,10000
}
2 {
deps=1
runes=0,0,14
trade=
pars=4,10000
}
3 {
deps=1
runes=0,0,16
trade=
pars=6,10000
}
}
|