• 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.

[Solved] Item restriction system import

Status
Not open for further replies.
Level 11
Joined
Dec 16, 2017
Messages
418
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:
Level 10
Joined
Mar 26, 2017
Messages
376
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.
 
Level 11
Joined
Dec 16, 2017
Messages
418
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.
Top