找回密码
 点一下
查看: 5384|回复: 14

GOSI

[复制链接]
发表于 2008-3-28 18:08:08 | 显示全部楼层 |阅读模式
又来了个强大的东西
对于懂程序的来说用这玩意儿写物品,单位说明会方便太多吧,偷懒者的福音哪
不懂程序其实他用的脚本语言也很简单,从看到的来看很容易掌握
简单的来说这东西就是用一种类似于C的脚本语言替代原本的物体说明,大大简化物体说明的写作量
比如你有一个单位,你需要在他的说明里写上他的速度是多少,如果你地图有很多自定义单位,你不得不每次都查看一下单位的移动速度,然后回到说明框改掉,或许还会发生这样的事情:你改掉了单位的速度,却忘了在说明里改掉原来的,如果用这个,据文档,你只需要一句脚本
[$spd;]  就可以获得速度
以上纯粹为看文档的结果,本人没有实践..大家一起来研究吧...
tooltip_1.jpg

要用这个东西只需直接在物体编辑器里写脚本,然后保存地图,然后打开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.

GOSI_20v0.4.0.rar

403 KB, 下载次数: 176

发表于 2008-3-29 01:43:40 | 显示全部楼层
好东西.....................
回复

使用道具 举报

发表于 2008-3-29 08:42:23 | 显示全部楼层
很好很方便
回复

使用道具 举报

 楼主| 发表于 2008-3-29 10:43:34 | 显示全部楼层
作者说下个版本已经完成老
他正在写一些测试地图,方便直接看到这东西的效果
应该快了吧
回复

使用道具 举报

发表于 2008-3-29 11:00:39 | 显示全部楼层
如果真的能有效的应用到地图里面肯定是相当有用了,顺便问一句这个是傻瓜式是的吗?

对java没有研究阿
回复

使用道具 举报

 楼主| 发表于 2008-3-29 11:05:57 | 显示全部楼层
不用懂java,简单的看一下作者写的那脚本语言就行
在物体编辑器的说明框里直接写代码
用[]括起来
如[$spd;]
然后保存地图
然后运行作者写的程序再重建次地图就行老
具体看说明文档
回复

使用道具 举报

发表于 2008-3-29 12:18:05 | 显示全部楼层
不过对本土玩家还是游戏界面内汉化比较好
回复

使用道具 举报

发表于 2008-3-29 19:36:44 | 显示全部楼层

果然是好东西
膜拜下
回复

使用道具 举报

发表于 2008-4-6 15:41:40 | 显示全部楼层
这可是好东西啊~~~怎么早些没看到呢
回复

使用道具 举报

发表于 2008-4-6 17:46:12 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

traxex 该用户已被删除
发表于 2008-4-10 14:33:10 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

发表于 2008-4-10 19:55:09 | 显示全部楼层
引用第10楼traxex于2008-04-10 14:33发表的  :
我怎么记得we原来就有这个功能的呢..
比如,哪个地方想用剑圣的力量值,就可以用:     <Obla,spd>
这就可以了.

如果有一个地方想用山丘1级重击晕人的概率,就可以用:      <AHbh,DataA1>
WE本来就有这个功能的呢,各位仙人都没有看到???

知道,以前经常用,但现在不用了,原因是我很多技能是用触发造成伤害,没办法引用某个技能的数据。
另外我觉得功能太少了,<AHbh,DataA1>类型的格式不能显示小数点后面的数,也不能自己计算表达式的值
回复

使用道具 举报

发表于 2008-8-1 00:32:58 | 显示全部楼层
全是英文~叫我们这些“英盲”怎么看啊~
回复

使用道具 举报

发表于 2008-8-5 14:25:58 | 显示全部楼层
又是什么东东啊!!  看看!
回复

使用道具 举报

发表于 2008-8-5 14:35:21 | 显示全部楼层
http://translate.google.com/tran ... ;sl=en&tl=zh-CN
这里有汉化的说明啊!
用g翻译的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-4-28 12:10 , Processed in 0.141245 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表