How to insert triggers?

Killerphill

New Member
Reaction score
1
how do i like, print screen my triggers and post them on here so i dont have to type the whole thing out? like you guys do :)

Edit: i have an attached image, best i could do!
 

Attachments

  • trigger.JPG
    trigger.JPG
    50.8 KB · Views: 95

Azlier

Old World Ghost
Reaction score
461
Right Click -> Copy as text. Then paste it between [wc3 ] tags.

Worst quality trigger picture I've ever seen! I mean, wow!
 

MurderMode

Giving new meaning to co-op... slowly
Reaction score
154
yeah the part you need to right click to get the whole trigger copied as text is the white page symbol you have highlighted in your screen
 

MurderMode

Giving new meaning to co-op... slowly
Reaction score
154
no look at your image, you need to right click on the page at the top of the trigger, in this example it's called 'dirt worm achieve 1'. Then it'll all become clear
 

Killerphill

New Member
Reaction score
1
Trigger:
  • Dirt Worm Achieve 1
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Dying unit)) Equal to Dirt Worm
          • (Owner of (Killing unit)) Not equal to Player 11 (Dark Green)
          • (Owner of (Killing unit)) Not equal to Player 12 (Brown)
          • (Owner of (Killing unit)) Not equal to Neutral Hostile
        • Then - Actions
          • Quest - Display to (All players) the Quest Update message: (Congratulations to + ((|cffffcc00 + ((Name of (Owner of (Killing unit))) + |r)) + who has just killed the first Dirt Worm!))
          • Unit - Add Dirt Worm Achievement (Killing) to (Random unit from (Units owned by (Owner of (Killing unit)) of type Killing Achievements))
          • Unit - Create 1 First Strike Achievement for (Owner of (Killing unit)) at (Center of Achieve Dummies <gen>) facing Default building facing (270.0) degrees
          • Trigger - Turn off (This trigger)
        • Else - Actions
          • Do nothing



???
 

Azlier

Old World Ghost
Reaction score
461
Yes, now follow these instructions.

1. Delete that mess, but remember to keep it copied!

2. Type [wc3 ] (no space.)

3. Paste your 'code'.

4. I like doughnuts.

5. Type [/wc3].

6. You are now finished shopping!
 

MurderMode

Giving new meaning to co-op... slowly
Reaction score
154
yeah now when you copy and paste then right after you paste it select the whole trigger and press the code (#) button in this forum tool. That will keep all of the spacing correct in your trigger so it's easier to read. (edit - yeah or you could do what azlier said so that it looks like the trigger editor)

Anyways why are you just pasting a trigger without explaining the problem lol? noone can fix something if they don't know what they are looking for.
 

Killerphill

New Member
Reaction score
1
ok got it. thanks :)

now for my question. lol

Trigger:
  • Dirt Worm Achieve 1
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Dying unit)) Equal to Dirt Worm
          • (Owner of (Killing unit)) Not equal to Player 11 (Dark Green)
          • (Owner of (Killing unit)) Not equal to Player 12 (Brown)
          • (Owner of (Killing unit)) Not equal to Neutral Hostile
        • Then - Actions
          • Quest - Display to (All players) the Quest Update message: (Congratulations to + ((|cffffcc00 + ((Name of (Owner of (Killing unit))) + |r)) + who has just killed the first Dirt Worm!))
          • Unit - Add Dirt Worm Achievement (Killing) to (Random unit from (Units owned by (Owner of (Killing unit)) of type Killing Achievements))
          • Unit - Create 1 First Strike Achievement for (Owner of (Killing unit)) at (Center of Achieve Dummies <gen>) facing Default building facing (270.0) degrees
          • Trigger - Turn off (This trigger)
        • Else - Actions
          • Do nothing


ok now in this trigger, if a unit dies all the conditions and triggers come in to play blah blah blah.

But! if the unit dies from a spell, all the above triggers do NOT take effect and gets completly screwed up, is there a way to fix it so it does work even when a unit dies from a spell?
 

vypur85

Hibernate
Reaction score
803
The event will trigger with any deaths regardless of spell or physical attacks. You probably did something wrong? What spell? Some spell might not give you 'Killing unit' which could be reason it had problem.
 

Killerphill

New Member
Reaction score
1
ok well most spells are triggered. triggered as in the way the spell does damage is triggered. for example ill cast a fireball at someone which does 1 damage, but in reality in deals 150 damage due to trigger work.
 

vypur85

Hibernate
Reaction score
803
In those 'triggered spells', how did you damage the target? Damaging target should be done using this action:

Code:
Unit - Damage Target

Did you do this?

Code:
Unit - Set life of YourTarget to (Life of YourTarget - 100)

Doing this will not recognise the killer's identity thus no 'Killing unit'.
 

Killerphill

New Member
Reaction score
1
In those 'triggered spells', how did you damage the target? Damaging target should be done using this action:

Code:
Unit - Damage Target

Did you do this?

Code:
Unit - Set life of YourTarget to (Life of YourTarget - 100)

Doing this will not recognise the killer's identity thus no 'Killing unit'.

i have the "set life of yourtarget to blah blah blah"
 

CaptDeath

New Member
Reaction score
103
no for your spells it needs to be Unit - Damage (target of your spell)
so he will be "killing unit"
 
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