找回密码
 点一下
查看: 1363|回复: 9

关于胜利失败条件

[复制链接]
发表于 2009-2-27 15:49:10 | 显示全部楼层 |阅读模式
我设置的胜利失败条件是某单位被杀,但是当单位被杀被杀后,游戏就直接结束了,请问怎样设置才能让游戏继续呢?
发表于 2009-2-27 15:51:35 | 显示全部楼层
既然胜利失败了,那自然就结束了阿……
回复

使用道具 举报

发表于 2009-2-27 15:53:32 | 显示全部楼层
你要对战那样?
回复

使用道具 举报

发表于 2009-2-27 17:35:11 | 显示全部楼层
我想LZ大概就是这个意思
回复

使用道具 举报

 楼主| 发表于 2009-2-27 19:22:46 | 显示全部楼层
是啊,就是无论失败还是身胜利,提示后,依旧能够继续游戏
回复

使用道具 举报

发表于 2009-2-27 19:49:30 | 显示全部楼层
可以用对话框模拟么
回复

使用道具 举报

 楼主| 发表于 2009-2-27 19:58:14 | 显示全部楼层
怎么模拟啊
回复

使用道具 举报

发表于 2009-2-27 20:06:59 | 显示全部楼层
就是对玩家显示一个对话画框阿
回复

使用道具 举报

发表于 2009-2-27 20:10:26 | 显示全部楼层
引用第6楼wcx于2009-02-27 19:58发表的  :
怎么模拟啊

这问题就像在问怎么吃饭
回复

使用道具 举报

发表于 2009-2-27 23:49:58 | 显示全部楼层
[jass]function CustomVictoryDialogBJ takes player whichPlayer returns nothing
//   local trigger t = CreateTrigger()
    local dialog  d = DialogCreate()
    call DialogSetMessage( d, GetLocalizedString( "GAMEOVER_VICTORY_MSG" ) )//创建胜利对话框
call DialogAddButton( d, GetLocalizedString( "GAMEOVER_CONTINUE" ), GetLocalizedHotkey("GAMEOVER_CONTINUE") )
    //set t = CreateTrigger()
    //call TriggerRegisterDialogButtonEvent( t, DialogAddButton( d, GetLocalizedString( "GAMEOVER_CONTINUE" ), GetLocalizedHotkey("GAMEOVER_CONTINUE") ) )
    //call TriggerAddAction( t, function CustomVictoryOkBJ )
call DialogAddButton( d, GetLocalizedString( "GAMEOVER_QUIT_MISSION" ), GetLocalizedHotkey("GAMEOVER_QUIT_MISSION") )
    //set t = CreateTrigger()
    //call TriggerRegisterDialogButtonEvent( t, DialogAddButton( d, GetLocalizedString( "GAMEOVER_QUIT_MISSION" ), GetLocalizedHotkey("GAMEOVER_QUIT_MISSION") ) )
    //call TriggerAddAction( t, function CustomVictoryQuitBJ )
    //if (GetLocalPlayer() == whichPlayer) then
       // call EnableUserControl( true )
      //  if bj_isSinglePlayer then
      //      call PauseGame( true )
      //  endif
     //   call EnableUserUI(false)
   // endif
    call DialogDisplay( whichPlayer, d, true )
   // call VolumeGroupSetVolumeForPlayerBJ( whichPlayer, SOUND_VOLUMEGROUP_UI, 1.0 )
    //call StartSoundForPlayerBJ( whichPlayer, bj_victoryDialogSound )
endfunction
function CustomVictoryBJ takes player whichPlayer, boolean showDialog, boolean showScores returns nothing//设置玩家胜利
    if AllowVictoryDefeat( PLAYER_GAME_RESULT_VICTORY ) then//如果是胜利
        call RemovePlayer( whichPlayer, PLAYER_GAME_RESULT_VICTORY )//删除玩家-按 玩家结果-胜利
        if not bj_isSinglePlayer then//如果不是单人游戏
            call DisplayTimedTextFromPlayer(whichPlayer, 0, 0, 60, GetLocalizedString( "PLAYER_VICTORIOUS" ) )//对玩家说胜利
        endif
        // UI only needs to be displayed to users.
        if (GetPlayerController(whichPlayer) == MAP_CONTROL_USER) then//判断是否 用户
            set bj_changeLevelShowScores = showScores//判断是否显示记分屏幕
           // if showDialog then//是否显示胜利对话框
                call CustomVictoryDialogBJ( whichPlayer )
           // else
            //    call CustomVictorySkipBJ( whichPlayer )
          //  endif
        endif
    endif
endfunction[/jass]

以前翻译了部分bj 结果后来又没动力了``
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-7-21 16:25 , Processed in 0.030922 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表