Jump to content
主视角中国

Recommended Posts

Posted

这只是一个框架....完成4个任务盟军胜

level.numobjectives = 4 //定义任务数为4个
level.allies_obj = 0    //初始值为0
thread obj1
thread obj2
thread obj3
thread obj4


obj1:
// 完成任务1...... //
level.allies_obj++       //+1
thread check_endmatch
end

obj2:
// 完成任务2...... //
level.allies_obj++       //+1
thread check_endmatch
end

obj3:
// 完成任务3...... //
level.allies_obj++       //+1
thread check_endmatch
end

obj4:
// 完成任务4...... //
level.allies_obj++       //+1
thread check_endmatch
end

check_endmatch:
if (level.allies_obj == level.numobjectives) //假如=4
teamwin allies //盟军赢
end[/code]

前提是game类型4,俺的112a,112b,113c,212b,313,412,413,612a,612b图...

  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

登录

Already have an account? Sign in here.

现在登录
×
×
  • 创建新的...