• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Simple Item System needed

Status
Not open for further replies.
Level 11
Joined
Aug 11, 2009
Messages
605
I need a simple item system which works like this.

- Each Hero can only carry 1 Permanent-type item (which will be weapon items)
- Each Hero can only carry 1 Artifact-type item (which will be armor items)
- If a Hero tries to pick up more he drops it and a message comes up he can only carry one armor/weapon.
- All other item types are unlimited.

+Rep and credits in map for making this :)

Thanks!

P.S.

I actually need a spell also if anyone can make that. Its a 5 sec channel spell which pulls all enemies within 1000 range towards the caster at a speed of 175 + 25xLevelOfAbility. When the 5 sec channel is over all enemies within 300 of the caster takes X damage.
 
Last edited:
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Untitled Trigger 036
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • Set u = (Triggering unit)
      • Set it = (Item being manipulated)
      • Set iclass = (Item-class of it)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • iclass Equal to Permanent
              • iclass Equal to Artifact
        • Then - 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
                  • it Not equal to (Item carried by u in slot (Integer A))
                  • (Item-class of (Item carried by u in slot (Integer A))) Equal to iclass
                • Then - Actions
                  • Hero - Drop it from u
                  • Set pgrp = (Player group((Triggering player)))
                  • Game - Display to pgrp the text: The hero already ha...
                  • Custom script: call DestroyForce(udg_pgrp)
                  • Skip remaining actions
                • Else - Actions
        • Else - Actions
 
Level 11
Joined
Aug 11, 2009
Messages
605
Thanks that worked perfectly! :) Now its just that spell then I will have everything I need for the first leveling area and its dungeons. Could you perhaps help me with it? Would be very grateful.
 
Status
Not open for further replies.
Top