HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Spell Purchase Trouble

04-11-2008, 02:20 AM#1
Valdez
Hey guys, I got a problem with my skill learning system.

It learns all the skills correctly and preforms essentially what I want it to do, but it learns the spells 'Base Spell' rather than my 'Custom Spell.'

Anyone got any idea on how to fix this problem?

Here's my trigger..

Trigger:
Thorns Aura
Collapse Events
Unit - A unit Sells an item (from shop)
Collapse Conditions
(Item-type of (Sold Item)) Equal to Thorns Aura
Collapse Actions
Item - Remove (Sold Item)
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Level of Thorns Aura (Aura) for (Buying unit)) Equal to 0
Collapse Then - Actions
Unit - Add Thorns Aura (Aura) to (Buying unit)
Wait 0.01 seconds
Unit - Set level of Thorns Aura (Aura) for (Buying unit) to 1
Game - Display to (Owner of (Buying unit)), at offset (0.00, 0.00) for 3.00 seconds the text: Your |cffffcc00Hero...
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Level of Thorns Aura (Aura) for (Buying unit)) Equal to 1
Collapse Then - Actions
Unit - Set level of Thorns Aura (Aura) for (Buying unit) to 2
Game - Display to (Owner of (Buying unit)), at offset (0.00, 0.00) for 3.00 seconds the text: Your |cffffcc00Hero...
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Level of Thorns Aura (Aura) for (Buying unit)) Equal to 2
Collapse Then - Actions
Unit - Set level of Thorns Aura (Aura) for (Buying unit) to 3
Game - Display to (Owner of (Buying unit)), at offset (0.00, 0.00) for 3.00 seconds the text: Your |cffffcc00Hero...
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Level of Thorns Aura (Aura) for (Buying unit)) Equal to 3
Collapse Then - Actions
Unit - Set level of Thorns Aura (Aura) for (Buying unit) to 4
Game - Display to (Owner of (Buying unit)), at offset (0.00, 0.00) for 3.00 seconds the text: Your |cffffcc00Hero...
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Level of Thorns Aura (Aura) for (Buying unit)) Equal to 4
Collapse Then - Actions
Unit - Set level of Thorns Aura (Aura) for (Buying unit) to 5
Game - Display to (Owner of (Buying unit)), at offset (0.00, 0.00) for 3.00 seconds the text: Your |cffffcc00Hero...
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Level of Thorns Aura (Aura) for (Buying unit)) Equal to 5
Collapse Then - Actions
Unit - Set level of Thorns Aura (Aura) for (Buying unit) to 6
Game - Display to (Owner of (Buying unit)), at offset (0.00, 0.00) for 3.00 seconds the text: Your |cffffcc00Hero...
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Level of Thorns Aura (Aura) for (Buying unit)) Equal to 6
Collapse Then - Actions
Unit - Set level of Thorns Aura (Aura) for (Buying unit) to 7
Game - Display to (Owner of (Buying unit)), at offset (0.00, 0.00) for 3.00 seconds the text: Your |cffffcc00Hero...
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Level of Thorns Aura (Aura) for (Buying unit)) Equal to 7
Collapse Then - Actions
Unit - Set level of Thorns Aura (Aura) for (Buying unit) to 8
Game - Display to (Owner of (Buying unit)), at offset (0.00, 0.00) for 3.00 seconds the text: Your |cffffcc00Hero...
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Level of Thorns Aura (Aura) for (Buying unit)) Equal to 8
Collapse Then - Actions
Unit - Set level of Thorns Aura (Aura) for (Buying unit) to 9
Game - Display to (Owner of (Buying unit)), at offset (0.00, 0.00) for 3.00 seconds the text: Your |cffffcc00Hero...
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Level of Thorns Aura (Aura) for (Buying unit)) Equal to 9
Collapse Then - Actions
Unit - Set level of Thorns Aura (Aura) for (Buying unit) to 10
Game - Display to (Owner of (Buying unit)), at offset (0.00, 0.00) for 3.00 seconds the text: Your |cffffcc00Hero...
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Level of Thorns Aura (Aura) for (Buying unit)) Equal to 10
Collapse Then - Actions
Game - Display to (Owner of (Buying unit)), at offset (0.00, 0.00) for 3.00 seconds the text: |cff00ffffThorns Au...
Player - Add 1 to (Owner of (Buying unit)) Current lumber
Collapse Else - Actions
Do nothing
04-11-2008, 10:01 AM#2
Gorman
Test it again, i dont think that should ever happen...