hey searched alot to solve this problem.
I want to have a hero with a spellbook with several Transformations. The spellbook have got 4 levels. With each level it contains one more Transformation. If i use the transformation as a hero skill not inside a spellbook, they are working correct. But are the transformation skills inside the spellbook and i am using them it only works one time. The skill dissapears from the spellbook when i want to transform back to normal mode.
I read, it belongs the skill isnt permanent and i have to use Jass code.
I did it like this:
the trigger starts if a unit learns the spellbook, which contains the transformation. form1 = Name of first transformation
for the Jasscode i use the action "Custom script".
Where is the problem or what i am doing wrong.
I hope my english is good enough.
I want to have a hero with a spellbook with several Transformations. The spellbook have got 4 levels. With each level it contains one more Transformation. If i use the transformation as a hero skill not inside a spellbook, they are working correct. But are the transformation skills inside the spellbook and i am using them it only works one time. The skill dissapears from the spellbook when i want to transform back to normal mode.
I read, it belongs the skill isnt permanent and i have to use Jass code.
I did it like this:
JASS:
local unit u = GetTriggerUnit()
local integer id = AbilityId("form1")
call UnitMakeAbilityPermanent(u,true,id)
the trigger starts if a unit learns the spellbook, which contains the transformation. form1 = Name of first transformation
for the Jasscode i use the action "Custom script".
Where is the problem or what i am doing wrong.
I hope my english is good enough.
Last edited: