Warcraft III resources & community, 2003–2006 · archived

hidden item slot

13 posts
#1

hidden item slot

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
#2
do you mean an extra slot that you can't see that holds your town portal item?
#3
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
#4
then, basically, have a boolean variable that says if they have it, and use a skill or something to use it :wink:
#5
Hi PurplePoot,

Can you please enlighten me, I'm still stuck on how to do it.

thanks,
chickie
#6
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.
#7
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
#8
then use the gui - "item - hide item"

you do not even need doing jass...
#9
you could just not add it to them in the first place :D
#10
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.
#11
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
#12
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
#13
Well then, Vexorian/Weaaddar/Blade.dk, and many others, have made inventory systems, so try checking them out at www.wc3campaigns.net