- Joined
- Jun 2, 2009
- Messages
- 1,193
Hello. I am trying to create system like this.
When you click on this building, you can combine 2 leather pieces into 1 leather.
When i do that, i want to add leather as free item to the shop.
Example: You are combining 4 leathers into 2 leather, it will NOT appear to your inventory but to this shop as 2 stocks.
You can ignore the trigger if you understand what i mean.
When you click on this building, you can combine 2 leather pieces into 1 leather.
When i do that, i want to add leather as free item to the shop.
Example: You are combining 4 leathers into 2 leather, it will NOT appear to your inventory but to this shop as 2 stocks.
You can ignore the trigger if you understand what i mean.
-
DeriDeriParcasindan
-
Events
- Unit - A unit Acquires an item
-
Conditions
- (Item-type of (Item being manipulated)) Equal to Deri üret
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Charges remaining in (Item carried by UnitPlayer[(Player number of (Owner of (Triggering unit)))] of type Deri Parçasi)) Greater than or equal to 2
-
Then - Actions
- Item - Set charges remaining in (Item carried by UnitPlayer[(Player number of (Owner of (Triggering unit)))] of type Deri Parçasi) to ((Charges remaining in (Item carried by UnitPlayer[(Player number of (Owner of (Triggering unit)))] of type Deri Parçasi)) - 2)
- Hero - Create Deri and give it to (Triggering unit)
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Charges remaining in (Item carried by (Triggering unit) of type Canavar Derisi)) Greater than or equal to 1
-
Then - Actions
- Item - Set charges remaining in (Item carried by (Triggering unit) of type Canavar Derisi) to ((Charges remaining in (Item carried by (Triggering unit) of type Canavar Derisi)) - 1)
- Hero - Create Deri and give it to (Triggering unit)
- Set SatilanDeri = (SatilanDeri + 1)
- Neutral Building - Add Deri to Dokuma Tezgahi 0236 <gen> with SatilanDeri in stock and a max stock of 999
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events