Spawn People?

grognog

New Member
Reaction score
1
I want to make a spawn based game.
But i don't know how to make the guys spawn like in Lordearon Tactics where there is a max and you can make castles.
Anyone tell me how?
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Have no idea what you're talking about :S What is Lordearon Tactics ?
 

grognog

New Member
Reaction score
1
its a spawn based game where ppl spawn at your base every 2 or 3 minutes. look it up at epicwar.com
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Maybe use the food then ?

And before spawning, check how much food the player has left, and if it's enough then spawn, else don't and maybe display a message :D
 

grognog

New Member
Reaction score
1
Trigger:
  • Events
    • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Player 1 (Red) Food cap) Greater than or equal to ((Player 1 (Red) Food used) + 2)
        • Then - Actions
          • Unit - Create 1 Footman for Player 1 (Red) at (Center of Region 000 <gen>) facing Default building facing degrees
        • Else - Actions
          • Game - Display to Player Group - Player 1 (Red) the text: You do not have eno...

Works =)
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Though that still works only for Player 1 (Red), so you might wanna do this:
Trigger:
  • Spawn Food
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Player((Integer A))) Food used) Less than or equal to (((Player((Integer A))) Food cap) - 2)
            • Then - Actions
              • Set TempPoint = (Center of Region 1 <gen>)
              • Unit - Create 1 Footman for (Player((Integer A))) at TempPoint facing Default building facing degrees
              • Custom script: call RemoveLocation(udg_TempPoint)
            • Else - Actions


It also leaked so I added that variable, and the custom script :D
 

grognog

New Member
Reaction score
1
Trigger:
  • Other Spawning way
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of living Footman units owned by Player 1 (Red)) Less than 15
        • Then - Actions
          • Unit - Create 1 Footman for Player 1 (Red) at (Center of Region 000 <gen>) facing Default building facing degrees
        • Else - Actions
          • Game - Display to Player Group - Player 1 (Red) the text: You have capped in ...

Also Works :)
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Do you even know what bump is ?
It's
B ring
U p
M y
P ost

Which means that if nobody has replied to your thread for at least 24 hours and you haven't gotten an answer to your question, you can bump to bring the thread to the top !

Remember, 24 HOURS!

And also, I believe you've already gotten an answer to your question, right ?

And use my trigger, as it is leakless, or add the stiff inside the "If" from my trigger to replace your create unit action :D
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top