[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