Alright I fixed the Event. Barrage works now and the fact that its kinda in between 89 and 91% hp, Odin does it more than once (as long as he's in between that amount actually). Which gives a nice effect that I like.
The SCV's spawn and I was able to find a way to only make 3 spawn for sure with a boolean. I still can't get the SCV's to go repair odin though. Here is the code. Any thoughts?
I got the percent working. I used within bounds. 89 <= Boss HP Percent <= 91
I want only 3 scv's to be created and ordered to repair the boss. But. A lot are being created because the event is every .05 seconds and the boss stay's in between 89 and 91% for a while. I was thinking of using the number of living units in group to stop this but I'm not sure how to implement it.
I completely agree that the variable is weird and I thought of using it that way too. But then it would be anywhere over or under 90% that it would use barrage. And I want it to be around 90% not 75 not 73 or 93 or 94. 90% . at 80% as well. and so on every 10%.
For the unit scv. I did try to order the last created unit. The unit never gets created... Lol Kinda hard to order it around.
Actually both my technique and your technique doesn't work for what I want to do. Because both units can be in the same group and die at the same time thus triggering my trigger twice. Same thing applies to my interger calculation. I want a condition that would be like (Number of (triggering Unit) == 1.
Does that exist? Or how may I go about creating that?
Yes but somehow it doesn't work when I tried using it. Same thing happened when I tried to just get the static HP. I had to tie it into a variable for it to work correctly.
Well I got it working by setting the boss unit HP to a real variable and using that variable to trigger the events. The damage is being changed at the right time but the scv's are not spawning and I can't seam to be able to disable the damage on allies with the g-4 mines.
I figured I'd do a little problem to get the percent of the current boss hp unit to calculate phases easier.
Okay. I got the Bombs working. I'm using the g-4 clusterbombs. I put the dmg at 20. and I got 24 to spawn randomly around the boss every 30 seconds a few times in a row with a 2 second game time delay. I like the effect and its a good alpha phase. Now I'm trying to change the attributes of my boss during the fight.
At a certain number of hp I want the boss to deal more dmg. Attack faster. Use his abilites and have scv's spawn to repair the boss.
Yes but this would only trigger on that single unit. So if it dies. My cinematic ends and my units spawn before the cinematic force is dead. I was to condition the last dying unit. is that at all possible?
Sorry I just realized I din't give my info on what I did. Sorry I'm super tired. Here is the script I've been working on. Sometimes two units die at the same time and it spawns my units twice. Anyone know of a way I could avoid this?
UnitDiesEventsUnit-AnyUnitdiesLocalVariablesConditionsActionsGeneral-If(Conditions)thendo(Actions)elsedo(Actions)If(Ownerof(Triggeringunit))==2ThenGeneral-If(Conditions)thendo(Actions)elsedo(Actions)If(Emptyunitgroup)==SecondPlayerGroup(NumberofLivingunitsinSecondPlayerGroup)<=0ThenCinematics-TurncinematicmodeOfffor(Allplayers)over0.0secondsCamera-StopFollowingforplayer1SecondPlayerGroupwiththecameraandClearCurrentTargetCamera-Panthecameraforplayer1to(PlayerSpawnPointoffsetby(0.0,0.0))over0.0secondswith100%initialvelocity,4%deceleration,andDoNotusesmartpanningTrigger-RunPlayerSpawn(CheckConditions,Don't Wait until it finishes) Else ElseCinematic Unit Counter Options: Event Return Type: Real Parameters Boss Spawn Point = (Boss Spawn Point offset by (0.0, 0.0)) <Point> Grammar Text: CUC() Hint Text: (None) Custom Script Code Local Variables Actions Variable - Set Cinematic Units count = (Cinematic Units count + 1) Unit - Return (Real(Cinematic Units count))
0
@Nerfpl: Go
Alright I fixed the Event. Barrage works now and the fact that its kinda in between 89 and 91% hp, Odin does it more than once (as long as he's in between that amount actually). Which gives a nice effect that I like.
The SCV's spawn and I was able to find a way to only make 3 spawn for sure with a boolean. I still can't get the SCV's to go repair odin though. Here is the code. Any thoughts?
0
@Nerfpl: Go
I got the percent working. I used within bounds. 89 <= Boss HP Percent <= 91
I want only 3 scv's to be created and ordered to repair the boss. But. A lot are being created because the event is every .05 seconds and the boss stay's in between 89 and 91% for a while. I was thinking of using the number of living units in group to stop this but I'm not sure how to implement it.
0
@DarlD: Go
Okay. I got it sorta working. I used the condition within bounds and I used 88% and 92% and the boss shot the barrage at my units! Yay! i died!
Unfortunately the scv's didn't spawn. How do I fix this?
0
@Ahli634: Go
I'm really un-familiar with functions and action definitions. I tried them out and I could not make them work properly.
0
@Yaos01: Go
I completely agree that the variable is weird and I thought of using it that way too. But then it would be anywhere over or under 90% that it would use barrage. And I want it to be around 90% not 75 not 73 or 93 or 94. 90% . at 80% as well. and so on every 10%.
For the unit scv. I did try to order the last created unit. The unit never gets created... Lol Kinda hard to order it around.
0
@Pshyched: Go
Did that. Also din't work. every .05 game time seconds i would have an If then else run.
(Basic version)
if number of living units in unitgroup <= 0 (or 1 I'm not sure which value. Sometimes it doesn't work when I set it at 0.)
then run player spawn.
else (nothing)
And In my player spawn I'd have my units created. 1 at a time with an off set on the point. and I'd have a turn off the current trigger.
I suppose I could create a bool. Have it set to true once my units have been spawned and inclue that as a condition for player unit spawn.
So if Units have Spawned == False
Spawn units
set variable to Units have Spawned == True
That would work right?
0
@Chiquihuite: Go
Actually both my technique and your technique doesn't work for what I want to do. Because both units can be in the same group and die at the same time thus triggering my trigger twice. Same thing applies to my interger calculation. I want a condition that would be like (Number of (triggering Unit) == 1.
Does that exist? Or how may I go about creating that?
0
@DarlD: Go
Yep I changed it to life percent current and it still doesn't work.
the boss doesn't use barrage on the general location of my units and no scv's spawn to repair odin....
0
@Pshyched: Go
Yes but somehow it doesn't work when I tried using it. Same thing happened when I tried to just get the static HP. I had to tie it into a variable for it to work correctly.
0
@DarlD: Go
Could anyone plz check out my coding?
that will correctly calculate the HP percentage of my boss unit aye?
0
@DarlD: Go
Well I got it working by setting the boss unit HP to a real variable and using that variable to trigger the events. The damage is being changed at the right time but the scv's are not spawning and I can't seam to be able to disable the damage on allies with the g-4 mines.
I figured I'd do a little problem to get the percent of the current boss hp unit to calculate phases easier.
Here's what I've got so far.
0
@Nerfpl: Go
Okay. I got the Bombs working. I'm using the g-4 clusterbombs. I put the dmg at 20. and I got 24 to spawn randomly around the boss every 30 seconds a few times in a row with a 2 second game time delay. I like the effect and its a good alpha phase. Now I'm trying to change the attributes of my boss during the fight.
At a certain number of hp I want the boss to deal more dmg. Attack faster. Use his abilites and have scv's spawn to repair the boss.
here is what I've got so far on that one.
0
@DarlD: Go
Nvm I got it. I made a unit Counter basically and I'm using that variables value to evaluate the number of units alive.
0
@Chiquihuite: Go
Yes but this would only trigger on that single unit. So if it dies. My cinematic ends and my units spawn before the cinematic force is dead. I was to condition the last dying unit. is that at all possible?
0
@DarlD: Go
Sorry I just realized I din't give my info on what I did. Sorry I'm super tired. Here is the script I've been working on. Sometimes two units die at the same time and it spawns my units twice. Anyone know of a way I could avoid this?