Weapon Type ??? :)

aki15

New Member
Reaction score
5
Hi guys, you can see system that i'm looking for in many ORPG maps.. example "Gaias Retalation".....
-Need:
Example: When warrior has 1 weapon he can't get another one.
Like weapon has some thing that's blocking a use of another one.
----------------------
In my map it's warrior can use axes (can't equip another axe, it's same for helmet and other items)...
How can i do this (NO MULTI TRIGGERS LIKE EVERY ITEM WITH EVERY ITEM)
 

Happy

Well-Known Member
Reaction score
71
make all weapons artifact for example then check whether hero already has an artifact if so drop new item and show text.

i did a trigger...but this is restricting weapons to two :

Code:
only two weapons
    Events
        Unit - A unit aquires an item
    Conditions
    Actions
        For each (Integer A) from 1 to 6, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    'IF'-Conditions
                        (Item-class of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Permanent
                    'THEN'-Actions
                        Set weapon[(Player number of (Owner of (Hero manipulating item)))] = (weapon[(Player number of (Owner of (Hero manipulating item)))] + 1)
                    'ELSE'-Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            'IF'-Conditions
                weapon[(Player number of (Owner of (Hero manipulating item)))] Greater than 2
            'THEN'-Actions
                Hero - Drop (Item being manipulated) from (Hero manipulating item)
                Game - Display to (Player group((Owner of (Hero manipulating item)))) the text: |cffffcc00You only ...
                Set weapon[(Player number of (Owner of (Triggering unit)))] = 0
            'ELSE'-Actions
                Set weapon[(Player number of (Owner of (Triggering unit)))] = 0

hope it helps...:D
 

aki15

New Member
Reaction score
5
Ya it does :D, but i think I will use some custom inventory system... +rep anyway :D !
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top