作者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