- Joined
- Aug 15, 2010
- Messages
- 53
Hi,
First I apologize for my bad english.
I'm using google translate. I try to make upgrade system for items.
I try to use this triggers but I get an error message when I get every Gauntlet Upgrade Item from the vendor.
First I apologize for my bad english.
I'm using google translate. I try to make upgrade system for items.
I try to use this triggers but I get an error message when I get every Gauntlet Upgrade Item from the vendor.
Code:
Upgrade System
Events
Unit - A unit Sells an item (from shop)
Conditions
Actions
-------- ----------------------------------------------------------------------------------------------------------- --------
-------- Gauntlet (Upgrade) --------------------------------------------------- --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Sold Item)) Equal to Gauntlet Upgrade Item
((Item carried by (Buying unit) of type Gauntlets) is owned) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
((Item carried by (Buying unit) of type Gauntlets) is owned) Equal to True
Then - Actions
Special Effect - Create a special effect attached to the origin of (Buying unit) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
Item - Remove (Item carried by (Buying unit) of type Gauntlets)
Hero - Create Gauntlets +1 and give it to (Buying unit)
Game - Display to (Player group((Owner of (Buying unit)))) the text: |c0000ff00Items upg...
Else - Actions
Else - Actions
-------- Gauntlet +1 (Upgrade) --------------------------------------------------- --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Sold Item)) Equal to Gauntlet Upgrade Item
((Item carried by (Buying unit) of type Gauntlets +1) is owned) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
((Item carried by (Buying unit) of type Gauntlets +1) is owned) Equal to True
((Owner of (Buying unit)) Current gold) Greater than or equal to 500
SkorSayaci[(Player number of (Owner of (Buying unit)))] Greater than or equal to 125
Then - Actions
Special Effect - Create a special effect attached to the origin of (Buying unit) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
Item - Remove (Item carried by (Buying unit) of type Gauntlets +1)
Player - Add -500 to (Owner of (Buying unit)) Current gold
Set SkorSayaci[(Player number of (Owner of (Buying unit)))] = (SkorSayaci[(Player number of (Owner of (Buying unit)))] - 125)
Hero - Create Gauntlets +2 and give it to (Buying unit)
Game - Display to (Player group((Owner of (Buying unit)))) the text: |c0000ff00Items upg...
[Error Message Settings]====================
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Item-type of (Sold Item)) Equal to Gauntlet Upgrade Item
((Item carried by (Buying unit) of type Gauntlets +1) is owned) Equal to True
Then - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
((Owner of (Buying unit)) Current gold) Less than 500
SkorSayaci[(Player number of (Owner of (Buying unit)))] Less than 125
Then - Actions
Special Effect - Create a special effect attached to the overhead of (Buying unit) using Abilities\Spells\Orc\FeralSpirit\feralspiritdone.mdl
Game - Display to (Player group((Owner of (Buying unit)))) the text: |c008080ffYour supp...
Else - Actions
Else - Actions
Else - Actions
-------- ----------------------------------------------------------------------------------------------------------- --------
-------- New Item 01 (Upgrade) --------------------------------------------------- --------
Last edited: