Introduction to some heirloom script statements most of the commands are explained _ heirloom script

Source: Internet
Author: User
Tags script tag
Go to (, 0,0)
This is the command to have the character go to the current map to specify coordinates
For example: Go to (450,100)
You can go to the NPC point.

Go to the door (, 0,0) to reach the map (, 0,0)
It's a door statement.
From one of the map's door points to the other map.

to (, 0,0) while playing
Under this command, the characters are in a combat state, and any reset script can trigger the default trigger
can also be used, such as your big map in Zhongzhou, you can go to the edge of the fight (three floor, 0,0)
So the characters will play and go to the general grave three-storey ' ~ ~
However, there is a need to talk to NPC in the map, plug is not reachable, such as the Corridor of Love, purgatory
Go to the map (, 0,0)
This allows the character to go to a map.
Go to the map (hot sand desert, 0,0)
Similarly, the map has the need to dialogue with NPC, the plug-in is not reachable

Find [] (,,)
This is a statement for NPC.

dialog with []
Dialogue statement, very simple

Find the NPC responsible for []
This is the template under the command, very practical, but I did not use ha ~ ~ ~ (laughed)

Dialogue with the NPC
The command to match the above statement

SELECT []
Let's not say it, everyone knows it.

choose to buy []
order to buy items after dialogue with NPC
For example: choose to buy [DAO (BIG)]

Buy 1
It's an order to buy something.
Buy 1 Super Magic pills

enough to buy 5.
It's a practical order.
When you buy, you also judge if there is a parcel in the package, and after the purchase, the number of parcels will not exceed 5
Better than buying orders.
If you buy more than 12, it is easy to buy things fail, so the Mage's script
Better be
enough to buy 15 super magic pills.
Wait [1000] milliseconds
enough to buy 15 super magic pills.

Sell []
A simple order to sell a particular item
It's hard to see such a command in a script.

There are 5 left.
This is the same as the top, but after the sale, the package still leaves you set the number of the item

Auto Sell []
This is common.
[] can be for books, necklaces, bracelets, rings, sundries, weapons, building materials, drugs, mineral meat.

Repair []
It's a statement about fixing things, everybody knows.

Custody []
A single item of custody

Automatic storage
Will store the items according to the setting of your items, provided that you have a conversation with the store keeper.

Remove 1 []
Use this command to remove items from the warehouse after you have removed the item from the warehouse keeper

End a Conversation
After a conversation with any NPC, you can use this command to end the conversation with the NPC

equipment [] to []
A statement that the object is equipped with a position on the body

Remove equipment from [] location
A statement to remove the equipment from the body

Click on the dialog box (0,0)
After dialogue with NPC, let the mouse click on a specific position of the statement (I did not use, as if you need a mouse refill to fixed-point)

If hp<=0%
Judgment statement, popular less than 0% here's the red is the character blood quantity

If sp<=0%
Judgment statement, when the blue is less than 0% here the Blue is the character's current mana amount

If the weight >=50%
A statement that judges the current weight of a person

If the number of items [] <=2 a
A statement that determines the number of specific items in a package.

If the [] location of the persistent <=2
A statement to judge a statement that is durable in a particular position.

If the parcel is empty <=6
Judge the sentence, judge the vacancy in the bag, easy to understand

If the current map name <>[]
Judge the statement of a map
For example: If the current map name =[hot Sand desert], then ... (meaning: The current map is hot sand, then the ... do so)
If the current map name <>[hot Sand desert], then ... (meaning: The current map name is not hot sand desert, then this ....) do so)

If the body [] position of the equipment =[]
Give me an example.
If the body [weapon] position equipment =[]
This statement triggers when there is no weapon in the position of the weapon.
If the body [weapon] position equipment =[verdict]
This statement triggers when the weapon position is a verdict.
If the body [weapon] position equipment <>[verdict]
When the weapon's position is not a verdict, this statement triggers
If the value of the system variable [K1] >=
This command is to set the variable K1
Let K1=0
In a script, you can use let K1=1 or lets k1=2 to make K1 variable
You can also change the value of K1 by adding 1 or dec (k1) system variables to the INC (K1) system variable
If you set a variable and the value of the variable satisfies the condition in your statement, this statement can trigger

If the current distance from the (0,0) point <=10
commands on the character coordinates
Only used under the current map
The person's current coordinates and the specified coordinates of the distance, in accordance with the function of the operation, oh, simply add and subtract

If the actual distance from the current (0,0) point is <=10
commands on the character coordinates
Only used under the current map if the door is blocked
Refers to the distance that the character goes to the coordinates and the distance you set.

If the red name
This simple don't say hehe

If the gold <=
Judge the number of coins in a person's parcel
You can put a trigger like this under any script.
If the coin <=100000, then jump to script tags < offline >
< offline >
Line

No money, how to practice it ~ ~

If the occupation =
Taoist Warrior mage who judges your character's occupation

If the level >=
A statement that determines the current level of your character

