Tutorial on Warcraft trigger (1)

Source: Internet
Author: User

By all-metal housing (shellex)

Today, we are going to start an Exploratory experiment. First, we will discuss the manufacture of new magic.

Maybe many people may sigh about the colorful or magical unofficial magic when playing the Warcraft 3 RPG map. They look strange, not simply in the skill editor. for example: Summon phantom with attack power, clone, nuclear bomb, etc. these are the results of the trigger. are you sure you want to try it?

Let's create a new magic called "Furious" first. The effect is that all enemies in a region are hit by lightning from the sky. Is it cool?

Today, we are going to start an Exploratory experiment. First, we will discuss the manufacture of new magic.

Maybe many people may sigh about the colorful or magical unofficial magic when playing the Warcraft 3 RPG map. They look strange, not simply in the skill editor. for example: Summon phantom with attack power, clone, nuclear bomb, etc. these are the results of the trigger. are you sure you want to try it?

Let's create a new magic called "Furious" first. The effect is that all enemies in a region are hit by lightning from the sky. Is it cool?

 


Open you, we have to prepare a target magic first. it must be a surface effect and can be selected (that is, a green circle appears ). just remove the magic from the human priest. use it as the base class to derive a new skill "Furious ".

Press F4. trigger editor. create a new class in the window on the left with any name. here is test .. click test. The window at the bottom of the right is the code editor .. (It is very inconvenient for everyone to try. not free. no way. Generally, players cannot remember so many functions and statements ).

Right-click and choose new event. In the displayed dialog box, select unit )", select "unit-generic unit event" in the second drop-down box, and the following event text displays "A unitDeath". This is the default event. do you see the underlined "death"? Click it and select "Publish a command to lock a point" (PS: my version of Warcraft 3 is not well translated. I hope you will understand it ). click OK to return. as a result, the event part is messed up.

You can't just release a command to lock a point. Otherwise, you will also have a magic effect when running the command. then, right-click the new condition. our condition is that it will only be effective if it is our magic. in the displayed dialog box, select "order comparison" and change the following command text to this one"(Issued Order) Equal (Order (dispel ))". Pay attention to this dispel, which is a command string that can be found in the skill editor. Here, it is called dispel to relieve the wrath derived from magic.

Right-click to create an action and start creating a real magic action.

First, make an event like this:

"Unit group-Pick every unit in (units within 512.00 of (target point of issued Order) and do (Actions)"

This means to select all units in the Circle centered on the command point and with a radius of 512...

Add the following event to the loop that it automatically adds:

"Special Effects-Create a special effect at (position of (picked unit) using doodads/cinematic/lightningbolt. MDL"

This means that each cycle creates a special effect, and the position is on the Unit coordinate of each loop. The special effect "electric arrow" is used ".Doodads/cinematic/lightningbolt. MDLIs the path of the special effect.

The effect is good. Similarly, with the blood Code removed, the killing of 500 can be done by J:

Unit-set life of (picked unit) to (Life of (picked unit)-500.00)

Now let's look at the differences:

| --- Event

| ----- Unit-a unit releases a command to lock a point

| --- Environment

| ----- (Issued Order) equals (Order (dispel ))

| --- Action

| ----- Unit group-pick every unit in (units within 512.00 of (target point of issued Order) and do (Actions)

| ------- Loop-action

| ------ Special effect-create a special effect at (position of (picked unit) using doodads/cinematic/lightningbolt. MDL

| ------ Unit-set life of (picked unit) to (Life of (picked unit)-150.00)

Yes. Add this magic to a unit and abuse the enemy. ^_^

Original articles can be reproduced, but please indicate the source and author. Thank you.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.