Tutorial on Warcraft trigger (0)

Source: Internet
Author: User

Some friends may not be clear about the meaning of the trigger.

The so-called rigger is "Trigger ". it is also a scripting language of Warcraft 3, which allows map editors to write specific events or processes to maximize the charm of editing maps. if you use languages such as C ++, Java, C #, object basic/Pascal that support object features, you can easily understand them.

In World Editor (we) of Warcraft 3, an event is usually triggered by a trigger ), what participates in the event is called object "object", and the start of the event is called event "start". The necessary condition is called condition "condition", and the event result is called Action "action ". here is an example:

For example:

You heard the mobile phone ring.

You found that the bell was from your phone.

You can answer the call.

"Hello ~ Lili... "(^ & * @ ^ % @(! @)

So,

-->

EventThat is, the "Mobile Phone Rings" incident happened.

ObjectIs: "You"

ConditionThat is: "You find that the bell is from your phone number", not from someone else's phone number.

So ..

ActionThat is: "You answer the phone"

 

How? Not hard? Is it like a Windows message driver?

 

Ha, good. Now, please prepare Warcraft 3 (usually play with the "Frozen throne", my name is 1.18) + world editor of Warcraft 3 (World Editor-world editor, "We "). some may know that there is an extended version of the World Editor, which can be called WEU. but I can't use it, and the map will go wrong, so I use the official we, the syntax of the two will be a little different (mainly WEU has a lot of extension statements), it doesn't matter.

Next I will start our trigger tour with an instance ..

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.