Tutorial A Guide to have a Proper Tavern (For Beginners)

Romek

Super Moderator
Reaction score
963
You can copy a trigger as text by right clicking the name (above Events), and clicking "Copy as Text".
Use that instead of manually typing the trigger out.
 

Azlier

Old World Ghost
Reaction score
461
First, post some real triggers. Not freehand.

Second, your first "trigger" leaks.

Third, "Set PlayerGroup = (All Players)". Totally pointless.

Fourth, how about a demo map?
 

editor_kid

New Member
Reaction score
11
You can copy a trigger as text by right clicking the name (above Events), and clicking "Copy as Text".
Use that instead of manually typing the trigger out.
ok thanks

First, post some real triggers. Not freehand.

Second, your first "trigger" leaks.

Third, "Set PlayerGroup = (All Players)". Totally pointless.

Fourth, how about a demo map?

ok i will make one
 

Tru_Power22

You can change this now in User CP.
Reaction score
144
Trigger:
  • Events
    • Unit-A unit enters Tavern Region 098 <Gen>
    • Conditions
      • ((entering unit)is a hero) Equal to True
    • Actions
      • Set temp_point=(center of outside region 00 <gen>
      • Unit-Move (Entering Unit) Instantly to temp_point
      • Custom Script: call RemoveLocation (udg_temp_point)
      • Camera-Pan Camera for (owner of(entering unit)) to (center of(outside region 00 <gen>)) over 1 seconds

Please add Rep :thup: Thank you.....

Still leaks, as the camera is moving to the region. You should destroy the temp point after you pan the camera.
 

the_ideal

user title
Reaction score
61
You can hide the circles of power: give them a custom model with a pathname that doesn't exist (such as "aldsgkjalkdjgdl.mdl") and place them behind the tavern.
 

Lightstalker

New Member
Reaction score
55
Why use a pre-placed region? Just use the event "A Unit Is Sold" event along with "Sold Unit is a Hero = True".
 

editor_kid

New Member
Reaction score
11
Why use a pre-placed region? Just use the event "A Unit Is Sold" event along with "Sold Unit is a Hero = True".

yeah your right about that but i think it is easier for begginers to use "unit enters region" you know but yours can also be used
 

gameman

It's been a long, long time.
Reaction score
96
My god, his thirst for Blur is unquenchable!

Instead of using those blurry pictures of the terrain palette, you could just zoom in on the tool your going to use...
 

Tyman2007

Ya Rly >.
Reaction score
74
You don't need the unit next to the tavern anymore after you get a hero unless you're planning on allowing multiple heroes. you could set a unit group for all units owned by owner of entering unit matching unit type of matching unit is equal to the unit next to the tavern, then do pick all units in unit group and remove, then do call DestroyGroup(udg_UnitGroup)

of course, it's only optional if you don't want people to try to exploit and get a second hero.
 

Tru_Power22

You can change this now in User CP.
Reaction score
144
You don't need the unit next to the tavern anymore after you get a hero unless you're planning on allowing multiple heroes. you could set a unit group for all units owned by owner of entering unit matching unit type of matching unit is equal to the unit next to the tavern, then do pick all units in unit group and remove, then do call DestroyGroup(udg_UnitGroup)

of course, it's only optional if you don't want people to try to exploit and get a second hero.

It's really easy to prevent that using one trigger. So there is no harm in leaving the taverns there.
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top