Timer end action begins.

Guldfisk

New Member
Reaction score
0
Hello!

I have tried to make a trigger that when the timer ends the monster will spawn and walk to destroy the castle. I have manage to make a timer and then i want to know how to make monsters spawn and then walk to the castle.

This is what i have managed to do so far.

testing trigger nr1
Events
Time - Elapsed game time is 1.00 seconds
Conditions
Actions
Countdown Timer - Create a timer window for (Last started timer) with title Get ready
Countdown Timer - Start (Last started timer) as a One-shot timer that will expire in 600.00 seconds

Any support is appreciated and try to explain like I'm three years old because I'm quite new to this
also, tell me if this is way to complicated
 

Pharaoh_

The epic journey will soon begin... Prepare!
Reaction score
136
Trigger:
  • Trigger1
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Set Timer1 = (Last Created Timer)
      • Countdown Timer - Start Timer1 as a One-shot timer that will expire in 600.00 seconds


Trigger:
  • Trigger2
    • Events
      • Time - Timer1 expires
    • Conditions
    • Actions
      • Set Point1 = (Your point)
      • Unit - Create 1 Monster for (Neutral Hostile) at (Point1) facing (Castle 0000 <gen>)
      • Unit - Order (Last created unit) to Attack (Castle 0000 <gen>)
      • Custom script: call RemoveLocation (udg_Point1)
      • Custom script: call DestroyTimer (udg_Timer1)
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Might wanna use this instead... abit more modified for your needs maybe ;)
Trigger:
  • Timer Begin
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Countdown Timer - Start Timer as a One-shot timer that will expire in 600.00 seconds
      • Countdown Timer - Create a timer window for Timer with title Get Ready!
      • Set Timer_Window = (Last created timer window)


Trigger:
  • Timer Ends
    • Events
      • Time - Timer expires
    • Conditions
    • Actions
      • Set TempPoint = (Center of Spawn <gen>)
      • Unit - Create 1 Footman for Neutral Hostile at TempPoint facing Default building facing degrees
      • Unit - Order (Last created unit) to Attack Castle 0012 <gen>
      • Custom script: call RemoveLocation(udg_TempPoint)
      • Custom script: call DestroyTimer(udg_Timer)
      • Custom script: call DestroyTimerDialog(udg_Timer_Window)
      • Countdown Timer - Destroy Timer_Window


@Pharao: Sorry, didn't mean to be disrespectful to you trigger XD
 

Guldfisk

New Member
Reaction score
0
komaqiton how do guys get the variables in the trigger the won't get there for me they'll just stay in the variables editor
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Do you mean how i set variables like:
Trigger:
  • Set TempPoint = (Center of Spawn <gen>)


Then there is an action called "Set Variable"
 

Guldfisk

New Member
Reaction score
0
thanks BTW i made the opposite order does it matters on the first?

Now i'm going to watch the mentalist
 

Guldfisk

New Member
Reaction score
0
Trigger:
  • testing trigger nr1
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Set timer1 = (Last started timer)
      • Countdown Timer - Create a timer window for (Last started timer) with title Get ready
      • Countdown Timer - Start (Last started timer) as a One-shot timer that will expire in 30.00 seconds


you had the variables down i had it up hasn't had time to make second yet shall do it tommorow thanks for al you support.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
You need to set the variable after you starts the timer, since it uses (Last Started Timer)
and you also need to move the Create timer window to last, and change Laststarted timer there to the variable, timer1.
 

Guldfisk

New Member
Reaction score
0
Yes, now i know what they do... sort of. Removing old things and things that are not in use i guess. Correct me if I'm wrong


Edit1: Where do you find "unit - Order unit" in actions?
Edit2: No worries i found.
Edit3: i got some errors even though the trigger almost exactly as yours.

call RemoveLocation(udg_TempPoint)
call DestroyTimer(udg_Timer)
call DestroyTimerDialog(udg_Timer_Window)

was the error lines

Trigger:
  • testing trigger nr1
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Countdown Timer - Start timer1 as a One-shot timer that will expire in 140.00 seconds
      • Countdown Timer - Create a timer window for timer1 with title Get ready
      • Set Timer_window = (Last created timer window)


this i have no error on

Trigger:
  • testing trigger nr2
    • Events
      • Time - timer1 expires
    • Conditions
    • Actions
      • Set rallyPoint = (Center of Region 010 <gen>)
      • Unit - Create 2 Armor unit for Neutral Hostile at rallyPoint facing Default building facing degrees
      • Unit - Order (Last created unit) to Attack Castle 0003 <gen>
      • Custom script: call RemoveLocation(udg_TempPoint)
      • Custom script: call DestroyTimer(udg_Timer)
      • Custom script: call DestroyTimerDialog(udg_Timer_Window)
      • Countdown Timer - Destroy Timer_window

is the second who i have error on.

i don't get this
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Well, those lines remove the leaks of variables, which means that you need to use the same variables as i did, or change the name, for example:
call RemoveLocation(udg_TempPoint)
change TempPoint there to you point variable you use in you trigger, and the same for the others :thup:
 

Guldfisk

New Member
Reaction score
0
Okay I'll try that.

Edit: It doesn't work i have changed all to their correct names but there is still an X on the trigger paper.
Do you mind take a look at my trigger and tell me whats wrong

Trigger:
  • testing trigger nr2
    • Events
      • Time - timer1 expires
    • Conditions
    • Actions
      • Set rallyPoint = (Center of Region 010 <gen>)
      • Unit - Create 2 Armor unit for Neutral Hostile at rallyPoint facing Default building facing degrees
      • Unit - Order (Last created unit) to Attack Castle 0003 <gen>
      • Custom script: call RemoveLocation(udg_rallyPoint)
      • Custom script: call DestroyTimer(udg_timer1)
      • Custom script: call DestroyTimerDialog(udg_Timer_window)
      • Countdown Timer - Destroy Timer_window


Here's a picture of it

monsterspawningtrigger.png


Edit2: Now I've made a new exactly mirror of the old trigger and i hope that will work.
Edit3: Okay now the monsters spawn but they're not moving towards the castle
Edit4: I figured out why they won't attack castle... They had no attack but now thay walk half when then turn around
 

Guldfisk

New Member
Reaction score
0
Now i got like everything working except for one thing i want to create many units like 6 units and only one will attack the castle... What shall i do becuse i cant have random units in region :(
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Make a loop,I'll just show you the look of the loop, like this:
Trigger:
  • For each (Integer A) from 1 to 6, do (Actions)
    • Loop - Actions
      • Set TempPoint = (Center of (Playable map area))
      • Unit - Create 1 Footman for Player 1 (Red) at TempPoint facing Default building facing degrees
      • Unit - Order (Last created unit) to Attack Castle 0012 <gen>
      • Custom script: call RemoveLocation(udg_TempPoint)

BTW, just put the unit actions in this loop, and then the two custom scripts, call DestroyTimer and call DestroyTimerDialog, after the loop ;)

And i also want to point out that, oyu don't need that last action in your second trigger, Countdown Timer - Destroy Timer_window, the custom script before that takes care of it ;)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Actually I was just playing with having some kind of mention of the food forum and recipes on the main page to test and see if it would engage some of those people to post something. It is just weird to get so much traffic and no engagement
  • The Helper The Helper:
    So what it really is me trying to implement some kind of better site navigation not change the whole theme of the site
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top