|
楼主 |
发表于 2020-7-26 15:22:16
|
显示全部楼层
本帖最后由 枪兵打巨像 于 2020-7-26 18:52 编辑
Galaxy代码2
类型:触发器
功能:在“显示器”上播放Bad Apple!!
- //--------------------------------------------------------------------------------------------------
- // Trigger: BAdisplay
- //--------------------------------------------------------------------------------------------------
- bool gt_BAdisplay_Func (bool testConds, bool runActions) {
- // Automatic Variable Declarations
- // Actions
- if (!runActions) {
- return true;
- }
- SoundPlayForPlayer(SoundLink("BadApple", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
- t1=0.05;
- for(i=1;i<501;i+=1){
- for(j=1;j<433;j+=1){
- libNtve_gf_ShowHideDoodadsInRegion(judge1[i][j], RegionFromId(j), null);
- }
- Wait(t1, c_timeReal);
- }
- for(i=1;i<501;i+=1){
- for(j=1;j<433;j+=1){
- libNtve_gf_ShowHideDoodadsInRegion(judge2[i][j], RegionFromId(j), null);
- }
- Wait(t1, c_timeReal);
- }
- for(i=1;i<501;i+=1){
- for(j=1;j<433;j+=1){
- libNtve_gf_ShowHideDoodadsInRegion(judge3[i][j], RegionFromId(j), null);
- }
- Wait(t1, c_timeReal);
- }
- for(i=1;i<501;i+=1){
- for(j=1;j<433;j+=1){
- libNtve_gf_ShowHideDoodadsInRegion(judge4[i][j], RegionFromId(j), null);
- }
- Wait(t1, c_timeReal);
- }
- for(i=1;i<501;i+=1){
- for(j=1;j<433;j+=1){
- libNtve_gf_ShowHideDoodadsInRegion(judge5[i][j], RegionFromId(j), null);
- }
- Wait(t1, c_timeReal);
- }
- for(i=1;i<298;i+=1){
- for(j=1;j<433;j+=1){
- libNtve_gf_ShowHideDoodadsInRegion(judge6[i][j], RegionFromId(j), null);
- }
- Wait(t1, c_timeReal);
- }
- TimerStart(TimerCreate(), 5.0, false, c_timeReal);
- GameOver(1, c_gameOverVictory, true, true);
- return true;
- }
- //--------------------------------------------------------------------------------------------------
- void gt_BAdisplay_Init () {
- gt_BAdisplay = TriggerCreate("gt_BAdisplay_Func");
- TriggerAddEventTimeElapsed(gt_BAdisplay, 5.0, c_timeReal);
- }
复制代码
|
|