• 0

    posted a message on Trigger help.

    I've been working on this trigger for like 8 hours + I've almost got it but it's not working right and I was hoping for some help.

    First off when it does trigger it sets the unit like to like almost dead so that the next hit kills and and I just ant it to do the extra damage.

    The second is that I eventually ant it to apply to every unit of that type. Like apply to every stalker thats made. (In this case a custom unit.)

    Third is I get an error that says

    " 'gt_Crticalstrike_Func': Event response function 'EventUnitDamageAmount' has no matching event

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Critical Strike

    Events

    - Unit - Any Unit is attacked

    Local Variables

    - Sword Master = (Unit type of (Attacking Unit)) <Game Link - Unit>

    - Critical Strike = 0 <Integer>

    - Bonuscritdamage = 0 <Integer>

    Conditions

    - (Attacking Unit) == Sword Warrior [127.02, 125.71]

    - And

    - Conditions

    - Sword Master == Sword Master

    Actions

    - Math - Cycle Critical Strike from 1 through 4

    - General - If (Conditions) then do (Actions) else do (Actions)

    -If

    - Critical Strike <= 3

    Then

    - Math - Cycle Bonuscritdamage from 2 through 4

    - Text Tag - Create a text tag with the text "Crit!" for (Active Players), using a font size of 24, at (Position of (Attacking Unit)) and height offset 1.0, initially Visible, and fog of war enforcement set to true

    - General - Wait 1.0 Game Time seconds

    - Text Tag - Destroy (Last created text tag)

    - Unit - Set (Triggering unit) Life to ((Triggering damage amount) - (Real(Bonuscritdamage)))

    Else

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    The additional and sword master==sword master as me trying to make it apply only to that unit type and I understand after being able to read the error where the issue is but referring back to the critical strike trigger when I set up up just like the one displayed it didn't work at all so... Yeah. Help would be greatly appreciated.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Critical Strike

    I tried to make the crit based on the unit have a behavior but I can't get it to work now. Any suggestions on how to limits it to specific units?

    Posted in: Miscellaneous Development
  • 0

    posted a message on Critical Strike

    For the triggering qway of doing it. Couldn't you make a blank ability like Crit strike and have it as something like attacking unit has this buff then do the critical strike stuff else do nothing?

    As for the unit that gets killed not giving bounty or exp couldn't you also put in another trigger like. Attacked unit is equal to dead give triggering unit exp and bounty?

    I haven't been able to get into triggers and look around I'm just guessing from what I remember was in the wc3 editor.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Elements RPG remake.

    I'm looking for a few people interested in remaking and updating the old starcraft elements RPG map. I'll try to learn the triggers and stuff for some of the ideas I ant to impliment if I can get a few people interested in it. I really need someone to do terrain though and probably help me balance it and make some of the units look cool or just tips on how to do that it would help thanks.

    Posted in: Project Workplace
  • To post a comment, please or register a new account.