Staredit Newtork
Community
StarCraft
Games
Site
Favourites
Messed up HP in bounds?, What's the trigger for this?

Creator: Fawkes
Time: Dec 13 2007, 3:56 pm

Post #1     Fawkes Dec 13 2007, 3:56 pm

[Avatar]
 offline contact
I've seen a lot of bounds where the HP for units are constantly goign up and down. I tried to make a trigger like this, but it didn't work? What's the correct trigger for doing this?
Top

Post #2     who Dec 13 2007, 4:19 pm

[Avatar]
someone09
 offline contact
The action for this is modify unit hit points.

You should use DC waits for this in a bound, because having a constant wait will cause blocks while obstacles are running.

e.g.

C:
current player has suffered at most 12 deaths of DC
A:
preserve
add 1 death of DC

C:
current player has suffered exactly 13 deaths of DC
A:
preserve
set deaths of DC to 0

this will allow the DC to cycle between 1 and 13, so then you can have lots of triggers that set the hp to different percentages, depending on the number the DC is on

e.g.

C:
Current player has suffered exactly 0 deaths of DC
A:
Modify unit hit points to 90%

C:
Current player has suffered exactly 1 deaths of dc
A:
Modify unit hit points to 80%

etc.
(user posted image)
Top

Post #3     y10k Dec 13 2007, 4:36 pm

[Avatar]
 offline contact
Always

sethp 90%
wait 100
sethp 80%
wait 100
...
sethp 10%
wait 100
preserve
Top

Post #4     NudeRaider Dec 13 2007, 5:03 pm

[Avatar]
Write your own destiny, or else someone will write it for you!
 online contact
No, waits are a bad idea since it is very likely that you are getting wait blocks.
(signature image)
sonsofwar.pyrom.net/current/index2.html_0% (user posted image) 100%
Top

Post #5     Fawkes Dec 13 2007, 6:51 pm

[Avatar]
 offline contact
Ugh, I used it with the DCs, and it worked, but now the music won't play. How do I fix that? Sorry for being a pain.
Top

Post #6     y10k Dec 13 2007, 7:06 pm

[Avatar]
 offline contact
would be the simpliest if you posted the music triggers and tell which DC you used for this.
Top

Post #7     Fawkes Dec 13 2007, 8:28 pm

[Avatar]
 offline contact
I used switches, not DCs for the music. Example:

Condtions:
'Difficulty is Set' (difficulty is set when u choose easy, hard, or random)

Actions:

Set 'Music P1'


Condtions:
'Music P1' is set

Actions:
Play haunted.WAV
Wait 100000 MS
Preserve Trigger


Conditions:
'Music P1' is set
P1 brings 1 medic to 'Music Off'

Actions:
Clear 'Music P1'
Move all P1 medics at 'Music Off' to 'Music'
Preserve Trigger


Conditions:
'Music P1' is cleared
P1 brings 1 medic to 'Music On'

Actions:
Set 'Music P1'
Move all P1 medics at 'Music On' to 'Music'
Preserve Trigger
Top

Post #8     Mini Moose 2707 Dec 13 2007, 10:44 pm

[Avatar]
 offline contact
Simplify!

Condtions:
P1 brings 1 medic to 'Music On' (Current Player ?)
Switch 'game started' is set.

Actions:
Play haunted.WAV
Wait 100000 MS
Preserve Trigger
Top

Post #9     Fawkes Dec 13 2007, 10:50 pm

[Avatar]
 offline contact
...Okay, but will that make it so that it will play even with the HP triggers?
Top

Post #10     Mini Moose 2707 Dec 13 2007, 10:53 pm

[Avatar]
 offline contact
You probably have a hyper trigger problem. Move them to the bottom of the list.

Combining those triggers was a matter of efficency and not wasting a switch/triggers.
Top

Post #11     Fawkes Dec 14 2007, 12:12 am

[Avatar]
 offline contact
I just checked, they are already at the bottom.
Top

Post #12     Falkoner Dec 14 2007, 12:24 am

[Avatar]
Taking StarCraft Map Making to the Limit!
 offline contact
Then you probably have other wait triggers running at the same time. Such as bound triggers, I'd use death counts for the music, have a death, for every second of music, add 11.8(for perfection) more deaths to a trigger that counts down, once it reaches zero, play the music and reset it to the 11.8 deaths per second number.
Top

Post #13     blacklight28 Dec 14 2007, 12:38 am

[Avatar]
 offline contact
I use vespene gas to do the HP thing. And it works fine.
INSERT SIGNATURE HERE
INSERT SIGNATURE HERE
INSERT SIGNATURE HERE
INSERT SIGNATURE HERE
INSERT SIGNATURE HERE
INSERT SIGNATURE HERE
INSERT SIGNATURE HERE
Top

Post #14     [Dark_Marine]:] Dec 14 2007, 6:23 am

[Avatar]
The Ultimate B.O.W.
 offline contact
Quote from Mini Moose 2707You probably have a hyper trigger problem. Move them to the bottom of the list.

Combining those triggers was a matter of efficency and not wasting a switch/triggers.


I get the oddest problem sometimes. Whenever I add a new wait trigger, I have to remake the hyper triggers, and the map works better. Its strange, but it could work.
- Dark_Marine - CheF's back baby [=]:3
(user posted image)
Top

Post #15     NudeRaider Dec 14 2007, 10:12 am

[Avatar]
Write your own destiny, or else someone will write it for you!
 online contact
Quote from Dark_Marine_123
Quote from Mini Moose 2707You probably have a hyper trigger problem. Move them to the bottom of the list.

Combining those triggers was a matter of efficency and not wasting a switch/triggers.


I get the oddest problem sometimes. Whenever I add a new wait trigger, I have to remake the hyper triggers, and the map works better. Its strange, but it could work.

Thats not strange. Moving hypertriggers to the bottom of the triggerlist (mark EVERY player/group) would have the same effect.
But when you delete and remake them they are created at the bottom.

You can avoid having to move them to the bottom everytime you made a new trigger when you give them to a single player that doesn't execute ANY wait.
(signature image)
sonsofwar.pyrom.net/current/index2.html_0% (user posted image) 100%
Top

Post #16     [Dark_Marine]:] Dec 15 2007, 2:04 am

[Avatar]
The Ultimate B.O.W.
 offline contact
Personnaly, any game that isn't a bound or defense these days (Unless its a complex map), usually doesnt have a player that doesnt have wait triggers for me. So hey
- Dark_Marine - CheF's back baby [=]:3
(user posted image)
Top

Post #17     NudeRaider Dec 15 2007, 9:47 am

[Avatar]
Write your own destiny, or else someone will write it for you!
 online contact
Quote from Dark_Marine_123Personnaly, any game that isn't a bound or defense these days (Unless its a complex map), usually doesnt have a player that doesnt have wait triggers for me. So hey

Well you can replace waits by death counters or physical timers.
The only times when I use waits is for text animation or when I want to execute another trigger in the middle of the running trigger.

I can understand ppl making bounds using waits because making the timing otherwise would be a pain.
But there are too many bounds and defenses out there anyways.... So hey
(signature image)
sonsofwar.pyrom.net/current/index2.html_0% (user posted image) 100%
Top
Users in this topic:


[07:38 am]
[Dark_Marine]:] -- MOOSE END MAFIA D:<
[07:38 am]
[07:33 am]
KrayZee -- Never gonna let you down
[07:33 am]
KrayZee -- Never gonna give you up
[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
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