2. Eloquent
Next, let him do something practical - speak! Or continue with the previous example:
[Ctrl+A Select all Note:Introducing external Js requires refreshing the page before execution]
Merlin spoke (if you want to read the sound, the client needs to download and install the corresponding voice engine on the Microsoft website)! Here are a few new things:
Declare language type, 0x0409 is the English number (for language number, please refer to /globaldev/reference/ ). If there is no such declaration, or the language declared as the wrong language, the language only displays the two language expressions of () and () are MSAgent at one time, and there is only the difference between displaying graphics.
After understanding these functions, are you intoxicated? Don't worry, there are better things!
3. Vibrant
I always look at a stupid thing and don’t move. Even if I’m very Q, I will feel a little bored. Let’s let him move.
This example is called with a network file, so it will be slower. Please wait patiently!
[Ctrl+A Select all Note:Introducing external Js requires refreshing the page before execution]
See? In fact, as long as you are good at mobilizing its enthusiasm, MSAgent is also quite lively! It is not difficult to find out from information observation that it turns out that making MSAgent move is that simple:
(x, y) is the role moved to the specified coordinate;
(action) Command the character to do a certain action. See the action list: /library/?url=/library/en-us/msagent/deschar_3pgy.asp (It needs to be explained here that not all characters support these actions, and the processing method will be explained later!)
() Hide the role (not to release the role, it can be displayed again through ())
(Request, list) Preload related MSAgent animation data. The MSAgent character data file supports single-structured character files (.acs, character data and animation data are stored in the same file), and also supports separate structured character files (.acf, character data is stored in .acf, animation data is stored in .acca). These two modes can be adopted based on local hard disk and network calls. When calling network acf file, since the role data and animation data are downloaded separately, the relevant animation data need to be preloaded. The acs file is used (generally there is no possibility of local acf file) and there is no need to be preloaded.
This example is not actually used in the three parameters of AgentLoadRequest, AgentLoadRequest and AgentAnimationRequest. It returns the status object (equivalent to the readystatus property) that should be operated in question. It has a relatively practical purpose when calling the network acf file. This will be explained later!
Previous page12345Next pageRead the full text