Staredit Newtork
Community
StarCraft
Games
Site
Favourites
Simple spawning system not working

Creator: ws-Impeached
Time: Dec 13 2007, 4:12 am

Post #1     ws-Impeached Dec 13 2007, 4:12 am

[Avatar]
Uber.
 offline contact
The spawn triggers are all structured something like this:

C: Countdown timer is at least x
C: Countdown timer is at most x
A: Create units at location
A: Wait 30000
A: Preserve Trigger
Then there's another set with condition as "X unit is in area".

These just don't fire. Map attached below, you can find the triggers in the player 6 and player 8 parts.
Attachments:
scx file
Galaxy at War.scx (61.42 kb)
3 hits.
This post was edited 2 times, last edit by Impeached: Dec 13 2007, 6:40 am.
Top

Post #2     Zero Ame Dec 13 2007, 4:20 am

[Avatar]
 offline contact
your problem is you have to long of a wait period, i think. try cutting it down to something like 10,000 instead
Top

Post #3     ws-Impeached Dec 13 2007, 5:07 am

[Avatar]
Uber.
 offline contact
OK, I'll try something with three 10-second waits split into three triggers.

EDIT: Still doesn't work. =/
I changed the system to something like this:
C: Countdown timer > X
C: Countdown timer < X
C: Player has suffered exactly 0 deaths of Aldaris
A: Create create create create create
A: Set Deaths for current player of Aldaris to 360
A: Preserve Trigger

C: Player has at least one death of Aldaris
A: Subtract one death of Aldaris
A: Preserve Trigger


I have hyper triggers, as well. So 12 deaths = 1 second.
This post was edited 7 times, last edit by Impeached: Dec 13 2007, 7:02 am.
Top

Post #4     NudeRaider Dec 13 2007, 11:33 am

[Avatar]
Write your own destiny, or else someone will write it for you!
 offline contact
Long waits alone don't cause problems. They just make it more likely that the same player is running another wait the same time which leads to a wait block. This includes Hypertriggers.

Make sure the player doesn't execute another trigger with waits.
(signature image)
sonsofwar.pyrom.net/current/index2.html_0% (user posted image) 100%
Top

Post #5     NudeRaider Dec 13 2007, 12:27 pm

[Avatar]
Write your own destiny, or else someone will write it for you!
 offline contact
Lol I just checked the map and you are getting wait blocks like crazy.
Player 6 and 8 (which are the spawners) have MANY triggers with condition always/action wait + preserve. This is a combination which literally MAKES SURE you get wait blocks.

For the order triggers use a burning building. Like this:

P6, P8
Conditions:

P8 brings at most 0 supply depots to "order"
Actions:
Create 1 terran supply depot for P8 at "order" with 5%hp
Order all units at right1 to right2
Order all units at left1 to left2
Order all units at middle1 to middle2
Order all units at right2 to right3
... and so on
Preserve

For the spawn triggers you can use the same (burning building), a death counters or a patrolling unit as a timer.
(signature image)
sonsofwar.pyrom.net/current/index2.html_0% (user posted image) 100%
Top

Post #6     Falkoner Dec 13 2007, 1:04 pm

[Avatar]
Taking StarCraft Map Making to the Limit!
 offline contact
http://Falkoner.CoW.GooglePages.com/Death_Counts.html

Read up on Death Count Timers.
Top

Post #7     ws-Impeached Dec 13 2007, 7:10 pm

[Avatar]
Uber.
 offline contact
OK, thanks. This is my first map of any relatively large size, so I don't have enough experience to know all this stuff yet.
Top

Post #8     ws-Impeached Dec 14 2007, 7:15 am

[Avatar]
Uber.
 offline contact
Now I have more inexplicable problems.
A healing system that only works once, and a shuttle shopping system not working at all.

Quote from 'Healing System'Trigger("Player 1"){
Conditions:
Bring("Player 6", "Protoss Shield Battery", "P1", At least, 1);
Deaths("Current Player", "Jim Raynor (Vulture)", Exactly, 0);

Actions:
Modify Unit Hit Points("Current Player", "Any unit", 100, 0, "P1");
Set Deaths("Current Player", "Jim Raynor (Vulture)", Set To, 24);
Comment("Heal");
Preserve Trigger();
}

