player 12 wont move units to attack

  • Thread starter Thread starter Deathsong
  • Start date Start date
D

Deathsong

Guest
im using player 12 in my maps as a creap spawn he has multiple spawns 11 spawns in total a few spawns shair one rect i got big rects spawning the length of my map about 4 in total my problem is the monsters spawned in the rects only a few of them actualy more to attack not the hole lot and over time there is about 300-600 monsters in one place and the game well gets very laggy heres the trigger im using for all my monster spawns i cant see whats wrong with it it seems to be fine :/

Event
Timer - Every 200.00 seconds of game time
Conditions
Actions
Unit-Cearte 30 Zombie for player 12 (Brown) at (Center of rect 004)<gen>) facing Default building facing (270.0) degrees
Unit - Order (entering unit) to Attack - Move To (Center of Reck 005 <gen>)

all my triggers are copys of that but may have more then one unit spawning with it max is 3 types of units and the spawns time range from 275 seconds to 2 seconds i cant think of eny more information to give then that :banghead:
 
Instead of 'entering unit' (which works with the event, unit enters region) try to change it to 'last created unit.'

Also, if you create too many units at one time your map will lag a bit. Let me know if it works now.
 
Better yet, i suggest you try using what team ism said
with a little twist...
It lessens the lag,

Create 1 unit at a time and order it to attack it,

so if you need 10 units

its like doing the trigger 10 times in one trigger
just copy paste over and over...

example

create 1 buhbuh for player buh buh in buh buh facing buhbuh
order last created unit to attack-move to buhbuh
create 1 buhbuh for player buh buh in buh buh facing buhbuh
order last created unit to attack-move to buhbuh

just like that
over and over again~ well, its a longer trigger but for some reason
it helped lessen the lag for a map i made... i dont get it either but it worked..
 
hodge that is a very bad way to do that just use the following:

For each integer from 1 to 10
loop actions
create unit
order unit to attack


Sorry for not being exact but the 'for each integer' is under General for the actions.
 
Creating units one by one is even more laggy than creating groups of units
Use Create X units and next issue order to the last created unit group
Code:
Event
    Timer - Every 200.00 seconds of game time
Conditions
    None
Actions
    Unit - Create 30 Zombie for player 12 (Brown) at (Center of rect 004)<gen>) facing Default building facing (270.0) degrees
    Unit Group - Order (Last Created Unit Group) to Attack - Move To (Center of Reck 005 <gen>)
 
Code:
Event
Timer - Every 200.00 seconds of game time
Conditions
Actions
Unit-Cearte 30 Zombie for player 12 (Brown) at (Center of rect 004)<gen>) facing Default building facing (270.0) degrees
Unit Group-Order all units in region (Center of rect 004)<gen>) to attack-move to (Center of Reck 005) <gen>)

but xpheres works too...
 
thanx guys it fixed it there spawning and attacking but now i got a new problem :/ ive seen bad lag b4 but i never seen 10 second delays in attacks i think my map is now just a tad to laggy after a wile is there a way i can limit the amount of units spawns like say after my spawn spawns once not to spawn eny more until thoughs are dead ? or will i have to write a revive trigger and pre place my units ? :/
 
Just add a condition: (Number of units in (Units owned by Player 12 (Brown) matching (((Matching unit) is alive) Equal to True))) Equal to or less than <some number>
 
were would i find
(Number of units in (Units owned by Player 12 (Brown) matching (((Matching unit) is alive) Equal to True))) Equal to or less than <some number> ???? i took a look in the editor and didnt find it
 
Conditions > Integer Comparison (you want to compare the number of units, which is an integer).
 
it worked its like 100% purfect thanks for all the help !! :D lol last question and im done with all the triggers in this map im workin on :D the computers players in my map dont move and wont build a thing how can i turn on the ai so they will build like in a normal game and is it posible for me to spawn them extra units and if i did say spawn each one 2 footmen every 4 seconds would they use them or leave them standing still?
 
heres ur problem, it is no longer classified as a mele map so what u probably did was deleted teh mele initalization trigger

u need a trigger so taht at teh biggening(map initilitazion) turn on ai for comps like so

map iniztilization
no conditions
pick every player in all players and do actions
(if\then\else action)
if-picked player controller status equal to computor equal to true
then-turn mele ai on for picked player
else-do nothing

hope that helps, but if its not a normal mele style game then they will not attack to any of the random spawns. . . for instance there can not be fixed start locations, yet start locations must have been set. . . hope that helps

(that meens only certain places for teh bases but its not the same for player 1 or player 2 each time)
 
