Hy I just made a trigered spell for a hero of mine called Style Change.The spell was desinged to add 3 weapon skills to a unit.The spell itself is based of Robo Goblin,so that the player can change the 3 skills gained from my triger with 3 diferent skills.I have 2,posibly 3 problems with this triger.First of all I can't seem to add in the Then section(triger uses If/Then/Else clause)more skills,my second problem is that it lags and it may even cause crashes,I made several more trigers,but I have a feeling that this guy is the problem,and I need your help to confirm it.....I am going to show you the triger now.
Things you might want to know to understand this spell:
*it is designed for a warrior that uses 2 diferent sets of weapons:two one handed swords and a two handed sword(yeah the elf has exactly 3 swords,and he is quite easy to find on hive)
*I chose robo goblin so that he can change spell books=>that he can change the skills he gains from triger,at will.
*The skills gained via this triger are weapon skills(skills for 2 handed weapon combat and dual wield combat to be precise)
*I don't want this guy to use spell books thats why I want to make this triger add 2 or more skills at once to the trigering unit
Code:
Event:Unit Learns
Condition:(Learned Hero Skill) Equal To Style Change
Action:If (Level of Style Change for (Triggering unit Equal to 1) then do (Unit - Add Basic Spellbook of Two Handed Weapon Style to Triggering unit)) else If (Level of Style Change for (Triggering unit not equal to Equal to 1) then do (Unit - Remove Basic Spellbook of Two Handed Weapon Style to Triggering unit)) else Do Nothing
If (Level of Style Change for (Triggering unit Equal to 2) then do (Unit - Add Advanced Spellbook of Two Handed Weapon Style to Triggering unit)) else If (Level of Style Change for (Triggering unit not equal to Equal to 2) then do (Unit - Remove Advanced Spellbook of Two Handed Weapon Style to Triggering unit)) else Do Nothing
**same thing for level 3
Things you might want to know to understand this spell:
*it is designed for a warrior that uses 2 diferent sets of weapons:two one handed swords and a two handed sword(yeah the elf has exactly 3 swords,and he is quite easy to find on hive)
*I chose robo goblin so that he can change spell books=>that he can change the skills he gains from triger,at will.
*The skills gained via this triger are weapon skills(skills for 2 handed weapon combat and dual wield combat to be precise)
*I don't want this guy to use spell books thats why I want to make this triger add 2 or more skills at once to the trigering unit