HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Attribute Bonus Trigger Challenge

09-23-2004, 01:31 AM#1
CCrew
Point Spent
Events
Unit - A unit Finishes casting an ability
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Agility Bonus
UnspentAttPoints[(Player number of (Owner of (Triggering unit)))] Greater than 0
Then - Actions
Set Agility[(Player number of (Owner of (Triggering unit)))] = (Agility[(Player number of (Owner of (Triggering unit)))] + 1)
Hero - Modify Agility of Hero[(Player number of (Owner of (Triggering unit)))]: Set to Agility[(Player number of (Owner of (Triggering unit)))]
Set UnspentAttPoints[(Player number of (Owner of (Triggering unit)))] = (UnspentAttPoints[(Player number of (Owner of (Triggering unit)))] - 1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Intelligence Bonus
UnspentAttPoints[(Player number of (Owner of (Triggering unit)))] Greater than 0
Then - Actions
Set Inteligence[(Player number of (Owner of (Triggering unit)))] = (Agility[(Player number of (Owner of (Triggering unit)))] + 1)
Hero - Modify Intelligence of Hero[(Player number of (Owner of (Triggering unit)))]: Set to Inteligence[(Player number of (Owner of (Triggering unit)))]
Set UnspentAttPoints[(Player number of (Owner of (Triggering unit)))] = (UnspentAttPoints[(Player number of (Owner of (Triggering unit)))] - 1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Ability being cast) Equal to Strength Bonus
UnspentAttPoints[(Player number of (Owner of (Triggering unit)))] Greater than 0
Then - Actions
Set Strength[(Player number of (Owner of (Triggering unit)))] = (Agility[(Player number of (Owner of (Triggering unit)))] + 1)
Hero - Modify Strength of Hero[(Player number of (Owner of (Triggering unit)))]: Set to Strength[(Player number of (Owner of (Triggering unit)))]
Set UnspentAttPoints[(Player number of (Owner of (Triggering unit)))] = (UnspentAttPoints[(Player number of (Owner of (Triggering unit)))] - 1)
Else - Actions

See now that is my current trigger. What it should do is add one to the wanted attribute. What it does is add one to every attribute. (My idea on why it would mess up is what it is based on. I based it on Roar, and when i click one, all highlight, if that is the problem, not trigger, then just tell me how i can stop this.)
09-23-2004, 01:38 AM#2
-={tWiStÄr}=-
thats the prob. you cant have 1 hero with more than 1 ability based on the same thing.