it didnt work :/ i set it up but they still did nothing its not a normal map i got spawns and all sorts of stuff :/ so that meens cuz i got othere things that the ai wont work at all ???
 
Deathsong said:
it didnt work :/ i set it up but they still did nothing its not a normal map i got spawns and all sorts of stuff :/ so that meens cuz i got othere things that the ai wont work at all ???
No, AI will work (and it'll use created units of the correct race). You need actions like this in your initialization trigger:
Code:
Actions
    AI - Start melee AI script for Player 1 (Red): Scripts\human.ai
    AI - Start melee AI script for Player 2 (Blue): Scripts\orc.ai
    AI - Start melee AI script for Player 3 (Teal): Scripts\elf.ai
    AI - Start melee AI script for Player 4 (Purple): Scripts\undead.ai
And, like the hint says, make sure you've got fixed start locations.
 
i tryed theses
Actions
AI - Start melee AI script for Player 1 (Red): Scripts\human.ai
AI - Start melee AI script for Player 2 (Blue): Scripts\orc.ai
AI - Start melee AI script for Player 3 (Teal): Scripts\elf.ai
AI - Start melee AI script for Player 4 (Purple): Scripts\undead.ai

but um :S what happend was the computers didnt move :/ so i switched them around and like i tryed strate undead.ai and then human then orc then elf and that didnt work i meen i tryed every computer like but then i went to my ai folder and found that there was no undead.ai etc etc etc so i tryed the wyrmmaster and the gruntmaster files in there and nothing :/

so i tryed i tall over agen but set all there starting positions to fixed even the players and still nothing so i deleted give starting units and placed my own that didnt work 2 hours later still nuthing :/ is there a place i can dl the undead.ai file or some thing :/
 
"undead.ai" without the "Scripts" part should do it.
And, yes, you already have it...

Other than that, they need the starting units (Town Hall / Workers)
and some gold and lumber.

The used Town Hall and AI must match the actual race of that player.
 
well i think i have to solve a difrent problem inorder to solve my ai problem


ill call it pre problem

ok i loaded my map in the game not the editor and tryed to play it like it was a normal map and discoverd that side 2 is empty there are no computers in it at all after i set it up how the map should be pre set up then the ai works but only for pink and gray nun of the othere coulers get there ai to work :/ so i gues my true problem is how do i make the computers take up players 8 9 10 11 12 make the be computers this is definatly weard in my point of view i dont know if eny one had this happen to them :/
 
Menu: Scenario / Players
Set all controllers your map is going to need.
Check "Fixed start location" for the computers.

Have a look at the "Forces" tab.
It might help to define some custom forces with fixed settings.
 
ok it worked and fixed that part but now there is a new problem that happens :/ after u start playing the map and u get to lvl 4 u just start having fun killing the onslaut of enemies and every thing is going grate then the game freazes and u cant move or eny thing the window wont minimize :/ or eny thing so u have to restart the computer eny ideas on how this could be happening ?
 
Check over your triggers is all i can say for this post up any non-normal ones or ones you think might be bugged.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    LOL! A tweak job!
  • The Helper The Helper:
    this is the fix I get from that yeah this is hard to control. disabling bots is pretty much necessary as ai and other bots would push really old threads to the top. reduce weight of view count. disable guest view tracking if you really want to push active threads to the top. a bit of tinkering for a few days with the weights and other settings should get you a decent trending widget box.
  • Ghan Ghan:
    I changed the settings a bit.
  • Ghan Ghan:
    Narrowed it to 7 days for the half-life and set views to 0 weight.
  • The Helper The Helper:
    I dont think Trending would work for this forum it would be better to just have the last 5 posts from anywhere
  • Ghan Ghan:
    Probably will have to give it some time to update.
  • Ghan Ghan:
    I'm guessing it is not retroactive.
  • Ghan Ghan:
    Next on the punch list: Update the server to Ubuntu 24.04.
  • The Helper The Helper:
    Mad Lads is new I see it displays original post date
  • The Helper The Helper:
    as long as it changes it is good - it is good now it updated and its new stuff
  • The Helper The Helper:
    One thing I have noticed and I dont know if it is by design but like 1 out of 3 times I come to the site the Anubis screen just hangs open, if I refresh it will go away but sometimes it hangs
  • Ghan Ghan:
    I've seen that as well.
  • The Helper The Helper:
    Wow - the change in the stats are major. I kind of knew it was all bots but wow, to see the effect. Why the social media sites cant do something like this I have no idea.
  • 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 Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top