Gah! Region/Trigger problem.

  • Thread starter Thread starter GrandMoren
  • Start date Start date
G

GrandMoren

Guest
Alright, first i'd like to say i've been searching the forum for the answer since 6 a.m. Its not 11 am.
So dont say I didnt look ;)

Okay, heres what I want to do.
I want to make a trigger where you press up and it talks to what ever region your in.
But... Apparently im stupid and I cant figure it out.

This is what I got so far.
Tell me if this is right.

I think im only missing the last "If" action.
I just cant find one that fits my need.

--------------------------------------

Up
Events
Player - Player 1 (Red) Presses the Up Arrow key
Conditions
((Current camera bounds) contains (Triggering unit)) Equal to True
((Triggering unit) is A Hero) Equal to True
Actions
Trigger - Turn off (This trigger)
Trigger - Turn on Uprun <gen>

---------------------------------------

Uprun
Events
Conditions
((This trigger) is on) Equal to True
Actions
Trigger - Turn off (This trigger)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Current camera bounds) contains (Entering unit)) Equal to True
Then - Actions
-------- This is where the region action goes --------
Else - Actions
Do nothing



Any Ideas?
 
With the event "Player X presses ...", there's no "triggering unit".
Only a "triggering player".

You want a test like "<some region> contains Hero owned by Triggering Player".
 
Yes, I know.
Thats how I WAS going to do it, but then thought about having to add all those blasted commands on each and every single trigger.
Isnt there a better way to do it so I only have to code it once?
 
From your description, I can really only guess what you're trying...

But, here's a suggestion: use arrays.
Two of them actually, one of type "region", and one of type "trigger".

At "map initialization", prepare both arrays:
Set RegionArray[1] = region 1
Set RegionArray[2] = region 2
Set RegionArray[3] = region 3
...

Set TriggerArray[1] = trigger doing the talk in region 1
Set TriggerArray[2] = trigger doing the talk in region 2
Set TriggerArray[3] = trigger doing the talk in region 3
...

Then a trigger with the event "up arrow", no conditions:

For each Integer A from 1 to number of regions,
if RegionArray[Integer A] contains Hero owned by Triggering Player
then
Trigger - Run TriggerArray[Integer A] (ignoring conditions)
Skip remaining actions
else
endif


And the "trigger doing the talk in region 1" only contains the actual actions, no events, no conditions,
with whatever it is you want to happen in region 1.
 
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