- Joined
- Jun 2, 2009
- Messages
- 1,276
Hello everyone. I am trying to create weapon and armor system and it is extremely confusing to me. I have a resource named "JFA Orpg" and i have the system but it is Jass, my friend created it for me and i cannot implement it into my new map.
Anyway, here is the scenario. In my map i have only 2 armor and 2 weapons. I have created system like this.
And in the opposite, this trigger removes unit from unit group when drops its weapon
And this trigger detects if unit has a weapon. If unit within SilahGrubu group, that means it has weapon, so drop the weapon.
Anyway, here is the scenario. In my map i have only 2 armor and 2 weapons. I have created system like this.
-
SilahVar
-

Events
-


Unit - A unit Acquires an item
-
-

Conditions
-


((Triggering unit) is in SilahGrubu) Equal to False
-


Or - Any (Conditions) are true
-



Conditions
-




(Item-type of (Item being manipulated)) Equal to IRON SWORD
-




(Item-type of (Item being manipulated)) Equal to IRON SWORD FAKE VERSION
-




(Item-type of (Item being manipulated)) Equal to STONE CLAW
-




(Item-type of (Item being manipulated)) Equal to STONE CLAW FAKE VERSION
-
-
-
-

Actions
-


Unit Group - Add (Triggering unit) to SilahGrubu
-
-
And in the opposite, this trigger removes unit from unit group when drops its weapon
-
SilahYok
-

Events
-


Unit - A unit Loses an item
-
-

Conditions
-


((Triggering unit) is in SilahGrubu) Equal to True
-


Or - Any (Conditions) are true
-



Conditions
-




(Item-type of (Item being manipulated)) Equal to IRON SWORD
-




(Item-type of (Item being manipulated)) Equal to IRON SWORD FAKE VERSION
-




(Item-type of (Item being manipulated)) Equal to STONE CLAW
-




(Item-type of (Item being manipulated)) Equal to STONE CLAW FAKE VERSION
-
-
-
-

Actions
-


Unit Group - Remove (Triggering unit) from SilahGrubu
-
-
And this trigger detects if unit has a weapon. If unit within SilahGrubu group, that means it has weapon, so drop the weapon.
-
No2Silah
-

Events
-


Unit - A unit Acquires an item
-
-

Conditions
-


((Triggering unit) is in SilahGrubu) Equal to True
-


Or - Any (Conditions) are true
-



Conditions
-




(Item-type of (Item being manipulated)) Equal to IRON SWORD
-




(Item-type of (Item being manipulated)) Equal to IRON SWORD FAKE VERSION
-




(Item-type of (Item being manipulated)) Equal to STONE CLAW
-




(Item-type of (Item being manipulated)) Equal to STONE CLAW FAKE VERSION
-
-
-
-

Actions
-


Hero - Drop (Item being manipulated) from (Triggering unit)
-
-
-
SilahGercegiKopyasi
-

Events
-


Unit - A unit Acquires an item
-
-

Conditions
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Item-type of (Item being manipulated)) Equal to STONE CLAW FAKE VERSION
-




(Unit-type of (Triggering unit)) Equal to Savasci
-
-



Then - Actions
-




Item - Remove (Item carried by (Triggering unit) of type STONE CLAW FAKE VERSION)
-




Hero - Create STONE CLAW and give it to (Triggering unit)
-




Unit Group - Add (Triggering unit) to SilahGrubu
-
-



Else - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Item-type of (Item being manipulated)) Equal to IRON SWORD FAKE VERSION
-






(Unit-type of (Triggering unit)) Equal to Savasci
-
-





Then - Actions
-






Hero - Drop (Item carried by (Triggering unit) of type Create IRON SWORD FAKE VERSION) from (Triggering unit)
-






Hero - Create IRON SWORD and give it to (Triggering unit)
-






Unit Group - Add (Triggering unit) to SilahGrubu
-
-





Else - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Item-type of (Item being manipulated)) Equal to STONE CLAW
-








(Unit-type of (Triggering unit)) Equal to Toplayici
-
-







Then - Actions
-








Item - Remove (Item carried by (Triggering unit) of type STONE CLAW)
-








Hero - Create STONE CLAW FAKE VERSION and give it to (Triggering unit)
-








Unit Group - Add (Triggering unit) to SilahGrubu
-
-







Else - Actions
-








If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-









If - Conditions
-










(Unit-type of (Triggering unit)) Equal to Toplayici
-










(Item-type of (Item being manipulated)) Equal to IRON SWORD
-
-









Then - Actions
-










Hero - Drop (Item carried by (Triggering unit) of type Demir Kilic) from (Triggering unit)
-










Hero - Create IRON SWORD FAKE VERSION and give it to (Triggering unit)
-










Unit Group - Add (Triggering unit) to SilahGrubu
-
-









Else - Actions
-










Do nothing
-
-
-
-
-
-
-
-
-
-
-
KarakterDonusumSilah
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to WARRIOR/PEASANT TRANSFORM
-
-

Actions
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




Savasci[(Player number of (Owner of (Triggering unit)))] Equal to False
-




((Triggering unit) has an item of type Tas Pence (toplayici modu)) Equal to True
-
-



Then - Actions
-




Set Savasci[(Player number of (Owner of (Triggering unit)))] = True
-




Item - Remove (Item carried by (Triggering unit) of type STONE CLAW FAKE VERSION)
-




Hero - Create STONE CLAW and give it to (Triggering unit)
-
-



Else - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






Savasci[(Player number of (Owner of (Triggering unit)))] Equal to True
-






((Triggering unit) has an item of type STONE CLAW) Equal to True
-
-





Then - Actions
-






Set Savasci[(Player number of (Owner of (Triggering unit)))] = False
-






Item - Remove (Item carried by (Triggering unit) of type STONE CLAW)
-






Unit Group - Remove (Triggering unit) from SilahGrubu
-






Hero - Create STONE CLAW FAKE VERSION and give it to (Triggering unit)
-






Unit Group - Add (Triggering unit) to SilahGrubu
-
-





Else - Actions
-
-
-
-
-


