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

inventory help

Status
Not open for further replies.
Level 4
Joined
Mar 15, 2009
Messages
70
How to make inventory system in gui
when u type -inventory u will tele to 1 place and when u type -out u will get back to place befo u type -inventory
 
Level 16
Joined
May 1, 2008
Messages
1,605
Hmm so I understand it right, that you got a place on your map, witch is an inventory for one player?

In that case I would do the following thing:
If the player has a Hero - first the hero need a variable...
  • Actions:
    • Set [Hero] to Triggering Unit
..or something like that

Then do the following to trigger:
  • Inv in
    • Events
      • Player - Player 1 (Red) types a chat message containing -Inventory as An exact match
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Trigger - Turn on Inv out <gen>
      • Unit - Move (Hero [the variable]) instantly to (Center of (Inventory area))
2nd trigger (NOT initally on)
  • Inv out
    • Events
      • Player - Player 1 (Red) types a chat message containing -out as An exact match
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Trigger - Turn on Inv in <gen>
      • Unit - Move (Hero [The varible]) instantly to (Center of (What you want area))
This is the way I would do this - Ofc i tested it and if is that what you wanted - works fine =)

MfG
Dr. Boom
 
Level 4
Joined
Mar 15, 2009
Messages
70
did i need make 1 dummy at point befo hero tele so hero can tele back at that dummy point ?
 
Status
Not open for further replies.
Top