• 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] An olde Jass Spell that needs Fine tuning

Status
Not open for further replies.
Level 12
Joined
Aug 10, 2004
Messages
1,141
I got this Attribute Bonus Menu that I want to get up and running again...
But my problem is that it keeps getting error and theres this .wtg file that I don't know what to do with.... but looks important....

If ya'll can explain to me what...

call InvX_EnhanceInventory(gg_unit_Edem_0000,12)
call InvX_EnhanceInventory(gg_unit_Ekee_0020,12)

are.....
And how to get them in a working state....
That would be great...........

THey look like units I have to create via object editor... but for some reason...

I srsly doubt that..........
 

Attachments

  • Attribute bonus.w3x
    170.3 KB · Views: 30
Level 2
Joined
Feb 24, 2007
Messages
37
function InvX_EnhanceInventory takes unit hero, integer slots returns boolean

It i'm correct it takes the unit wich needs to get an extended inventory and the amount of slots they should recieve. And it returns true if it succeeded. And false if it failed to do so.

JASS:
call InvX_EnhanceInventory(gg_unit_Edem_0000,12)
call InvX_EnhanceInventory(gg_unit_Ekee_0020,12)

So in this case it gives gg_unit_Edem_0000 and gg_unit_Ekee_0020 12 inventory slots. Basicaly you can use every unit there as long as it has 6 inventory slots like the comment above the function says:

// 'Constructor' of enhanced inventory, Units must have 6 item slots to get enhanced inventories, if you use // a slots value lower than 6 , it will look as if the unit had those slots.

The .wtg file contains the trigger data wich can be imported in the trigger editor. Though it will overwrite all the excisting triggers.
 
Level 12
Joined
Aug 10, 2004
Messages
1,141
I tried importing it but it wouldn't....
I'll just copy and paste the triggers in by opening a new map... thats no prob...

But I can't even get the thing to open...
 
Status
Not open for further replies.
Top