|
以下来自:DotA Allstars v6.59d.w3x 中的war3map.j
- function I001OII takes nothing returns boolean
- local real IOIO11=GetRandomReal(0,1)
- set OOO0II[GetPlayerId(GetOwningPlayer(GetTriggerUnit()))]=OOO0II[GetPlayerId(GetOwningPlayer(GetTriggerUnit()))]+1
- return IOIO11<.2 or(IOIO11<.3 and GetUnitAbilityLevel(GetTriggerUnit(),1093679160)<I0011II(GetTriggerUnit()))
- endfunction
- function I001O1I takes nothing returns boolean
- if GetUnitAbilityLevel(GetTriggerUnit(),1093679160)>0 and(GetSpellAbilityId()==1093679155 or GetSpellAbilityId()==1093679177 or GetSpellAbilityId()==1093679175 or GetSpellAbilityId()==1093679174)then
- return I001OII()
- endif
- return false
- endfunction
复制代码
以下来自:DotA Allstars v6[1].57b AI CN Rev.02.w3x中的war3map.j
- function UO takes nothing returns boolean
- local real hR=GetRandomReal(0,1)
- return hR<.2 or(hR<.3 and GetUnitAbilityLevel(GetTriggerUnit(),'A088')<ESE(EIE(GetTriggerUnit()),"MulticastLevel"))
- endfunction
- function SSE takes nothing returns boolean
- if GetUnitAbilityLevel(GetTriggerUnit(),'A088')>0 and(GetSpellAbilityId()=='A083'or GetSpellAbilityId()=='A08I'or GetSpellAbilityId()=='A08G'or GetSpellAbilityId()=='A08F')then
- return UO()
- endif
- return false
- endfunction
复制代码
演示完毕! |
|