XxShadyxX
I abused the rep system.
- Reaction score
- 81
Is there a way to do this:
A catalog goes like this:
Set Iteminteger = Iteminteger + 1
Set Item_Type[Iteminteger] = potion of healing
Set Item_Level[Iteminteger] = 1
Set Iteminteger = Iteminteger + 1
Set Item_Type[Iteminteger] = potion of mana
Set Item_Level[Iteminteger] = 1
Set Iteminteger = Iteminteger + 1
Set Item_Type[Iteminteger] = claws of atk +5
Set Item_Level[Iteminteger] = 8
And then when a unit of nuetral hostile dies i want a random item which the Item_Level is equal to this formula (HeroLevel)-5 to (HeroLevel)+3
so if its a level 8 hero a item which the Item_Level equals to from 3 - 11 randomly would be created.
So is there a way to make all the items that match the conditions into some sort of group where i can access and randomly pull out a item from that group and create it?
A catalog goes like this:
Set Iteminteger = Iteminteger + 1
Set Item_Type[Iteminteger] = potion of healing
Set Item_Level[Iteminteger] = 1
Set Iteminteger = Iteminteger + 1
Set Item_Type[Iteminteger] = potion of mana
Set Item_Level[Iteminteger] = 1
Set Iteminteger = Iteminteger + 1
Set Item_Type[Iteminteger] = claws of atk +5
Set Item_Level[Iteminteger] = 8
And then when a unit of nuetral hostile dies i want a random item which the Item_Level is equal to this formula (HeroLevel)-5 to (HeroLevel)+3
so if its a level 8 hero a item which the Item_Level equals to from 3 - 11 randomly would be created.
So is there a way to make all the items that match the conditions into some sort of group where i can access and randomly pull out a item from that group and create it?