//-----------------------------------------------------------------//

Trigger("Player 1","Player 2","Player 3","Player 4","Player 5","Player 7"){
Conditions:
Deaths("Current Player", "Jim Raynor (Vulture)", At least, 1);

Actions:
Set Deaths("Current Player", "Jim Raynor (Vulture)", Subtract, 1);
Comment("Healing Cooldown");
Preserve Trigger();
}

The 'P1' trigger follows the player's unit
This thing only works once, then doesn't work again.



For the shuttle system..just look at the map. You can also get the healing system in context with it.
http://www.box.net/shared/2vy9di6stu
Top

Post #9     NudeRaider Dec 14 2007, 3:33 pm

[Avatar]
Write your own destiny, or else someone will write it for you!
 offline contact
Did you test the map? The heal works! lol.... you made me check all triggers for an error which didn't exist. :flamer:
I didn't look into the dropship system, but I'll do it later (if you are sure it doesn't work, that is!)

But I've found some things to correct/optimize:

- The triggers for unsuccessful heal under all players are not preserved.
- The patrol triggers for P8 have all the same condition: deaths of vulture (raynor) = 0 that means you can put everything into 1 trigger. This makes finding error MUCH easier as you have to check 1 trigger instead of like 10.
- Same for those with the robotic bay in the conditions.
- Rename the vulture (raynor) DC to make it clear its a death counter and no actual unit. Or even better use unused units like neutral - neutral - cantina and rename them.
- For better overview make Players 1-6 human and P7, P8 computers
- You got like 10 hypertriggers. Delete all but 3 and move them to the bottom.
- You got 2 triggers named "Attack Timer" with same conditions/actions. Can it be there are more of those doubles?
(signature image)
sonsofwar.pyrom.net/current/index2.html_0% (user posted image) 100%
Top

Post #10     ws-Impeached Dec 14 2007, 4:32 pm

[Avatar]
Uber.
 offline contact
The heal worked once, then not again (until someone at maplantis told me to make the condition always on the death subtractor). At least the three+ times I tested it. And the shuttle system does not work.

I'll look into your other stuff, sorry you went through all that trouble and it kept working for you.
This post was edited 1 times, last edit by Impeached: Dec 14 2007, 4:39 pm.
Top

Post #11     NudeRaider Dec 14 2007, 5:03 pm

[Avatar]
Write your own destiny, or else someone will write it for you!
 offline contact
Quote from ImpeachedThe heal worked once, then not again

what exactly do you mean?
Once upon a time it worked but later you added stuff so it doesn't work now? OR
In the current state of the map you can walk to a shield battery and it will heal you. But when you visit the battery again it won't?

Well however... I tested it by adding a text display "heal". And I walked towards the battery and I got healed every 2 seconds.
I'd call that "It works".
(signature image)
sonsofwar.pyrom.net/current/index2.html_0% (user posted image) 100%
Top

Post #12     ws-Impeached Dec 14 2007, 5:30 pm

[Avatar]
Uber.
 offline contact
QuoteIn the current state of the map you can walk to a shield battery and it will heal you. But when you visit the battery again it won't?

Yes, in the state of the map when I posted it.
Top

Post #13     NudeRaider Dec 14 2007, 6:54 pm

[Avatar]
Write your own destiny, or else someone will write it for you!
 offline contact
Quote from Impeached
QuoteIn the current state of the map you can walk to a shield battery and it will heal you. But when you visit the battery again it won't?

Yes, in the state of the map when I posted it.

As I said... I dled the map, added the display action, and played it as P1. It worked for me.
(signature image)
sonsofwar.pyrom.net/current/index2.html_0% (user posted image) 100%
Top

Post #14     NudeRaider Dec 14 2007, 7:08 pm

[Avatar]
Write your own destiny, or else someone will write it for you!
 offline contact
About the dropship:

Recall: You move [any unit] at almost anywhere back to the base. That includes the scv and the upgrade buildings.
Use [men] instead and move the dropship out of anywhere ground. Maybe top of the map will be best.

Also the spell may be executed multiple times as the units needs some time to reenter transport.
Add a condition like player brings at most 0 units to drop zone.

Finally be careful with the transmission action as it can cause wait blocks too because it has a wait in it.
(signature image)
sonsofwar.pyrom.net/current/index2.html_0% (user posted image) 100%
Top

Post #15     ws-Impeached Dec 14 2007, 11:05 pm

[Avatar]
Uber.
 offline contact
Quote from NudeRaiderAbout the dropship:

Recall: You move [any unit] at almost anywhere back to the base. That includes the scv and the upgrade buildings.
Use [men] instead and move the dropship out of anywhere ground. Maybe top of the map will be best.

I changed Anywhere ground so it doesn't cover low ground (the rusty pit under dropships), so it should be fine in that way now.

QuoteAlso the spell may be executed multiple times as the units needs some time to reenter transport.
Add a condition like player brings at most 0 units to drop zone.

How would that work? One condition detecting if a unit is in area, another if no units are in area.

QuoteFinally be careful with the transmission action as it can cause wait blocks too because it has a wait in it.

Ah, that may be messing things up. The play WAV action doesn't specify that it plays the sound for the current player. Does it, or does it play it for all?
Top

Post #16     NudeRaider Dec 14 2007, 11:14 pm

[Avatar]
Write your own destiny, or else someone will write it for you!
 offline contact
Quote from Impeached
Quote from NudeRaiderAbout the dropship:

Recall: You move [any unit] at almost anywhere back to the base. That includes the scv and the upgrade buildings.
Use [men] instead and move the dropship out of anywhere ground. Maybe top of the map will be best.

I changed Anywhere ground so it doesn't cover low ground (the rusty pit under dropships), so it should be fine in that way now.

That should fix it.

Quote from Impeached
QuoteAlso the spell may be executed multiple times as the units needs some time to reenter transport.
Add a condition like player brings at most 0 units to drop zone.

How would that work? One condition detecting if a unit is in area, another if no units are in area.

lol forget it. It was just stupid. I was distracted when writing that. Make a switch or w/e that gets set when the trigger fires and is cleared when there's no unit anymore.

Quote from Impeached
QuoteFinally be careful with the transmission action as it can cause wait blocks too because it has a wait in it.

Ah, that may be messing things up. The play WAV action doesn't specify that it plays the sound for the current player. Does it, or does it play it for all?

wavs always play for current player, same for portrait and display text. no matter if executed seperately or by the transmission.
(signature image)
sonsofwar.pyrom.net/current/index2.html_0% (user posted image) 100%
Top

Post #17     ws-Impeached Dec 14 2007, 11:35 pm

[Avatar]
Uber.
 offline contact
It works now. Looks like the wait block from the transmission did it.

Thanks.

EDIT: Oh, and what does the [men] specification cover? Organic units? All units?
This post was edited 1 times, last edit by Impeached: Dec 14 2007, 11:41 pm.
Top

Post #18     Roy Dec 15 2007, 12:42 am

[Avatar]
 offline contact
[Men] is all mobile units (not including lifting a building and moving it :P ).
Maps made by Roy
New Map Types:
Interceptor Arena, Dash 2, Dash 3, Dash 4, Dash 5 (New), Cannonball (New)
Bounds:
WoW Bound, WoW Bound 2, NuBs Bound
Top
Users in this topic:


[07:11 am]
Oo.CooL.oO -- you're gonna bring me down
[07:11 am]
aphtershox -- can't we all just get along?!
[07:07 am]
razorsnail -- shutup shutup shutup shutup
[06:46 am]
Red2Blue -- o_o
[06:36 am]
StrikerX22 -- if the internet had gone out because of the power going out in a large area nearby, i wouldn't even have said anything.
[06:35 am]
StrikerX22 -- is it so bad to complain a little? i even gave what i did instead. give me a break here.
[06:33 am]
JaFF -- To survive, he had to make an internet out of the objects in his room, with his own hands.
You must log in to shout.

©2003-2008 Staredit Network.
Starcraft & Starcraft II are trademarks of Blizzard Entertainment.
Site Index   |   Terms of Service   |   Privacy Policy   |   Contributions