加钱命令
WE里新建一个叫money的触发,转化,删除里面所有内容(WE里粘贴下面的代码也行),
或者MPQworkshop解压war3map.j,用记事本或者JASS SHOP PRO打开
trigger gg_trg_money
if ( not ( GetEventPlayerChatString() == "money" ) ) then
return false
endif
return true
endfunction
function Trig_money_Actions takes nothing returns nothing
call AdjustPlayerStateBJ
endfunction
//==================
function InitTrig_money takes nothing returns nothing
set gg_trg_money = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_money, Player(0), "money", true ) //仅注册给房主使用
call TriggerAddCondition( gg_trg_money, Condition( function Trig_money_Conditions ) )
call TriggerAddAction( gg_trg_money, function Trig_money_Actions )
endfunction
3.在MAIN里 (用WE的不用)
加资源的JASS代码
最新推荐文章于 2022-08-11 09:04:01 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)