- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
脚本语法参考(Scripting syntax reference)
脚本语法参考(Scripting syntax reference)
Scripting syntax reference
Script file description
The script file is the execution script code corresponding to the material behavior that contains multiple functions.
For scripting functions, you can have multiple parameters. At run time, the values of these parameters may come from the operation information in the network protocol, or from other function calls in the same script file.
Behavior or interaction processing parameter of the function definition must be unified, complete is the number of parameters that must be defined with the number of behavior or interaction parameters of the same type that is unified definition of parameters must be with the behavior or interaction parameters corresponding to the corresponding parameters, you can customize the name.
Line comments are allowed in script files, in the form of:
/ /... Comment text...
Note: the script virtual machine is case sensitive.
Two, function structure
DimFun function definition...
BeginFun
Function body...
EndFun
Three, function definition
1, DimFun, followed by function definition, format as:
The DimmFun function returns the type function name (parameter 1, type parameter 1, name 2, type parameter 2, name...)
2, description:
Function returns type:
Int returns integer
String returns string type
Void has no return type (used only for function types, indicating no return value)
Function parameter name list of comma separated variable name according to the C language specification, note: $_ variable name system variables, see list of definitions.
The function parameter type is:
Int integer (value passing)
String string type (value passing)
Int_array integer array (address passing)
String_array string array (address passing)
3. Function definition example:
DimFun, int, say (int, nWho, string, sMsg)
BeginFun
....
EndFun
Be careful:
Each substance must define a script starting function, ScenarioMain, for the script to run
Each material must define a regular activity s
您可能关注的文档
- 各种鱼的做法(A variety of fish practices).doc
- 各类会计科目(Various accounting subjects).doc
- 各种进制的转换(计算机基础呀)(Various decimal conversions (Computer Fundamentals)).doc
- 各种进制的转换(计算机基础呀.)(Various decimal conversions (Computer Fundamentals)).doc
- 各类地板质量鉴别方法(Different floor quality identification methods).doc
- 古绵纯如何用巧劲成就大品牌(How old Mianchun Jin Qiao brand achievement).doc
- 各行业人才短缺急煞用人企业(Shortage of talents in all trades and enterprises).doc
- 各项指标(Each index).doc
- 各行业工资参考表(Payroll sheet).doc
- 各项工程施工时应注意事项(Matters needing attention in construction of each project).doc
- 脚本命令(Script command).doc
- 节奏欢快的钢琴曲(A lively piano piece).doc
- 节候日促销策划要点(Key points for promotion planning).doc
- 花2(Spend 2).doc
- 花卉3(Flowers 3).doc
- 节水小窍门(Water-saving tips).doc
- 花岗岩(Granite).doc
- 花生(peanut).doc
- 节育并发症管理办法和节育并发症鉴定办法(试行)(Measures for the administration of contraceptive complications and methods for the identification of birth control complications (for Trial Implementation)).doc
- 花边饺子(Lace dumplings).doc
文档评论(0)