• 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] Please Help: Multiboard -> Inventory JASS

Status
Not open for further replies.
Level 4
Joined
Oct 2, 2004
Messages
128
I'm hoping to ask an intermediate (or better) JASS Script Writer to write a script something like this... P.S. If this is at all possible with triggers, please tell me! I don't want to ask someone to hassle with a JASS Scrpit if they don't need to:

The point of this script is for: When someone types a specific text message, a multiboard will be created (for the typer of the message only) showing an inventory screen, including regular-inventory-sized images of each of the 6 (or less) items the hero is carying.

This is what i've come up with:

Multiboard will show: [Name of Player]'s Inventory:
Item A. Item B. Item C. Item D. Item E. Item F.

A. The item in [Player's [primary hero]]'s slot 1 inventory
B. The item in [Player's [primary hero]]'s slot 2 inventory
C. The item in [Player's [primary hero]]'s slot 3 inventory
D. The item in [Player's [primary hero]]'s slot 4 inventory
E. The item in [Player's [primary hero]]'s slot 5 inventory
F. The item in [Player's [primary hero]]'s slot 6 inventory

Simple. :D

Here are the regular trigger (event, condition, action) stuffz i've come up with.

Event: [Player types (as an exact match):String [-inventory][ ][//#1, #2, #3, etc//]*

Condition: //somehow, I either need to take #9 and #12 out of the Event, or make a condition excluding #9 and #12 from working. (9 is neutral, and 12 is computer 8) )

Action: Create multiboard for [Triggering player].
Action: add //custom script showing the 6-inventory multiboard display method discussed above.// to [last created Multiboard]

Later on, I'd like to make an event where typing [-exit] destroys the Multiboard... That shouldn't be too hard.

*#1 = red, #2 = blue, #3 = teal, etc.

Well, that's about all i've got. At the least, can anyone tell me whether this is POSSIBLE or not? Lol

Thanks!
 
Level 3
Joined
Mar 27, 2004
Messages
70
I'm not sure what you want to achieve.
If Player 2 (Blue) writes "-inventory red", do you want it to display Player 1's inventory to Player 2?
Or should Player 2 write "-inventory" to see his own inventory?

Btw, you can't access an Item's Icon from the trigger editor. You will have to write them all manually in the triggers.
 
Level 4
Joined
Oct 2, 2004
Messages
128
I would like any player (Other than red, I suppose) to type -inventory red (or -inventory 1) and be able to see Red's inventory in a multiboard.

The reason for this is my map has a LOT of custom icons, and it would take even more space to make DISBTN Icons for each.

With the JASS I'm asking for, people will see the BTN Icons (thanks to the Multiboard), instead of clicking on a player and seeing 6 green squares... (If you've never seen green squares, that is what is shown if no DISBTN Icon exists). :D

And yes, I understand I'll have to work with the JASS Writer on the Icons that will be shown. I've looked at a few JASS Scripts and found that if an Icon is to be shown in a Multiboard, the script must read a path for each... *sadness*

=========================

P.S. About your signature, I'd be willing to learn Jass and do this on my own, if you can honestly tell me what I'm asking for isn't amazingly advanced. My problem is I don't know where to learn JASS Correctly.

I've rummaged a bit in the Tutorials Forum, but didn't find one (I may not have looked hard enough)...

Also, I don't want to just pick out any Tutorial and hope it teaches me what I need to know. I need SOME shimmer of proof that it'll be worth my while... :?
 
Status
Not open for further replies.
Top