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

[JASS] Raw Codes Problem....

Status
Not open for further replies.
Level 2
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:

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.
 
Level 2
Joined
Mar 5, 2008
Messages
8
Could you show me an example? I don't know how to format it correctly. No, this isn't my own save/load engine, it's a public released template save/load engine I'm editting for my own uses.
 
Status
Not open for further replies.
Top