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: 94

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.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      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