Region Trigger

  • Thread starter Thread starter KiLo
  • Start date Start date
K

KiLo

Guest
I'm making my first map and having a few difficultys. I wanted help with a region trigger i would like to develop, i have seen it before but i don't know to make one myself.

Heres my idea: A triggering unit would walk from region 1 to region 2, and would say the area that they are entering into.
Ex. You are now entering the forest

I know how to make it say the message but i need to know the variables for The directions

Ty ;)
 
Do you wnat it to say a message to thre player when they enter the region or do you want a transmissionf rom the unit that your entering it? If it's the first one then you just create this trigger

Events
Unit - A unit enters Your region<gen>
Conditions
Actions
Display to owner of (Entering unit) the text: You are entering the forest

You can add a condition like (Entering unit) is a hero equal to true so if you have 10 units entering the region it won't display it ten times.
 
Hmm sorry i dont think i made my self that clear,

I knew that trigger just if you have 2 regions next to eachother I don't want it saying entering forest while you are actually leaving the region and then it saying the region im actually Entering


Ex. *Player is in the forest and heads towards the city* (the region that would trigger saying " Entering the forest" would also say it while The player is leaving. After he goes to the next area it would also say "Entering the city"

I would like to eliminate that Message when leaving the region, hopefully you understand my problem now =/
 
I don't know how to explain it but if I'm correct I think you want these triggers:

Code:
Entering Forest
    Events
        Unit - A unit enters Forest <gen>
    Conditions
        ((Entering unit) is A Hero) Equal to True
    Actions
        Game - Display to (All players matching ((Owner of (Entering unit)) Equal to (Matching player))) the text: Entering the Forest

Code:
Exiting Forest
    Events
        Unit - A unit leaves Forest <gen>
    Conditions
        ((Leaving unit) is A Hero) Equal to True
    Actions
        Game - Display to (All players matching ((Owner of (Leaving unit)) Equal to (Matching player))) the text: Exiting the Forest

Code:
Entering City
    Events
        Unit - A unit enters City <gen>
    Conditions
        ((Entering unit) is A Hero) Equal to True
    Actions
        Game - Display to (All players matching ((Owner of (Entering unit)) Equal to (Matching player))) the text: Entering the City

Code:
Exiting City
    Events
        Unit - A unit leaves City <gen>
    Conditions
        ((Leaving unit) is A Hero) Equal to True
    Actions
        Game - Display to (All players matching ((Owner of (Leaving unit)) Equal to (Matching player))) the text: Exiting the City

[EDIT] If your unnit is not a hero then just change that condition or remove it.
 
There is a problem with this trigger tho;

First region boxes are reqtangle and my area's are not necessarly squares >.<

Any other ideas ?
 
Assuming you start in the city, have the "city" trigger initially off.

Use something like this:
Code:
TriggerForest
    Events
        Unit - A unit enters Forest <gen>
    Conditions
    Actions
        Game - Display to (All players) the text: Entering forest
        Trigger - Turn on TriggerCity <gen>
        Trigger - Turn off (This trigger)


TriggerCity
    Events
        Unit - A unit enters City <gen>
    Conditions
    Actions
        Game - Display to (All players) the text: Entering city
        Trigger - Turn on TriggerForest <gen>
        Trigger - Turn off (This trigger)


So, once you are in the forest, the forest trigger will turn itself off,
and the city trigger on.
And the other way around.

Square regions don't fit?
Use several. Non-overlapping preferrably.
Then add a couple more events...
Unit enters City1
Unit enters City2
...



HTH
AceHart
 
THIS GUY

Originally posted by AceHart
Assuming you start in the city, have the "city" trigger initially off.

Use something like this:
Code:
TriggerForest
    Events
        Unit - A unit enters Forest <gen>
    Conditions
    Actions
        Game - Display to (All players) the text: Entering forest
        Trigger - Turn on TriggerCity <gen>
        Trigger - Turn off (This trigger)


TriggerCity
    Events
        Unit - A unit enters City <gen>
    Conditions
    Actions
        Game - Display to (All players) the text: Entering city
        Trigger - Turn on TriggerForest <gen>
        Trigger - Turn off (This trigger)


So, once you are in the forest, the forest trigger will turn itself off,
and the city trigger on.
And the other way around.

Square regions don't fit?
Use several. Non-overlapping preferrably.
Then add a couple more events...
Unit enters City1
Unit enters City2
...



HTH
AceHart

go with this guys option, i recon its the best, tis what i woulda said
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Probably inflates their numbers so they look better to advertisers.
  • The Helper The Helper:
    Yeah google does not filter those bots. I remember when Apex was doing Google ads I saw the same IPs in there as I was seeing here - google is totally tracking all those bots as traffic and most google traffic, at least ours, was all bots
  • The Helper The Helper:
    oh wow, i bet i can post x links now and do the webp pics now giggity
  • The Helper The Helper:
    ahh anubis blocks anyone that has javascript turned off
  • The Helper The Helper:
    Robot: HTTP client library - i love the new robot :)
  • The Helper The Helper:
    New Science News Forum and it starts out with 420 threads :)
  • The Helper The Helper:
    Technical Support forum name changed To Technology News, there is now a Tech, sci/tech and science forums now :)
  • The Helper The Helper:
    Happy Saturday! Hope everyone has a fantastic weekend!
  • Ghan Ghan:
    We are now on Ubuntu 24.04. Had some issues with the style after the OS/PHP upgrade but now resolved.
    +1
  • Ghan Ghan:
    PHP 8.3 now live
    +1
  • The Helper The Helper:
    Weekend went by too fast. Next weekend I am going to try to do a nature thing - buddy of mine lives by the Colorado river and has some kayaks and invited me to do some kayaking from a place he knows to get on the river.
  • Ghan Ghan:
    That sounds like an adventure.
  • The Helper The Helper:
    400 users all online all looking at latest content
  • The Helper The Helper:
    I wonder how all these bots that sit on the lastest content page get passed anubis or maybe they did not but they are just registering on whos online
  • The Helper The Helper:
    showing up on whos online not registration
  • Ghan Ghan:
    The first gate is stopping all the bots that don't execute javascript.
  • Ghan Ghan:
    That's the main thing with Anubis - no Javascript, no site. Typically you can still get the site to load without Javascript.
  • The Helper The Helper:
    I remember the whole javascript thing, question - how many real people disable that?
  • The Helper The Helper:
    Hell I guess I could go back on the stats to know that - we probably capture that and we know the before and after
  • Ghan Ghan:
    Real users can't really disable Javascript anymore these days.
  • Ghan Ghan:
    The internet is broken without it.
  • Ghan Ghan:
    Bot readable, not human usable.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!
  • The Helper The Helper:
    Check out the new Featured Content feature we apparently got with the forum software upgrade! https://www.thehelper.net/featured/

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top