deathblade
New Member
- Reaction score
- 4
Now i know theres a MUUUUUCH easier way to this but here we go
im geting wc3 error and exits game after i choose a spec also geting this after i open the spell book to learn a spell there
Code:
Adding Specs
Events
Map initialization
Conditions
Actions
-------- Specs --------
Set spec[1] = Spec1
Set spec[2] = Spec2
Set spec[3] = Spec3
-------- Ability Set 1 --------
Set abilityset1[1] = Animate Dead
Set abilityset1[2] = Acid Bomb
Set abilityset1[3] = Attribute Bonus
Set abilityset1[4] = Avatar
-------- Ability set 2 --------
Set abilityset2[1] = Banish
Set abilityset2[2] = Bash
Set abilityset2[3] = Battle Roar
Set abilityset2[4] = Big Bad Voodoo
-------- Ability set 3 --------
Set abilityset3[1] = Black Arrow
Set abilityset3[4] = Bladestorm
Set abilityset3[2] = Blink
Set abilityset3[3] = Blizzard
Set book[1] = Spell Book1
Set book[2] = Spell Book2
Set book[3] = Spell Book3
Unit - Add spec[1] to Dark Ranger 0000 <gen>
Unit - Add spec[2] to Dark Ranger 0000 <gen>
Unit - Add spec[3] to Dark Ranger 0000 <gen>
Code:
Choosing Spec
Events
Unit - A unit Starts the effect of an ability
Conditions
Or - Any (Conditions) are true
Conditions
(Ability being cast) Equal to spec[1]
(Ability being cast) Equal to spec[2]
(Ability being cast) Equal to spec[3]
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to spec[1]
Then - Actions
Unit - Remove spec[1] from (Triggering unit)
Unit - Remove spec[2] from (Triggering unit)
Unit - Remove spec[3] from (Triggering unit)
Else - Actions
Unit - Add book[1] to (Triggering unit)
Trigger - Turn on Book1 <gen>
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to spec[2]
Then - Actions
Unit - Remove spec[1] from (Triggering unit)
Unit - Remove spec[2] from (Triggering unit)
Unit - Remove spec[3] from (Triggering unit)
Else - Actions
Unit - Add book[2] to (Triggering unit)
Trigger - Turn on Book2 <gen>
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to spec[3]
Then - Actions
Unit - Remove spec[1] from (Triggering unit)
Unit - Remove spec[2] from (Triggering unit)
Unit - Remove spec[3] from (Triggering unit)
Else - Actions
Unit - Add book[3] to (Triggering unit)
Trigger - Turn on Book3 <gen>
Code:
Book1
Events
Unit - A unit Begins casting an ability
Conditions
(Unspent skill points of (Triggering unit)) Not equal to 0
Or - Any (Conditions) are true
Conditions
(Ability being cast) Equal to book1(1)
(Ability being cast) Equal to book1(2)
(Ability being cast) Equal to book1(3)
(Ability being cast) Equal to book1(4)
(Ability being cast) Equal to book[1]
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to book1(1)
Then - Actions
Unit - Add abilityset1[1] to (Triggering unit)
Unit - Order (Triggering unit) to Stop
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to book1(2)
Then - Actions
Unit - Add abilityset1[2] to (Triggering unit)
Unit - Order (Triggering unit) to Stop
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to book1(3)
Then - Actions
Unit - Add abilityset1[3] to (Triggering unit)
Unit - Order (Triggering unit) to Stop
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to book1(4)
Then - Actions
Unit - Add abilityset1[4] to (Triggering unit)
Unit - Order (Triggering unit) to Stop
Else - Actions
Code:
Book2
Events
Unit - A unit Begins casting an ability
Conditions
(Unspent skill points of (Triggering unit)) Not equal to 0
Or - Any (Conditions) are true
Conditions
(Ability being cast) Equal to book2(1)
(Ability being cast) Equal to book2(2)
(Ability being cast) Equal to book2(3)
(Ability being cast) Equal to book2(4)
(Ability being cast) Equal to book[2]
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to book2(1)
Then - Actions
Unit - Add abilityset2[1] to (Triggering unit)
Unit - Order (Triggering unit) to Stop
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to book2(2)
Then - Actions
Unit - Add abilityset2[2] to (Triggering unit)
Unit - Order (Triggering unit) to Stop
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to book2(3)
Then - Actions
Unit - Add abilityset2[3] to (Triggering unit)
Unit - Order (Triggering unit) to Stop
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to book2(4)
Then - Actions
Unit - Add abilityset2[4] to (Triggering unit)
Unit - Order (Triggering unit) to Stop
Else - Actions
Code:
Book3
Events
Unit - A unit Begins casting an ability
Conditions
(Unspent skill points of (Triggering unit)) Not equal to 0
Or - Any (Conditions) are true
Conditions
(Ability being cast) Equal to book3(1)
(Ability being cast) Equal to book3(2)
(Ability being cast) Equal to book3(3)
(Ability being cast) Equal to book3(4)
(Ability being cast) Equal to book[3]
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to book3(1)
Then - Actions
Unit - Add abilityset3[1] to (Triggering unit)
Unit - Order (Triggering unit) to Stop
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to book3(2)
Then - Actions
Unit - Add abilityset3[2] to (Triggering unit)
Unit - Order (Triggering unit) to Stop
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to book3(3)
Then - Actions
Unit - Add abilityset3[3] to (Triggering unit)
Unit - Order (Triggering unit) to Stop
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to book3(4)
Then - Actions
Unit - Add abilityset3[4] to (Triggering unit)
Unit - Order (Triggering unit) to Stop
Else - Actions
im geting wc3 error and exits game after i choose a spec also geting this after i open the spell book to learn a spell there