creating and moving units to a location (walking)

  • Thread starter Thread starter RavageW3
  • Start date Start date
well, at first i send 3 units at a time every 5 seconds, then in a different location i send 1 at a time after 4 seconds then i send 1 more at smae location as the last one, then i send 1 more agan every 10 seconds in thje same region as second and thrid one, then lastly i send 1 more unit in first region every 5 seconds
 
i send a total of 2 units every 4-5 seconds in region 1 and 3 units every 4-5-10 seconds on region 2...
 
RavageW3 said:
i send a total of 2 units every 4-5 seconds in region 1 and 3 units every 4-5-10 seconds on region 2...

Could you clarify on the 4-5/4-5-10 seconds part? Do you want one sent at 4 seconds, then add another 5 (9 seconds from the beginning) seconds, send another, then 10 (19 seconds in all) seconds send one last one? Or would you want a "block" of 10 seconds, where at the 4th second, send one, 5th second, send another, and at the 10th second, send one?
 
nono, i want to send 3 of one type of unit every 4 seconds, another type every 5 seconds, and another type every 10 seconds.
 
Alright, so the easiest way to do this is to not use a "For" loop at all. The For loop puts a finite limit on the number of units you could make, plus it messes up your timing (the trigger would "run into itself" many many times, as after two 5 second waits, another 10 seconds has elapsed and thus your trigger would fire again). Try this, or a variation thereof. Just make sure it doesn't run into itself multiple times.

Code:
    Events
        Time - Every 10.00 seconds of game time
    Conditions
    Actions
        Wait 4.00 seconds
        Unit - Create {all the units you wanted spawned first}
        Unit Group - Order {etc}
        Wait 1.00 seconds
        Unit - Create {second group}
        Unit Group - Order {etc}
        Wait 5.00 seconds
        Unit - Create {final group}
        Unit Group - Order {etc}
 
...Disregard the code in my last post.

You need three triggers to do this correctly. One for group1, another for group2, and one for group3

Code:
Trigger One
Events
        Time - Every 4.00 seconds of game time
    Conditions
    Actions
        Unit - Create {all the units you wanted spawned first}
        Unit Group - Order {etc}
Code:
Trigger Two
Events
        Time - Every 5.00 seconds of game time
    Conditions
    Actions
        Unit - Create {group two}
        Unit Group - Order {etc}
Code:
Trigger Three
Events
        Time - Every 10.00 seconds of game time
    Conditions
    Actions
        Unit - Create {group three}
        Unit Group - Order {etc}
 
You ever stop to think that you're making units too fast? Where are they going?

I bet it takes longer then 10 seconds to get there!

Try increasing the time interval (The time in the Event)

Check to make sure no doodads are in the way, or regions that stop units, or something like that. Sometimes you get so caught up in this or that, you forget something you previously made for whatever purposes, and it conflicts with your new triggers.

Um, this is probably a stupid question, but simple reasons are often the real reason of what's wrong:

The Necromancer's have a walking speed greater then 0, right?

I don't see why a simple couple of TD/AoS type triggers don't work.

Code:
UndeadSpawnRight
    Events
        Time - Every 45.00 seconds of game time
    Conditions
    Actions
        Unit - Create 2 Fledgling for Player 6 (Orange) at (Center of UndeadRight <gen>) facing Default building facing (270.0) degrees
        Unit - Create 1 Vampire Archer for Player 6 (Orange) at (Center of UndeadRight <gen>) facing Default building facing (270.0) degrees
        Wait 0.30 seconds
        Unit Group - Pick every unit in (Units in UndeadRight <gen>(((Unit-type of (Matching unit)) Equal to Fledgling) or ((Unit-type of (Matching unit)) Equal to Vampire Archer))) and do (Unit - Order (Picked unit) to Patrol To (Center of UONE <gen>))

I use this very trigger in Vampire Slayer, an AoS. I know for a FACT that unless SOMETHING is in the way of the units created, they WILL attack move to the region (UONE <gen>)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper
  • Stephen Stephen:
    Oh no - please don't lose the Nuon content
    +1
  • The Helper The Helper:
    Someone email AtariAge and see if they want me to transfer the forum data over to it
  • Ghan Ghan:
    Could probably keep NUON stuff around here if we wanted.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top