作者readper (佑子)
看板WarCraft
标题[WE] 物品私有化系统 [防止养人]
时间Tue Apr 22 02:02:31 2008
目前大蛇使用的系统 不会跟合成系统冲突(合成系统是用好帐单Hobill的合成系统)
Item Owned By Readper
Events
Unit - A unit Acquires an item
Conditions
And - All (Conditions) are true
Conditions
(Item-type of (Item being manipulated)) Not equal to 火之符
(Item-type of (Item being manipulated)) Not equal to 林之符
(Item-type of (Item being manipulated)) Not equal to 山之符
(Item-type of (Item being manipulated)) Not equal to 风之符
(Item-type of (Item being manipulated)) Not equal to 补给食物
Actions
If (All Conditions are True) then do (Then Actions) else do (Else
Actions)
If - Conditions
(Custom value of (Item being manipulated)) Equal to 0
Then - Actions
Item - Set the custom value of (Item being manipulated) to
(Player number of (Owner of (Triggering unit)))
Trigger - Run Combination Core <gen> (checking conditions)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do
(Else Actions)
If - Conditions
(Custom value of (Item being manipulated)) Not equal
to (Player number of (Owner of (Triggering unit)))
Then - Actions
Hero - Drop (Item being manipulated) from (Triggering
unit)
Game - Display to (Player group((Owner of (Triggering unit))))
the text: (((Name of (Item being manipulated)) + 已经被 +
((Name of PlayerHero[(Custom value of (Item being manipulated))]) +
绑定,无法捡取。)
Else - Actions
Trigger - Run Combination Core <gen> (checking
conditions)
图片版本:
http://tw.gg-game.com/readper/img/ItemOwned.jpg
简单说明
利用Item的Custom value记录所属玩家
Combination Core <gen> 是Hobill的系统用来进行合成的主要触发
目前这种用法会导致限定私有的物品就不能合成用
如果希望道具没私有化但是能合成只要多加一层IF
直接让他跑合成就好 这应该没啥问题吧
这系统没用到啥变数 也没啥运算 不会增加系统负担 大概只是会被玩家哭霸而已吧
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 210.192.248.249
1F:推 stqqq:感恩~!! 04/22 02:03
2F:推 bigfoot:感恩~ 04/22 02:05
3F:推 Osirisair:因为我不会 所以问一下 是合成过的东西才私有化吗? 04/22 02:19
4F:→ readper:合成後或者合成前都会 04/22 02:22
5F:→ POTATOLonMau:【血斧】已经被【郭嘉】榜定,无法交易。 郭嘉:干。 04/22 02:39
加上你说的那一行叙述了
6F:推 wuhou:那有人跳怎麽办? 直接gg? 04/22 02:44
7F:→ readper:有人跳要怎处理就看地图作者了阿 要解除很简单阿 04/22 02:49
8F:→ readper:跑个for loop把身上六格的东西的custom value都设成0就好 04/22 02:49
9F:→ readper:补充说明 这个系统的绑死是针对玩家的 对所有单位都有效 04/22 02:50
※ 编辑: readper 来自: 210.192.248.249 (04/22 03:07)
10F:推 escape54321:XDDD 推P大 04/22 12:22
11F:推 Wade9043:要有郭嘉说的话才嗨啊~(误) 04/22 12:49
12F:→ readper:我不要 我不想看到 "小乔:干。" 04/22 13:28
13F:推 airfirewolf:那如果我不给装,直接请对方开分享。我就可以帮他买了 04/22 14:12
14F:→ airfirewolf:这样跟养人不就一样了?(以上只是疑问,无恶意〉 04/22 14:13
15F:推 Naix:个人觉得作者能在游戏一开始的时候显现文字 04/22 14:50
16F:→ Naix:表明本游戏不欢迎养人 让玩家自制还不错 04/22 14:51
17F:推 Illya:我记得自己做的图可以索分享 04/22 16:32
18F:→ readper:锁分享也是可以的 不过这个系统是看买东西的那只单位是谁 04/22 17:10
19F:推 wix3000:类似很多RPG的绑定系统? 我不懂Hobill的合成系统里写了 04/22 18:15
20F:→ wix3000:什麽(虽然我的地图是用他) 不过是什麽情况下会冲突吗? 04/22 18:16
21F:→ readper:分开运作的话 会可以拿别人的东西当做合成的最後一样物品 04/22 18:38