• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Help me tavern Here

Status
Not open for further replies.
Level 3
Joined
Jan 29, 2011
Messages
31
So I need a tavern this time and it's kinda confusing because i don't know how to make it 3 players will spawn in that side while the other is spawning in the other side and the third team will spawn on the third side
Here's for easy meaning
my map is 3v3v3
Team A
Spawn in the North
Team B
Spawn in South-west
Team C
Spawn in South-east
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
create regions and use triggers that whenever a hero gets picked and is in a player group (for example player 1, 2 and 3) it will be moved instantly to the region it is supposed to spawn
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
I need a tutorial video :p

here is a tutorial:
http://world-editor-tutorials.thehelper.net/herotavern.php

It's not a video tutorial but it explains how to create taverns quite well...
However, you do need some basic knowledge of GUI triggers

If you know nothing about triggers yet I suggest you to read these tutorials first:
http://www.thehelper.net/forums/showthread.php/118648-Triggers-Introduction-To-Triggers
http://www.hiveworkshop.com/forums/...79/how-begin-triggering-complete-noob-114877/

by using regions you can move the hero's sold by the tavern to the point where you want them to start.
action: unit - move (instantly) to region
(or something simillar to that)
 
Last edited:
Level 3
Joined
Jan 29, 2011
Messages
31
here is a tutorial:
http://world-editor-tutorials.thehelper.net/herotavern.php

It's not a video tutorial but it explains how to create taverns quite well...
However, you do need some basic knowledge of GUI triggers

If you know nothing about triggers yet I suggest you to read these tutorials first:
http://www.thehelper.net/forums/showthread.php/118648-Triggers-Introduction-To-Triggers
http://www.hiveworkshop.com/forums/...79/how-begin-triggering-complete-noob-114877/

by using regions you can move the hero's sold by the tavern to the point where you want them to start.
action: unit - move (instantly) to region
(or something simillar to that)

I know all about it but im not really sure what trigger to use... so i need a step by step guide
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
the first tutorial I give you IS a step by step guide :p

first create your tavern like in the tutorial is explained, then use this trigger to spawn your hero's:

  • Events
    • Unit - A unit Sells a unit
  • Conditions
    • ((Sold unit) is A Hero) Equal to True
  • Actions
    • Player Group - Pick every player in (All players) and do (Actions)
      • Loop - Actions
        • Player - Make (Unit-type of (Sold unit)) Unavailable for training/construction by (Picked player)
    • Game - Display to (All players) the text: (A player has chosen + (Name of (Sold unit)))
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • ((Owner of (Sold unit)) is in team[1]) Equal to True
    • Then - Actions
      • Unit - Move (Sold unit) instantly to (Center of team 1 starting point <gen>)
    • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Sold unit)) is in team[2]) Equal to True
        • Then - Actions
          • Unit - Move (Sold unit) instantly to (Center of team 2 starting point <gen>)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Sold unit)) is in team[3]) Equal to True
            • Then - Actions
              • Unit - Move (Sold unit) instantly to (Center of team 3 starting point <gen>)
            • Else - Actions
    • Selection - Select (Sold unit) for (Owner of (Sold unit))
put your players in a player group variable (in some initialization trigger) then check in this trigger if the owner of the sold unit is in that group.
If it is then move the sold unit to the starting point of where his team starts.

is there anything more you like to know?
 
Level 3
Joined
Jan 29, 2011
Messages
31
the first tutorial I give you IS a step by step guide :p

first create your tavern like in the tutorial is explained, then use this trigger to spawn your hero's:

  • Events
    • Unit - A unit Sells a unit
  • Conditions
    • ((Sold unit) is A Hero) Equal to True
  • Actions
    • Player Group - Pick every player in (All players) and do (Actions)
      • Loop - Actions
        • Player - Make (Unit-type of (Sold unit)) Unavailable for training/construction by (Picked player)
    • Game - Display to (All players) the text: (A player has chosen + (Name of (Sold unit)))
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • ((Owner of (Sold unit)) is in team[1]) Equal to True
    • Then - Actions
      • Unit - Move (Sold unit) instantly to (Center of team 1 starting point <gen>)
    • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Sold unit)) is in team[2]) Equal to True
        • Then - Actions
          • Unit - Move (Sold unit) instantly to (Center of team 2 starting point <gen>)
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Sold unit)) is in team[3]) Equal to True
            • Then - Actions
              • Unit - Move (Sold unit) instantly to (Center of team 3 starting point <gen>)
            • Else - Actions
    • Selection - Select (Sold unit) for (Owner of (Sold unit))
put your players in a player group variable (in some initialization trigger) then check in this trigger if the owner of the sold unit is in that group.
If it is then move the sold unit to the starting point of where his team starts.

is there anything more you like to know?


Kinda Stuck on the 1/4 part of it xD really hard
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
Kinda Stuck on the 1/4 part of it xD really hard

which part exactly :)?
This trigger still leaks b.t.w. if you want me to fix it, just tell me to :)

or if you want I can implement it into your map, the problem is I'm at work right now so I can't open the editor right now... :(
if you want I can do it for you when I get home :)
 
Level 3
Joined
Jan 29, 2011
Messages
31
which part exactly :)?
This trigger still leaks b.t.w. if you want me to fix it, just tell me to :)

or if you want I can implement it into your map, the problem is I'm at work right now so I can't open the editor right now... :(
if you want I can do it for you when I get home :)

i give up :(
can you make this please :( just make some triggers and regions... please i need your help im only a beginner in this kind of stuffs
here is the map file ( i already made a tavern for you :)
http://www.mediafire.com/?d8ks5rkl5bsdcxd

thanks in advanced i will rep you if you help me and add you in the credits list

oh i forgot if you want to specify my request heres what i want
- Player 1 , 2 , 3 (buying heroes will be moved in BaseNorth Region)
- Player 5 , 6 , 7 (will move in Southwest)
- Player 9 , 10 , 11 (move in Southeast)

thx in advanced :)
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
i give up :(
can you make this please :( just make some triggers and regions... please i need your help im only a beginner in this kind of stuffs
here is the map file ( i already made a tavern for you :)
http://www.mediafire.com/?d8ks5rkl5bsdcxd

thanks in advanced i will rep you if you help me and add you in the credits list

oh i forgot if you want to specify my request heres what i want
- Player 1 , 2 , 3 (buying heroes will be moved in BaseNorth Region)
- Player 5 , 6 , 7 (will move in Southwest)
- Player 9 , 10 , 11 (move in Southeast)

thx in advanced :)

Here is the new map:
http://www.hiveworkshop.com/forums/pastebin.php?id=loe6z4

I fixed a lot of memmory leaks for you, every single memory leak you've made actually xD.
If you want to know more about leaks I suggest to look in this small tutorial:
http://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=27219

(I might have forgotten a leak or 2 though xD)

Also: the tavern works, You'll choose a hero at start and when you choose it, it will be placed in your teams base (yes, yes with the camera and stuff geez).
The hero will be removed from the tavern so that others cant pick it anymore.
And the player who picked the hero cant pick another hero. (This however still is a bit buggy, if you want I can fix it)

I hope this helped u out :)

If you need any help later on your project, just pm me or post it in the world editor help forum. Your question always get answered (even though some things might be impossible).

EDIT: at work once again -,-"
 
Last edited:
Status
Not open for further replies.
Top