• 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] hidden item slot

Status
Not open for further replies.
Level 2
Joined
Sep 30, 2006
Messages
9
Hi,

How do you implement one hidden slot in jass. My plan is to put a bot with hidden slot for town portal item.

I've heard about the backpack inventory but its a really a big code. I just want it so simple.

thanks,
chickie
 
Level 2
Joined
Sep 30, 2006
Messages
9
Hi PurplePoot,

Yes, I've seen this implementation but just dont know how to implement it.

The SoTP won't appear in their inventory, but is carried in their respective CircleOfPower.

thanks,
Chickie
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
make an ability to use that does all the Town Portal stuff, and a boolean called bool

next, when the unit somehow acquires the scroll,

Set bool = true

next, when the unit casts the ability, add another condition saying bool Equal to True

and finally, in the actions of the town portal trigger,

Set bool = false.
 
Level 2
Joined
Sep 30, 2006
Messages
9
Hi PurplePoot,

I appreciate your time for the reply. I just want to make it clear. The map has an item Scroll of town portal which the AI bot must buy from the store and the item is just hidden somehow it wont be shown in their inventory.


Best regards,
Chickie
 
Level 5
Joined
May 9, 2006
Messages
162
You can use separate inv ability with one slot.
Be careful, in this case if your hero uses item from slot 1 hidden item will be used too.
 
Level 1
Joined
Oct 22, 2006
Messages
1
you could think about using a tome(like tome of str+1 but change it so it doesn't add str), changing the art and tooltip and stuff... then implement purplepoot's idea

instead of using a bool.. if you want to be able to hold multiple tomes, make it an integer & every time you buy one it adds one to that integer... then every time you use the skill it subtracts one, with the condidition that the integer must be atleast one.

*note* this is COMPLETELY do-able in GUI because i have used this before
 
Level 2
Joined
Sep 30, 2006
Messages
9
Hi Guys,

I'm still having a hard time to implement this. What I mean with hidden slot is that to go over 6 item slots. There are only 6 item slots in warcraft III, I heard you can go more than 6 item slots, but i just need only 7 where the seventh is hidden.


regards,
chickie
 
Status
Not open for further replies.
Top