- UID
- 4278960
- 主题
- 0
- 阅读权限
- 20
- 帖子
- 67
- 精华
- 0
- 积分
- 34
- 金钱
- 261
- 荣誉
- 0
- 人气
- 0
- 在线时间
- 25 小时
- 评议
- 0
- 帖子
- 67
- 精华
- 0
- 积分
- 34
- 金钱
- 261
- 荣誉
- 0
- 人气
- 0
- 评议
- 0
|
如果不让电脑买医院,这样来改:找到ms_071_buybuilding.lua
找到 if not AliasExists("Destination") then
local Class = BuildingGetCharacterClass("")
local Count = DynastyGetMemberCount("dynasty")
local Number = 0
for Number=0,Count-1 do
if DynastyGetMember("dynasty", Number, "Member") then
if Class==GL_CLASS_NONE or Class==SimGetClass("Member") then
if BuildingCanBeOwnedBy("","Member") then
CopyAlias("Member", "Destination")
break;
end
end
end
end
end
改成
if not AliasExists("Destination") then
local Class = BuildingGetCharacterClass("")
local Count = DynastyGetMemberCount("dynasty")
local Number = 0
if BuildingGetType("")==GL_BUILDING_TYPE_HOSPITAL and not DynastyIsPlayer("dynasty") then
return
end
for Number=0,Count-1 do
if DynastyGetMember("dynasty", Number, "Member") then
if Class==GL_CLASS_NONE or Class==SimGetClass("Member") then
if BuildingCanBeOwnedBy("","Member") then
CopyAlias("Member", "Destination")
break;
end
end
end
end
end
如此思路,有兴趣你可以测试。当然还可以增加其他判断条件。 |
|