- Joined
- Mar 25, 2010
- Messages
- 187
Hi, have an issue with my Blacksmithing Recipe trigger.
Here's the trigger :
It'll then make the item if you have the required materials, the problem is however that whenever you have more than the required amount of materials ( wether it be copper, wood or linen ) it'll say you don't have the required materials.
Whereas it's supposed to subtract the amount needed.
I believe another recipe might be interfering, since it worked fine before that.
Here's the trigger :
-
Copper Axe
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Smith
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Triggering unit) has an item of type Plans : Copper Axe) 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
- (Charges remaining in (Item carried by (Triggering unit) of type |c00804000Copper Bar|r)) Equal to 5
- (Charges remaining in (Item carried by (Triggering unit) of type Simple Wood)) Equal to 2
- (Charges remaining in (Item carried by (Triggering unit) of type Linen Cloth)) Equal to 2
-
Conditions
-
And - All (Conditions) are true
-
Then - Actions
- Item - Create Copper Axe at (Position of (Triggering unit))
- Item - Remove (Item carried by (Triggering unit) of type |c00804000Copper Bar|r)
- Item - Remove (Item carried by (Triggering unit) of type Simple Wood)
- Item - Remove (Item carried by (Triggering unit) of type Linen Cloth)
- Set Smithing_Level = (Smithing_Level + 1)
- Game - Display to (All players) the text: (Your Smithing is now + (String(Smithing_Level)))
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
- (Charges remaining in (Item carried by (Triggering unit) of type |c00804000Copper Bar|r)) Greater than 5
- (Charges remaining in (Item carried by (Triggering unit) of type Simple Wood)) Greater than 2
- (Charges remaining in (Item carried by (Triggering unit) of type Linen Cloth)) Greater than 2
-
Conditions
-
And - All (Conditions) are true
-
Then - Actions
- Item - Create Copper Axe at (Position of (Triggering unit))
- Item - Set charges remaining in (Item carried by (Triggering unit) of type |c00804000Copper Bar|r) to ((Charges remaining in (Item carried by (Triggering unit) of type |c00804000Copper Bar|r)) - 5)
- Item - Set charges remaining in (Item carried by (Triggering unit) of type Simple Wood) to ((Charges remaining in (Item carried by (Triggering unit) of type Simple Wood)) - 2)
- Item - Set charges remaining in (Item carried by (Triggering unit) of type Linen Cloth) to ((Charges remaining in (Item carried by (Triggering unit) of type Linen Cloth)) - 2)
- Set Smithing_Level = (Smithing_Level + 1)
- Game - Display to (All players) the text: (Your Smithing is now + (String(Smithing_Level)))
-
Else - Actions
- Game - Display to (All players) the text: You don't have the ...
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
It'll then make the item if you have the required materials, the problem is however that whenever you have more than the required amount of materials ( wether it be copper, wood or linen ) it'll say you don't have the required materials.
Whereas it's supposed to subtract the amount needed.
I believe another recipe might be interfering, since it worked fine before that.