- Joined
- Mar 5, 2008
- Messages
- 8
In a Save/Load code I'm using, theres an array of what items, abilities, and such will be saved. I've made a copy of multiple items and unit based off the same unit and items. In this case, the Paladin, [Hpal] and Belt Of Giant Strength +6 [bgst]. The array uses the raw codes of the units / items.
Problem is, I don't know how I add in duplicates of the same unit/items.
I've made 15 units based off the Paladin, [Hpal], and each of the copied ones raw codes are: H00C:Hpal, H00D:Hpal, H009:Hpal, ETC.
Working Sample Code of what it would be like if I didn't have duplicates:
I've tried [H00C'Hpal], [H,'H00Cpal], but they didn't work, they just create JASS errors and I can't play the map.
Sorry if that sounded confusing, in which it probably did.
Problem is, I don't know how I add in duplicates of the same unit/items.
I've made 15 units based off the Paladin, [Hpal], and each of the copied ones raw codes are: H00C:Hpal, H00D:Hpal, H009:Hpal, ETC.
Working Sample Code of what it would be like if I didn't have duplicates:
JASS:
call PoolAddItem(H,'Hpal')
I've tried [H00C'Hpal], [H,'H00Cpal], but they didn't work, they just create JASS errors and I can't play the map.
Sorry if that sounded confusing, in which it probably did.