if [&&]=
This is the statement of the judgment variable, which is different from the system variable mentioned earlier.
This is a human-specific variable.
For example
Global variable [& Five snakes map This is the definition of a variable
& Five Snakes Map &= This is the set variable

If [& five snakes map &]= outside
Then jump to mark < outer five snake >
If [& five snakes map within &]=
Then jump to tag < inside five snakes >

If the number of packages [] <=2 a
This is to determine the number of items in the bag reached the statement of how many
And if the number of items [] <=2 meaning is almost the same


If you want to sell [] number >0
Determine what kind of items in the package, according to the set of items set, to determine the quantity sold
For example:
< jewelry store >
If you want to sell [necklace] number <1 and sell [bracelet] number <1 and to sell [ring] number <1
Then jump to mark < fix jewelry >

If the number of items to be stored >0
According to the items set, to determine the number of your bag to save

If the number of babies >=3
Feel this statement 80% is set for the Mage
Like what
If the number of babies >4
Then jump to mark < go to snake hole >

If the baby level >=5
Judge baby level, Mage and Taoist's special statement haha
For example
If the baby level >6
Then jump to tag < triangle row building >

If the current number of red drugs >=3
After 2.37 version of the statement, judge the number of red drugs in the bag, large and small are counted on the

If the current number of blue drugs >=3
The same statement that appears after version 2.37, as in the preceding statement

If the quantity of the item category [] >0 a
Determine the number of items in a package

Then jump to line []
Let the script execute a statement that jumps to a specific number of rows

Jump to Tag <>
Again, let the script execute the statement jump to a specific tag

Wait [1000] milliseconds
Because of the delay in the network, this command can delay the execution of the script.

Line
Let the characters completely offline ~ ~, not on the line, but, the baby is prone to this phenomenon, you set a small retreat, triggers also triggered the offline
The baby will appear:
63 seconds to connect again.
Line
The baby will continue to go online.

Close Program
Close the family heirloom, but I found once, although unable to exhale the baby, but in the system process, can see the baby's existence, but also occupies the cpu~

End Script Run
Let the script execute the statement stop, ~ ~ is not executing

Let K1=0
To set the statement of a system variable

Inc (K1)
As mentioned earlier, the statement that the system variable value is increased by 1

Dec (K1)
As mentioned earlier, the statement that the system variable value is minus 1

Call external script []
This is not used, but it is said to be: When the script executes here, call the name of the foot that is placed in the same directory as your current script.

Call child script []
In the same script down with the split script, and jump to the script tag almost ~ ~

Call Child script <>
In the same script down with the split script, and jump to the script tag almost ~ ~


Return parent Script
and invoke the script in a coordinated statement

>>
Template statements, I did not do templates, not clear usage hehe

Jump down to tags <>
Since many scripts have the same markup, this statement and the following statements are statements that let the script jump to a specific tag
Jump up to tags <>

&&=
To set a statement for a global variable

&& Increase 1
&& minus 1
Statements that let a variable increase by 1 minus 1

&&=&&+
&&=&&-
Variable add and subtract haha

print variable [&&]
Print out Variables in Chat window

Print []
Print the words you want to play
But only in the chat window.

Print []color=
This statement will make the typed word color

If there are errors below [fail, can't find, lack] jump to <>
Error monitoring end

These 2 statements are practical, but difficult to see in the script, let me cite an example
If there is a mistake [buying failed] jump to < pharmaceutical supplier >
< pharmaceutical manufacturers >
Find [drug dealers] (forbidden, 362,184)
Dialogue with [drug dealers]
SELECT [Sell Medicine]
Auto sell [medicine] category items
SELECT [Back]
SELECT [Buy Medicine]
Buy 2 Gold pills (a lot)
Buy 3 Magic Pills (a lot)
Wait [1000] milliseconds
enough to buy 1 super Gold pills.
SELECT [Back]
SELECT [Buy Medicine]
Choose to buy [red poison (small)]
Buy enough 7 red poisons (a small amount)
SELECT [Back]
Select [Close Menu]
Error monitoring end

When you fail to buy a drug, the message window or Chat window (which depends on the settings in your script's operation to determine where it appears) appears
So to the error monitoring end of the sentence will be back to the mark < pharmaceutical manufacturers >

global variable [&&]
I've already mentioned the following examples.
Clear Global variables
This statement makes all variables empty, but it's not clear K1 K2 K3 This system variable

Restart script
The statement that lets the script execute again is simple and straightforward

&&=&&*
&&=&&/
The remainder of the &AMP;&AMP;=&AMP;&AMP;/5
The multiplication and division method of the variable

Start fighting
Let the characters in the current map to start the practice level

Set Sentinel Combat (, 0,0) combat radius 30,20
Within a specified range, with a level not exceeding 30 perpendicular to no more than 20 in the coordinates of the fight
Use []
Let the character use something in the parcel

Automatic Mine digging
The order to dig mine is simple and clear.

Rest of the subordinate
Subordinate attack
Let your baby rest or attack the statement
The mage can use it at the door, save his own baby and block himself.

Use skills for yourself []
Commands that let characters use their skills,
Monks practice Baby, Master practice skills can use this command

Play sound []
A statement that lets the baby play the sound
[] Inside is the directory where you want to play the sound

Back 50 seconds.
Let the character retreat the command, behind is time,
Back 10 seconds.
A statement that allows a character to retreat for 10 seconds

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.