请选择 进入手机版 | 继续访问电脑版

13号避难所

 找回密码
 立即注册
搜索
查看: 3716|回复: 13

[辐射2 MOD] Fallout2如果要把肉乾變成藥品類要怎辦?

[复制链接]
发表于 2013-9-26 19:05:23 | 显示全部楼层 |阅读模式
想讓肉乾吃了會補 血
因為拿到很多.....
发表于 2013-9-26 19:23:44 | 显示全部楼层
本来吃了就会补血````补很少
发表于 2013-9-26 20:03:42 | 显示全部楼层
这货的属性是食物还是杂物来着
发表于 2013-9-26 21:51:08 | 显示全部楼层
Each flag is represented by a number 2^n (where n=1,2,3,...), so you have the flags 1, 2, 4, 8, 16, 32, 64 and so on. In hexadecimal (base 16), this is the same as 0x1, 0x2, 0x4, 0x8, 0x10, 0x20, 0x40, 0x80, 0x100 et cetera. By simply adding these numbers together, you can represent any combination of flags as a single unique number. Any number can be represented by one and only one combination of flags like this. Let's take your flag as an example:

150994974 = 134217728 + 16777216 + 16 + 8 + 4 + 2 = 2^27 + 2^24 + 2^4 + 2^3 + 2^2 + 2^1

It's easier to see in hexadecimal notation:

150994974 = 0x0900001e = 0x08000000 + 0x01000000 + 0x00000010 + 0x00000008 + 0x00000004 + 0x00000002

And even easier to see in binary notation:

150994974 = 0x0900001e =
0000 1001 0000 0000 0000 0000 0001 1110 =
0000 1000 0000 0000 0000 0000 0000 0000 +
0000 0001 0000 0000 0000 0000 0000 0000 +
0000 0000 0000 0000 0000 0000 0001 0000 +
0000 0000 0000 0000 0000 0000 0000 1000 +
0000 0000 0000 0000 0000 0000 0000 0100 +
0000 0000 0000 0000 0000 0000 0000 0010

In binary notation, setting a flag is the same as turning one of the 32 zeroes above into a 1. So you see, there can be exactly 32 flags if the size of the variable is 32 bits (one bit is either 0 or 1), aka four bytes (one byte is 8 bits), like above.


Now look again at _defines.fos, at the item flags. You'll see for example that ITEM_CAN_PICKUP is 0x08000000, which is one of the flags in your number. You will also see that ITEM_CAN_USE is defined as 0x10000000, which is 2^28 = 268435456. So to set that flag, all you have to do is to add that number to your flag.
 楼主| 发表于 2013-9-26 22:27:32 | 显示全部楼层

回 1楼(delete1204) 的帖子

但我用fIC修改
它算雜物
吃也沒補血的樣子
好像啥事都不會發生....
发表于 2013-9-26 22:39:45 | 显示全部楼层
因為它本來就是雜物,要改類別只能用16進位編輯器,可以把肉乾改成“藥物”類別然後有補血效果,但這樣做會讓你舊存檔或是進入有包含舊版肉乾的地圖直接當掉。
簡單來說,除非你把全部有肉乾在容器/NPC身上的地圖都更新,不然只改00000284.pro會讓你出了村子連Klamath都進不去,沒有意義。
 楼主| 发表于 2013-9-26 22:43:42 | 显示全部楼层
也就是無望啦........
就算重新開始也可能出事?
发表于 2013-9-26 22:51:58 | 显示全部楼层
對,一踏進Klamath遊戲就會當掉。用sfall global script能做到把地圖容器內/NPC身上的物品置換掉,這樣你只要做個新的“可食用”肉乾proto就好,可以參考Nirran寫的Custom Skill Books

當然支援中文版的sfall就不用問我了。
 楼主| 发表于 2013-9-27 21:01:38 | 显示全部楼层
我想讓.44左輪連發
但遊戲中沒反應....
发表于 2013-9-27 22:11:24 | 显示全部楼层
因為小手槍没有連發的動畫,就像你把多管機槍加上單發攻擊也不會有反應一樣。
 楼主| 发表于 2013-9-27 23:13:14 | 显示全部楼层

回 9楼(novarain) 的帖子

所以只要換成其他圖就行?
 楼主| 发表于 2013-9-27 23:28:30 | 显示全部楼层
有出這類動畫的補丁嗎............
還有就是要怎麼改中文版的鎗隻名稱和注解....
发表于 2013-10-1 13:52:31 | 显示全部楼层
把枪的外形换成SMG就OK
223或者14MM这种连发就无问题
 楼主| 发表于 2013-10-3 22:05:54 | 显示全部楼层

回 12楼(casnalada) 的帖子

我想修改武器名稱
我修改了pro_item
把它放在Fallout2\\data\\TEXT\\CHT\\game
但沒有用........
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|13号避难所

GMT+8, 2024-3-29 03:51 , Processed in 0.065968 second(s), 14 queries .

快速评论 返回顶部 返回列表