Staredit Network > Forums > SC2 Assistance > Topic: Creating Units
Creating Units
Aug 1 2010, 12:35 am
By: qurqle  

Aug 1 2010, 12:35 am qurqle Post #1



heres a basic idea!

Current Player creates One (Building)

Remove (building) add (gas)
Create 1 (Unit) at (Location1)
---
Current player brings exactly 1 (unit) to (location1)
timer is (time)

Create (units) at (location2)
restart timer
---
commands at most 4 (unit) to (location1)
automatically destroy (building) add gas to (gas)



Its for a Lord of the rings strategy game im making just need some help with spawning units.



None.

Aug 1 2010, 12:58 am arkla Post #2



...what the :crazy:
what exactly do you want us to help you with?



None.

Aug 1 2010, 1:02 am DevliN Post #3

OVERWATCH STATUS GO

I think he wants a building to be removed and replaced with a unit when a player constructs it. Then create a unit at another location (for some reason) and remove that new unit to create yet another unit at a different location.

I'm confused by these though. They seem redundant. Like why destroy a building and add gas when it is built, and then have another destroy trigger when you have 4 units (even though there is no building to destroy anymore)?

I think some more info would help us a lot.



\:devlin\: Currently Working On: \:devlin\:
My Overwatch addiction.

Sep 29 2010, 11:09 pm qurqle Post #4



K heres the basic idea again...

for Triggers named (TEAM1.SPAWNa)

Current Player brings at least 1-4 unit to location (CASTLE COUNTER)
Current Player brings exactly 1 (MINAS ANOR) to anywhere
Timer is exavtly 120 seconds

Create 3 Shortbow Archers at (1 Gondor Spawn a)
Create 2 Shortbow Archers at (1 Gondor Spawn a)
add 1000 Minerals
Restart timer




I know its in starcraft 1 but thats all i remeber how to dispaly the triggers, i need it converted to starcraft2 triggers

basically i want a bunch of units created if the unit owns 1-4 caslte counters and commands 1 building (Minas anor)
its for a LOTR Strategy map



None.

Sep 30 2010, 5:01 am Roy Post #5

An artist's depiction of an Extended Unit Death

Event - Timer myTimer expires
Action - For each integer playerNum from 1 to 8
     Action - If/Then/Else
          If - Condition - Unit count at CASTLE COUNTER owned by player playerNum >= 1
          If - Condition - Unit count at MINAS ANOR owned by player playerNum == 1
          Then - Action - Create Unit at Region
Action - Create new Timer with time 120 game seconds
Action - Set Variable myTimer = last created Timer

Some variation of that should get you what you want.




Sep 30 2010, 5:15 pm qurqle Post #6



could i get that in a screenshot?

Post has been edited 1 time(s), last time on Sep 30 2010, 8:26 pm by qurqle.



None.

Sep 30 2010, 9:18 pm qurqle Post #7



i get an error when i save the map



None.

Sep 30 2010, 11:14 pm Ahli Post #8

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

Quote from qurqle
i get an error when i save the map
We might be able to help you, if you would provide more information about the error you are experiencing.
Is it a script error in trigger editor (-> so your triggers can't be compiled -> map can't be saved)?

And I'm still not 100% sure what you are trying to achieve.

My comprehension what I understood so far:
-1 unique building where troops are spawned every ... seconds depending on the amount of "castles" that are under control by the player (seems that he can build castles) and the player gains resources for that castles, too.

But I don't get the gas aspect (construct building, destroy building, add gas)...

You should forget about the Starcraft mechanics and try to write down what you want to achieve. Don't make SC1 triggers to your base, if you think about SC2 triggers. SC1 triggering is based on many workarounds, you apply because you've learned them. SC2 triggering is more straight forward.




Oct 1 2010, 4:31 pm qurqle Post #9



Basically its a script error alot of the triggers i just put custom script and its errored so i need to redu the triggers properly.
OK heres more informations

If Player commands 1 BUILDING
If Player Commands 1 COUNTER
Timer IS Exactly 120 game seconds

Create UNITS at LOCATION
Add 1000 Minerals
preserve trigger

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

For timer -- i fiqured they need to be different triggers not combined due to sum glitchs that will be caused when playing more than 2 players

timer is elapsed 120 games seconds

restart timer



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:02 am]
Ultraviolet -- I'm gonna send inf to have sex with their moms
[03:02 am]
Ultraviolet -- fuck those motherfuckers
[11:02 pm]
NudeRaider -- PSA: ASUS apparently decided their RMA department needs to "become profitable" and for a while now outright tries to scam customers. They were called out on it a year ago, promised to change, but didn't. https://www.youtube.com/watch?v=7pMrssIrKcY so my recommendation: Stop buying ASUS, and if you already have and need something RMA'd, make sure to not let them bully you into paying.
[03:08 pm]
Oh_Man -- example of wat u mean?
[2024-5-15. : 5:59 am]
NudeRaider -- *is
[2024-5-15. : 5:17 am]
NudeRaider -- despite all its flaws the sound design its fantastic
[2024-5-14. : 10:29 pm]
Oh_Man -- homeworld 3 = massive disappointment
[2024-5-14. : 10:05 am]
Moose -- ya
[2024-5-14. : 5:23 am]
zsnakezz -- yes
[2024-5-12. : 8:51 pm]
l)ark_ssj9kevin -- Are you excited for Homeworld 3?
Please log in to shout.


Members Online: 2harperc2622rp4, RIVE, Roy