GUI Critical strike?

denmax

You can change this now in User CP.
Reaction score
155
Hmm, welcome to the forum as well :3 (even though you already have 60 posts XD)

Have +4 reputation points :D
 

Kalder

New Member
Reaction score
1
Wow!

Wow thx a lot denmax for help and the rep.I will try out and look at more the two recent posts of help people made(You and tommerbob) later, Thx all!!!:thup::):thup::D:eek:
 

Kalder

New Member
Reaction score
1
Thx! to all that helped you will all be getting rep (People listed in the post)

tommerbob, denmax, jhnam95, you will all be getting rep for being helpful and not getting impatient if i didn't get it or didn't look at it fully (Except for that one time in this thread when you went "GRAR" jhnam95, I actually don't know if that was you getting mad or an acronym i don't know of, so i'll let it slide lol:thup: ) and thank you for being helpful guys, good luck and have fun!

Edit: Sorry tommerbob, it says i already gave you rep and can't give it again until i spread more around, again sorry. :( :*( :(
 

Kalder

New Member
Reaction score
1
Yup

Yup... Mostly, the one problem i have is that the unit (Critical striker) or any unit can get a critical strike on their first attack on the unit

Edit: Sorry in my original post i meant to say that the unit (Critical Striker) or any unit CAN'T get a critical strike on their first attack on another unit:banghead:. Sorry for the Miswording:banghead:
 

denmax

You can change this now in User CP.
Reaction score
155
Yup... Mostly, the one problem i have is that the unit (Critical striker) or any unit can get a critical strike on their first attack on the unit

I think you'd have to move GDD_DamageSource equal to CriticalStriker to the If/Then/Else thingy

Trigger:
  • YOUR TRIGGER
    • Events
      • GDD_Event becomes Equal to 0.00
    • Conditions
    • Actions
      • Set CriticalStrikeChance [an Integer variable] = random number between 1 and 100
      • If (All conditions) are true, then do (Actions), else do (Actions)
        • If - Conditions
          • GDD_DamageSource Equal to CriticalStriker
          • CriticalStrikeChance Less than or Equal to 20
        • Then - Actions
          • Unit - Cause CriticalStriker to damage GDD_DamagedUnit dealing GDD_Damage of Attack type Spells and Damage type Normal
        • Else - Actions
    • Floating Text
 

Kalder

New Member
Reaction score
1
sorry

Sorry Denmax, I misworded in my post that you replied to. Take a look if you want to.:D
 

Dirac

22710180
Reaction score
147
Well that might be hard, the easy way to do it is:

Event - Unit is attacked
Condition - Attackin unit equal to critical striker [x]
Action - Set custom value of attackin unit to 0.

and add to your critical strike trigger the following actions

Set custom value of Damage source to (Custom value + 1)
IF - Custom value of unit greater than 1
THEN - copy paste your triggers here.
ELSE - nothing
 

Kalder

New Member
Reaction score
1
What if?

I don't want to use the custom value of the unit because i might end up using it for something else. So, could i replace the custom value with a variable? Thx for info.:thup:

P.S. Would that trigger work because all those actions would have to happen in between starting from when the unit attacks to when he deals damage. Isn't that an extremely small window of time?. I know that triggers go non-stop unless you use a wait or something like that but still would that trigger work. Again thx for any info!:D
 

denmax

You can change this now in User CP.
Reaction score
155
Well a thing that I could think of is this

Trigger:
  • a
    • e
    • c
    • Actions
      • Set valueDDT = (valueDDT + 1)
      • If (All conditions) are true
        • If - Conditions
          • valueDDT greater than 1
        • Then - Actions
          • copy paste your triggers here.
        • Else - Actions


Don't worry, it won't change a thing if you use custom value or variables
 

Kalder

New Member
Reaction score
1
Kinda... but another question how...?

Ok, so i think that will work but how do i get it to Nullify the damage of my regular attack and only damage for the amount of the Critical Strike?. Thx for the help:D



Edit:Grammar and Icon
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top