• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Solved] Item restriction system import

Status
Not open for further replies.
Level 11
Joined
Dec 16, 2017
Messages
437
Hello guys, i am trying to import this item restriction system [code=jass] Item Restriction System (IRS) v1.0f but it seems to give some errors,i tried to change some stuffs and it still doesn't work.. i get errors for variables names like these:
Screenshot 2021-01-22 234554.jpg
Screenshot 2021-01-22 234630.jpg


What can be done in this situation so it can be fixed?
I just need an easy system for weapons categories, like "Weapon" "Armor" "Helmet" "Boots" etc, so a hero cannot have more than 1 of each at the same time.

I use 1.28.5 WE patch
 
Last edited:
Did you put the code in the map header, or in a trigger that is run at the start of the game?

Otherwise you could classify items by giving them levels. 1=weapon, 2=armor etc.
When a unit picks up an item, go through all his item slots and check if there is an item of the same level, and if so, drop the picked up item.
 
A
Did you put the code in the map header, or in a trigger that is run at the start of the game?

Otherwise you could classify items by giving them levels. 1=weapon, 2=armor etc.
When a unit picks up an item, go through all his item slots and check if there is an item of the same level, and if so, drop the picked up item.
Ah, damn, now i see the map header...it's first time i see a map run something like that :D, thanks !
 
Status
Not open for further replies.
Back
Top