• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Simple Item System needed

Status
Not open for further replies.
Level 11
Joined
Aug 11, 2009
Messages
594
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,240
  • 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
594
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