Sunday, 29th July 2018, 00:25 by Fingolfin
Wait no this is wrong. I tried :
- Code:
{
local is_first_turn = true
function ready()
if is_first_turn then
you.set_training_target('Fighting', 9)
is_first_turn = false
end
end
}
and it works fine, but it executes every time you load the game, not once per game.
You want to do :
- Code:
{
function ready()
if you.turns() == 0 then
you.set_training_target('Fighting', 9)
end
end
}
This works as intended.
P.S. Don't forget the quotes around the name of the skill, it won't work without them.
3 runes : MiMo^Ru, HOFi^Beogh, TrMo^Yredelemnul, GrFi^Ru, FoFi^Gozag, MiGl^Okawaru
4 runes : DDFi^Makhleb
5 runes : GrEE^Vehumet
15 runes : MiFi^Ru, NaWz^Sif Muna, GrWz^Sif Muna
I mostly play offline or online on CXC
- For this message the author Fingolfin has received thanks:
- RoGGa