找回密码
 点一下
查看: 3040|回复: 6

BJ的唯一用处 ,废物利用。

[复制链接]
发表于 2009-8-21 17:49:12 | 显示全部楼层 |阅读模式
整理出来的全局变量,ok,不用白不用。当然,前提是你的图里不需要用到一条BJ函数。
算了,我不会表达,明白的明白,不明白的还是不明白、

set bj_forLoopAIndex = 1992

也就是说,BJ在加载地图的时候会运行一次,里面的全局变量也会声明。你不用BJ的话,就别浪费了这些变量。。。

  1.     rect               bj_isUnitGroupInRectRect    = null
  2.     rect               bj_mapInitialPlayableArea   = null
  3.     rect               bj_mapInitialCameraBounds   = null
  4.     unit               bj_lastReplacedUnit         = null
  5.     unit               bj_lastLoadedUnit           = null
  6.     unit               bj_lastHauntedGoldMine      = null
  7.     unit               bj_lastCreatedUnit          = null
  8.     unit               bj_makeUnitRescuableUnit    = null
  9.     unit               bj_groupRandomCurrentPick   = null
  10.     unit               bj_meleeNearestMine         = null
  11.     unit array         bj_ghoul
  12.     location           bj_enumDestructableCenter   = null
  13.     location           bj_meleeNearestMineToLoc    = null
  14.     force              bj_FORCE_ALL_PLAYERS        = null
  15.     force array        bj_FORCE_PLAYER
  16.     string             bj_lastPlayedMusic          = ""
  17.     string             bj_cineFadeContinueTex      = ""
  18.     string             bj_changeLevelMapName       = null
  19.     integer            bj_MELEE_MAX_TWINKED_HEROES = 0
  20.     integer            bj_forLoopAIndex            = 0
  21.     integer            bj_forLoopBIndex            = 0
  22.     integer            bj_forLoopAIndexEnd         = 0
  23.     integer            bj_forLoopBIndexEnd         = 0
  24.     integer            bj_stockPickedItemLevel     = 0
  25.     integer            bj_cineModeSavedSeed        = 0
  26.     integer            bj_queuedExecTotal          = 0
  27.     integer            bj_destInRegionDiesCount    = 0
  28.     integer            bj_groupCountUnits          = 0
  29.     integer            bj_forceCountPlayers        = 0
  30.     integer            bj_groupEnumTypeId          = 0
  31.     integer            bj_randomSubGroupWant       = 0
  32.     integer            bj_randomSubGroupTotal      = 0
  33.     integer            bj_destRandomConsidered     = 0  
  34.     integer            bj_itemRandomConsidered     = 0
  35.     integer            bj_forceRandomConsidered    = 0  
  36.     integer            bj_groupRandomConsidered    = 0
  37.     integer            bj_livingPlayerUnitsTypeId  = 0
  38.     integer            bj_randDistCount            = 0
  39.     integer array      bj_randDistID
  40.     integer array      bj_randDistChance
  41.     integer array      bj_meleeTwinkedHeroes
  42.     real               bj_lastTransmissionDuration = 0
  43.     real               bj_enumDestructableRadius   = 0
  44.     real               bj_randomSubGroupChance     = 0
  45.     real               bj_cineFadeContinueRed      = 0
  46.     real               bj_cineFadeContinueGreen    = 0
  47.     real               bj_cineFadeContinueBlue     = 0
  48.     real               bj_cineFadeContinueTrans    = 0
  49.     real               bj_cineFadeContinueDuration = 0
  50.     real               bj_meleeNearestMineDist     = 0.00
  51.     real               bj_enumDestructableRadius   = 0
  52.     real               bj_lastTransmissionDuration = 0
  53.     boolean            bj_wantDestroyGroup         = false
  54.     boolean            bj_isUnitGroupDeadResult    = true
  55.     boolean            bj_isUnitGroupEmptyResult   = true
  56.     boolean            bj_isUnitGroupInRectResult  = true
  57.     boolean            bj_changeLevelShowScores    = false
  58.     boolean            bj_makeUnitRescuableFlag    = true
  59.     boolean            bj_pauseAllUnitsFlag        = true
  60.     boolean            bj_rescueChangeColorUnit    = true
  61.     boolean            bj_rescueChangeColorBldg    = true
  62.     boolean            bj_cineModePriorFogSetting  = false
  63.     boolean            bj_cineModePriorMaskSetting = false
  64.     boolean            bj_cineModeAlreadyIn        = false
  65.     boolean            bj_cineModePriorDawnDusk    = false
  66.     boolean            bj_meleeGameOver            = false
  67.     boolean            bj_meleeVisibilityIsDay     = true
  68.     boolean            bj_meleeGrantHeroItems      = false
  69.     boolean            bj_finishSoonAllExposed     = false
  70.     boolean            bj_slotControlReady         = false
  71.     boolean            bj_gameStarted              = false
  72.     boolean            bj_isSinglePlayer           = false   
  73.     boolean            bj_useDawnDuskSounds        = true
  74.     boolean            bj_dncIsDaytime             = false
  75.     boolean array      bj_slotControlUsed
  76.     boolean array      bj_stockAllowedPermanent
  77.     boolean array      bj_stockAllowedCharged
  78.     boolean array      bj_stockAllowedArtifact
  79.     boolean array      bj_meleeDefeated
  80.     boolean array      bj_meleeVictoried
  81.     boolean array      bj_playerIsCrippled
  82.     boolean array      bj_playerIsExposed
  83.     boolean array      bj_queuedExecUseConds
  84.     timer              bj_cineFadeFinishTimer      = null
  85.     timer              bj_cineFadeContinueTimer    = null
  86.     timer              bj_cineSceneEndingTimer     = null
  87.     timer              bj_stockUpdateTimer         = null
  88.     timer              bj_gameStartedTimer         = null
  89.     timer              bj_volumeGroupsTimer        = CreateTimer()
  90.     timer              bj_queuedExecTimeoutTimer   = CreateTimer()
  91.     timer              bj_delayedSuspendDecayTimer = CreateTimer()
  92.     timer              bj_lastStartedTimer         = CreateTimer()
  93.     timer array        bj_crippledTimer
  94.     trigger            bj_delayedSuspendDecayTrig  = null
  95.     trigger            bj_destInRegionDiesTrig     = null
  96.     trigger            bj_queuedExecTimeout        = null
  97.     trigger            bj_dncSoundsDay             = null
  98.     trigger            bj_dncSoundsNight           = null
  99.     trigger            bj_dncSoundsDawn            = null
  100.     trigger            bj_dncSoundsDusk            = null
  101.     trigger            bj_stockItemPurchased       = null
  102.     trigger            bj_meleeVisibilityTrained   = null
  103.     trigger            bj_rescueUnitBehavior       = null
  104.     trigger            bj_cineSceneBeingSkipped    = null
  105.     trigger array      bj_queuedExecTriggers
  106.     sound              bj_dayAmbientSound          = null
  107.     sound              bj_nightAmbientSound        = null
  108.     sound              bj_dawnSound                = null
  109.     sound              bj_duskSound                = null
  110.     sound              bj_rescueSound              = null
  111.     sound              bj_questDiscoveredSound     = null
  112.     sound              bj_questUpdatedSound        = null
  113.     sound              bj_questCompletedSound      = null
  114.     sound              bj_questFailedSound         = null
  115.     sound              bj_questHintSound           = null
  116.     sound              bj_questSecretSound         = null
  117.     sound              bj_questItemAcquiredSound   = null
  118.     sound              bj_questWarningSound        = null
  119.     sound              bj_victoryDialogSound       = null
  120.     sound              bj_defeatDialogSound        = null
  121.     sound              bj_cineSceneLastSound       = null
  122.     sound              bj_lastPlayedSound          = null
复制代码
发表于 2009-8-21 18:23:58 | 显示全部楼层
这是BJ函数的默认值(初始值)
回复

使用道具 举报

发表于 2009-8-31 11:56:35 | 显示全部楼层
不用BJ完全可以屏蔽掉~导个只有以下内容的BJ进地图
globals
endglobals

然后那些渣变量渣函数就都没了
回复

使用道具 举报

发表于 2009-8-31 12:01:11 | 显示全部楼层
BJ中有一些函数还是有用的  
用WE导入空BJ肯定会报错的  要留几个函数 可以弄成空函数
回复

使用道具 举报

 楼主| 发表于 2009-9-20 21:23:05 | 显示全部楼层
无语,在加载地图的时候,BJ也会被加载啊。。

这些声明的变量就用咯。。⊙﹏⊙b汗,其实还是没点用。。
回复

使用道具 举报

发表于 2009-9-20 23:16:13 | 显示全部楼层
BJ已经722kb的路过。。
回复

使用道具 举报

发表于 2009-9-21 13:43:27 | 显示全部楼层
cj已经422k的路过。。
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-3 07:19 , Processed in 0.078999 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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