|
又来了个强大的东西
对于懂程序的来说用这玩意儿写物品,单位说明会方便太多吧,偷懒者的福音哪
不懂程序其实他用的脚本语言也很简单,从看到的来看很容易掌握
简单的来说这东西就是用一种类似于C的脚本语言替代原本的物体说明,大大简化物体说明的写作量
比如你有一个单位,你需要在他的说明里写上他的速度是多少,如果你地图有很多自定义单位,你不得不每次都查看一下单位的移动速度,然后回到说明框改掉,或许还会发生这样的事情:你改掉了单位的速度,却忘了在说明里改掉原来的,如果用这个,据文档,你只需要一句脚本
[$spd;] 就可以获得速度
以上纯粹为看文档的结果,本人没有实践..大家一起来研究吧...
要用这个东西只需直接在物体编辑器里写脚本,然后保存地图,然后打开Gosi,用这个再保存次,脚本就会被替换成对应的字符串
ps.这东西的作者是Castle Fight的作者,大概是写说明写烦了...
作者写的完全说明文档参见
http://gex.eeve.org/forum/viewtopic.php?t=1103
因为是java写的
所以你可能需要装这个
http://www.java.com/en/download/index.jsp
作者在wc3c的原文
I am developing a script interpreter for script directives which can be written into the tooltip of units/abilities/items directly in the Object Editor.
It is called Gex's Obejct Editor Script Interpreter (GOSI).
I wanna present it here because I think this site accomodates many experienced mappers that are able to see the potential power of such a tool.
To cut things short. How it works:
You write script code into your object's tooltips right in the Object Editor. The script language is more or less like JAVA/C, so if you are experienced with one of those you will have no problem with it
You start the program, load the map in it and let it interprete it. You will find a map in the output folder where all script directives have vanished. Instead the output of these directives is now included in the tooltip.
Note: Larger functions that you don't wanna write into the small Object Editor window can be written into external files and then just be called inside the tooltip.
Ok, so kind of tooltip can be done with it?
Basically anything. Maybe you know my map "Castle Fight". Tooltips there are very complicated, include the abilities a unit has and much more (I will attach an example tooltip). Such a tooltip can be done with one word (the function call) with this script interpreter.
Some interesting function:
-You can read EVERY Object Editor field of an object and display it in the tooltip
-You can access other objects as well, for example you can iterate over the abilities a unit has and display their names and other values in the tooltip of the unit.
-Things like displaying the cooldown of all levels of an ability like in newer versions of dota is no big deal with this tool. If you change anything about your unit, you don't have to change it in the tooltip, the program does it.
What is planned:
I am currently writing some native functions for it that you can use to do even more stuff. Future versions will for example provide a function to write into external files.
So, for example, you can create an SQL Dump of all your unit data (simply call this external file write function and write the sql code into it, filled with the unit's values) and import it into a SQL database to view the units of your map at your page. |
|