Trigger trouble

n4bieclimber

New Member
Reaction score
1
im looking to construct a trigger which pauses all units that have HP equal to Hp mod 50 = 0 and checks for the condition

Code:
(Level of [COLOR="Red"]Constructing[/COLOR]  for (Triggering unit)) Equal to 1

where constructing is a custom ability based on bash

but i cant seem to find a trigger that does this without checking every 0.01 second and thats just not possible cause it will cause extreme lag :S

any ideas? i know there is a specific unit event but as long as i cant apply this on unit groups its useless so any jass script i can implement? (i dont know any jass lulz).

+rep for solutions or helpfull posts in general
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
There is an event that trigger when a units life drop below x.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Unit start the effect of an ability or unit finishes constuction
 

n4bieclimber

New Member
Reaction score
1
but i want to pause the building everytime he hits a xfold of 50 hitpoints?

how is starting the effect of an ability or finishes construction gonna help?
 

tork

New Member
Reaction score
2
maby you put in event when a
Unit hp = to 50
pause unit

or something along those line im sure theres something about that

ps Sorry could't be more helpfully kinda busy right now
 

n4bieclimber

New Member
Reaction score
1
well thats the problem i can't find it either but mb there is a jass script, ive heard that u can declare a new event with jass Mb something to solve my problem?!?

but the problem im a total JAss nono xD so more help would be appreciated. if i can get this trigger to work i have a universal build trigger and it will apply to all construction and my map will be finished for about 5% xD

btw i could use instead of 50 something in the line of HP mod 50 = 0 right?

:edit: ow im sorry i just saw u are reffering to the single spicific unit event. well i need to check all constructing buildings for the event that they hit a HP that is a multiplication of 50
 

Devrak

New Member
Reaction score
17
You could try this:

Trigger:
  • Start construction
    • Events
      • Unit - A unit Begins construction
    • Conditions
    • Actions
      • Set ConstructedUnit = (Constructing structure)


Trigger:
  • Periodic Check
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Life of ConstructedUnit) Greater than or equal to 50.00
        • Then - Actions
          • Unit - Pause ConstructedUnit
        • Else - Actions


Of course, that isn't MUI.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top