|
发表于 2006-6-3 12:50:29
|
显示全部楼层
Yuesfengbao 复制
事件
Unit - A unit Begins casting an ability
环境
(Ability being cast) Equal to 雷霆一击 (中立但是带有敌意)
动作
Custom script: local real Real1 = 0.00
Custom script: local real Real2 = 0.00
Custom script: local unit SkillUnit = null
Custom script: local unit Unit1 = null
Custom script: local unit Unit2 = null
Custom script: local unit Unit3 = null
Custom script: local unit Unit4 = null
Custom script: local unit Unit5 = null
Custom script: local integer Time = 0
Custom script: local location tempLoc = null
Custom script: bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit)) matching ((Unit-type of (Matching unit)) Equal to 邪恶的兽族步兵)) and do (Actions)
Loop - 动作
Custom script: call RemoveUnit( GetEnumUnit() )
Custom script: call DestroyGroup( GetLastCreatedGroup() )
Custom script: set Time = 30
Custom script: set Real1 = 200.00
Custom script: set SkillUnit = GetTriggerUnit()
Custom script: set tempLoc = GetUnitLoc(SkillUnit)
Custom script: call CreateNUnitsAtLocFacingLocBJ( 1, \'nchg\', GetOwningPlayer(SkillUnit), PolarProjectionBJ(tempLoc, 500.00, ( 72.00 * 1.00 )), tempLoc )
Custom script: set Unit1 = GetLastCreatedUnit()
Custom script: call CreateNUnitsAtLocFacingLocBJ( 1, \'nchg\', GetOwningPlayer(SkillUnit), PolarProjectionBJ(tempLoc, 500.00, ( 72.00 * 2.00 )), tempLoc )
Custom script: set Unit2 = GetLastCreatedUnit()
Custom script: call CreateNUnitsAtLocFacingLocBJ( 1, \'nchg\', GetOwningPlayer(SkillUnit), PolarProjectionBJ(tempLoc, 500.00, ( 72.00 * 3.00 )), tempLoc )
Custom script: set Unit3 = GetLastCreatedUnit()
Custom script: call CreateNUnitsAtLocFacingLocBJ( 1, \'nchg\', GetOwningPlayer(SkillUnit), PolarProjectionBJ(tempLoc, 500.00, ( 72.00 * 4.00 )), tempLoc )
Custom script: set Unit4 = GetLastCreatedUnit()
Custom script: call CreateNUnitsAtLocFacingLocBJ( 1, \'nchg\', GetOwningPlayer(SkillUnit), PolarProjectionBJ(tempLoc, 500.00, ( 72.00 * 5.00 )), tempLoc )
Custom script: set Unit5 = GetLastCreatedUnit()
Custom script: bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit)) matching ((Unit-type of (Matching unit)) Equal to 邪恶的兽族步兵)) and do (Actions)
Loop - 动作
Unit - Order (Picked unit) to Orc Blademaster - Bladestorm
Wait 1.50 game-time seconds
Custom script: call SetUnitColor( Unit1, PLAYER_COLOR_LIGHT_GRAY )
Custom script: call SetUnitColor( Unit2, PLAYER_COLOR_LIGHT_GRAY )
Custom script: call SetUnitColor( Unit3, PLAYER_COLOR_LIGHT_GRAY )
Custom script: call SetUnitColor( Unit4, PLAYER_COLOR_LIGHT_GRAY )
Custom script: call SetUnitColor( Unit5, PLAYER_COLOR_LIGHT_GRAY )
Custom script: loop
Custom script: set Real2 = Real2 + 50.00
Custom script: call IssuePointOrderLocBJ( Unit1, \"move\", PolarProjectionBJ(tempLoc, Real1, ( ( 72.00 * 1.00 ) + Real2 )) )
Custom script: call IssuePointOrderLocBJ( Unit2, \"move\", PolarProjectionBJ(tempLoc, Real1, ( ( 72.00 * 2.00 ) + Real2 )) )
Custom script: call IssuePointOrderLocBJ( Unit3, \"move\", PolarProjectionBJ(tempLoc, Real1, ( ( 72.00 * 3.00 ) + Real2 )) )
Custom script: call IssuePointOrderLocBJ( Unit4, \"move\", PolarProjectionBJ(tempLoc, Real1, ( ( 72.00 * 4.00 ) + Real2 )) )
Custom script: call IssuePointOrderLocBJ( Unit5, \"move\", PolarProjectionBJ(tempLoc, Real1, ( ( 72.00 * 5.00 ) + Real2 )) )
Custom script: exitwhen Time<1
Custom script: call TriggerSleepAction( 0.02 )
Custom script: set Time=Time-1
Custom script: endloop
Custom script: call RemoveUnit( Unit1 )
Custom script: call RemoveUnit( Unit2 )
Custom script: call RemoveUnit( Unit3 )
Custom script: call RemoveUnit( Unit4 )
Custom script: call RemoveUnit( Unit5 )
Custom script: call RemoveLocation( tempLoc )
[ 本帖最后由 amp34 于 2006-6-3 18:33 编辑 ] |
|