Staredit Network

Staredit Network -> UMS Assistance -> "scrolling" HP
Report, edit, etc...Posted by dontQQ on 2006-06-26 at 18:04:40
I was playing a bound map and many of the units on it had HP that randomly scrolled around. I opened it up with trigger viewer and looked at it. It had many set health triggers. I tried this and it didn't work.

Anyone know how to do this easily?
Report, edit, etc...Posted by MindArchon on 2006-06-26 at 18:07:55
QUOTE(dontQQ @ Jun 26 2006, 03:04 PM)
I was playing a bound map and many of the units on it had HP that randomly scrolled around.  I opened it up with trigger viewer and looked at it.  It had many set health triggers.  I tried this and it didn't work.

Anyone know how to do this easily?
[right][snapback]513746[/snapback][/right]


What do you mean didn't work?

The only way I could see it being possible to randomize health is to have a series of triggers randomize and set it to 20%, 30%, etc.

Can you post the action you used to set health?
Report, edit, etc...Posted by dontQQ on 2006-06-26 at 18:12:42
I looked over it again and I have a feeling the trigger isn't running over and over. I have preserve trigger at the end.

Also, I did what you said and have a bunch of actions setting the health to random numbers with a 1ms wait between them.
Report, edit, etc...Posted by Lyon on 2006-06-26 at 18:20:43
Hyper Triggers maybe? or possibly you need to do it more specificly....are you using like, for all players set all there units to 10 20 30 40 50 60 70 80 90 100? O.o....

i really don't know what your talking about but i hoped i helped
Report, edit, etc...Posted by Zeratul_101 on 2006-06-26 at 18:32:22
i don't think anyone is understanding you right now, post the map for us and we'll take a look
Report, edit, etc...Posted by Mp)7-7 on 2006-06-26 at 18:35:35
Condition
Always

Action
Set life percentage to 1%
wait 100 milliseconds
Set life percentage to 20%
wait 100 milliseconds
Set life percentage to 40%
wait 100 milliseconds
Set life percentage to 60%
wait 100 milliseconds
Set life percentage to 80%
wait 100 milliseconds
Set life percentage to 100%
Preserve Trigger

like that
Report, edit, etc...Posted by Xx.Doom.xX on 2006-06-26 at 18:52:28
lmao yea like 7-7 said. Thats really ez. If it didnt work probably did it wrong. tongue.gif
Report, edit, etc...Posted by Random_X2 on 2006-06-26 at 19:13:54
QUOTE(7-7 @ Jun 26 2006, 05:35 PM)
Condition
Always

Action
Set life percentage to 1%
wait 100 milliseconds
Set life percentage to 20%
wait 100 milliseconds
Set life percentage to 40%
wait 100 milliseconds
Set life percentage to 60%
wait 100 milliseconds
Set life percentage to 80%
wait 100 milliseconds
Set life percentage to 100%
Preserve Trigger

like that
[right][snapback]513778[/snapback][/right]


Yeah, do that except to make it look better dont forgot to modify unit hit points back down (i.e...

Action
Set life percentage to 1%
wait 100 milliseconds
Set life percentage to 20%
wait 100 milliseconds
Set life percentage to 40%
wait 100 milliseconds
Set life percentage to 60%
wait 100 milliseconds
Set life percentage to 80%
wait 100 milliseconds
Set life percentage to 100%
Wait 100 milliseconds
Set life percentage to 80%
Wait 100 milliseconds
Set life percentage to 60%
Wait 100 milliseconds
Set life percentage to 40%
Wait 100 milliseconds
Set life percentage to 20%
Wait 100 milliseconds
Preserve Trigger

Remember, dont go to 1% before the preserve trigger, cuz then since it starts over, it'll do 1% again and it wont look as good (best when it keeps going)
Report, edit, etc...Posted by Electroid on 2006-06-27 at 09:09:14
Wait up man, do you mean, all units over the map have their health randomly generated right at the beginning? If so, this is how I would do it...

All you need is 1 main trigger to loop itself, and every time it loops, it randomizes 2-4 switches (the more switches, the more possibilities) that results in modifying 1 unit's health.

For instance, the following example represents 4 possible health modifications. The reason the triggers give units from the first computer player to the second computer player, is so that the trigger stops running after all the units health have been modified. You don't want the units health to constantly keep changing right?

Remember to add hyper triggers. Always helps.

MAIN TRIGGER
[Trigger 1]
Condition:
If player 7 commands at least 1 any unit.
Action:
Randomize Switch 1
Randomize Switch 2
Give 1 unit to player 8
Preserve Trigger

25%
[Trigger 2]
Condition:
If player 8 commands at least 1 any unit.
Switch 1 is Set
Switch 2 is Set
Action:
Modify 1 units health to 25%
Preserve Trigger

50%
[Trigger 3]
Condition:
If player 8 commands at least 1 any unit.
Switch 1 is Clear
Switch 2 is Clear
Action:
Modify 1 units health to 50%
Preserve Trigger

75%
[Trigger 4]
Condition:
If player 8 commands at least 1 any unit.
Switch 1 is Set
Switch 2 is Clear
Action:
Modify 1 units health to 75%
Preserve Trigger

100%
[Trigger 2]
Condition:
If player 8 commands at least 1 any unit.
Switch 1 is Clear
Switch 2 is Set
Action:
Modify 1 units health to 100%
Preserve Trigger
Report, edit, etc...Posted by t0fu on 2006-06-30 at 14:36:08
QUOTE(Random_X2 @ Jun 26 2006, 06:13 PM)
Yeah, do that except to make it look better dont forgot to modify unit hit points back down (i.e...

Action
Set life percentage to 1%
wait 100 milliseconds
Set life percentage to 20%
wait 100 milliseconds
Set life percentage to 40%
wait 100 milliseconds
Set life percentage to 60%
wait 100 milliseconds
Set life percentage to 80%
wait 100 milliseconds
Set life percentage to 100%
Wait 100 milliseconds
Set life percentage to 80%
Wait 100 milliseconds
Set life percentage to 60%
Wait 100 milliseconds
Set life percentage to 40%
Wait 100 milliseconds
Set life percentage to 20%
Wait 100 milliseconds
Preserve Trigger

Remember, dont go to 1% before the preserve trigger, cuz then since it starts over, it'll do 1% again and it wont look as good (best when it keeps going)
[right][snapback]513820[/snapback][/right]


oo im at the same point and i did exactly like that but it doesnt work -.-

Players: All Players
Condition: Always
Trigger: ^
Report, edit, etc...Posted by Noober on 2006-06-30 at 15:35:09
You have hypers, so you can't give a trigger with waits to all players. Just give it to the force of players.
Next Page (1)