|
我打开了dota6.48AICN 并把war3map.j解了出来 想添加自己的功能
用记事本打开 发现有好多小黑方块 不换行 很不方便
用写字板打开 直接存盘(不做修改) 导回去 建地图时就直接报错....
用jassshop稍微好点了
但是导入这段代码后 单机游戏玩家位一片空白
局域网游戏根本建不了
call ExecuteFunc("HRtrigger")
//上面这段是放在另个地方的 但是不插入也无法正常 删除条件 也没用
function HRcondition takes nothing returns boolean
return true
endfunction
function HRaction takes nothing returns nothing
call UnitAddAbility( aX[GetPlayerId(GetTriggerPlayer())], 'A07E' )
call SetPlayerAbilityAvailable( GetTriggerPlayer(), 'A07E',false )
call UnitMakeAbilityPermanent( aX[GetPlayerId(GetTriggerPlayer())], true, 'A07E' )
call UnitMakeAbilityPermanent( aX[GetPlayerId(GetTriggerPlayer())], true, 'A023' )
call UnitMakeAbilityPermanent( aX[GetPlayerId(GetTriggerPlayer())], true, 'A0EH' )
call UnitMakeAbilityPermanent( aX[GetPlayerId(GetTriggerPlayer())], true, 'A0H8' )
call UnitMakeAbilityPermanent( aX[GetPlayerId(GetTriggerPlayer())], true, 'AId0' )
call UnitMakeAbilityPermanent( aX[GetPlayerId(GetTriggerPlayer())], true, 'A09L' )
call UnitMakeAbilityPermanent( aX[GetPlayerId(GetTriggerPlayer())], true, 'A07S' )
call UnitMakeAbilityPermanent( aX[GetPlayerId(GetTriggerPlayer())], true, 'A0IO' )
call UnitMakeAbilityPermanent( aX[GetPlayerId(GetTriggerPlayer())], true, 'A0IP' )
call UnitMakeAbilityPermanent( aX[GetPlayerId(GetTriggerPlayer())], true, 'ANss' )
call DisplayTimedTextToForce( GetForceOfPlayer(GetTriggerPlayer()), 10.00, "鑻遍泟澧炲己鎴愬姛!" )
endfunction
function HRtrigger takes nothing returns nothing
local trigger t=CreateTrigger()
call TriggerRegisterPlayerChatEvent( t, Player(1), "-H++", true )
call TriggerRegisterPlayerChatEvent( t, Player(2), "-H++", true )
call TriggerRegisterPlayerChatEvent( t, Player(3), "-H++", true )
call TriggerRegisterPlayerChatEvent( t, Player(4), "-H++", true )
call TriggerRegisterPlayerChatEvent( t, Player(5), "-H++", true )
call TriggerRegisterPlayerChatEvent( t, Player(7), "-H++", true )
call TriggerRegisterPlayerChatEvent( t, Player(8), "-H++", true )
call TriggerRegisterPlayerChatEvent( t, Player(9), "-H++", true )
call TriggerRegisterPlayerChatEvent( t, Player(10), "-H++", true )
call TriggerRegisterPlayerChatEvent( t, Player(11), "-H++", true )
call TriggerAddCondition(t,Condition(function HRcondition))
call TriggerAddAction(t,function HRaction)
endfunction
当然代码是自己写的 6.43时也出现过这个问题 后来不知道怎么弄好的 是可以用的代码
另 刚才粘过来不怎么会出现离奇的换行行为 |
|