- 积分
- 13881
- 威望
- 76
- 魅力
- 83
- 经验
- 9268
- 热心度
- 5
- 注册时间
- 2009-4-9
- 最后登录
- 2024-8-21
- 主题
- 282
- 回帖
- 2455
- 精华
- 7
- 阅读权限
- 120
该用户从未签到
版主
- 积分
- 13881
|
!!BM#:XXXX; Check/Set/Get some parameters of a stack of monsters
# - number of a stack (0...41).
Usually it is used like 0...20 for a first (0) player and 21...41 for a second (1) player. (是指对战双方吗,但这个0-20到底代表哪些呢?)
A$; Attack with bonuses (攻击加成?不知道具体效果是什么啊)
B$; Number of monsters in the stack (at the beginning of the battle). (战斗开始时的怪物数量?这有什么意义)
C#1/#2/#3/#4/#5; Cast a spell
#1 - spell number (Format SP)
#2 - position to cast
#3 - Monster skill level (0...3)
#4 - Hero (???) Spell power (0...3)
#5 - Check 4 Target Monster existing (alive)
Note: Parameter 5 must be a 1. This tells it to check if the target stack is alive (not wiped out) before casting, otherwise it will crash if it tries to cast on an invalid target. For the resurrection spells you might want to try a 0 here so that they can be used to revive dead stacks
D$; Defence with bonuses
E$; Spell numbers (not a number of a spell)
Comments:
This is the number of times remaining that this stack can cast its spell this combat. So Archangels will start with this value set to 1; after they Resurrect something, this will be 0.
For BG triggers, the value changes after the trigger for them casting the spell.
F$; Monster flag (as for MA:X)
Comments
Four of the previously unknown MA:X values are used to handle
the flow of combat:
0x01000000 = 16777216 - set if this stack has had morale this round
0x02000000 = 33554432 - set if this stack is waiting
0x04000000 = 67108864 - set if this stack is done acting for this round
0x08000000 = 134217728 - set if this stack is defending
0x00400000 = 4194304 - set if the stack is summoned (vanishes when killed)
0x00800000 = 8388608 - set if the stack is a clone (blue colour and 1 hit kills)
0x00C00000 = 12582912 - set for a stack that is created by the Clone spell. This is the sum of the bits above (summon) + (clone).
To check these bits, use BR:F, then use VR:& with the value corresponding to the bit you're interested in. So:
!!BRx16:F?i; [read flags]
!!VRi:&33554432; [just look at waiting bit]
!!IF&i>0:M^This stack is waiting.^;
G#/$1/$2; Set/check/get active spell parameters
# - Spell number (Format SP)
$1 - Set/check/get duration (0=not applied)(魔法持续时间,至少为1,但这和下面的power值关联么?)
$2 - Set/check/get a power (power代表魔法的具体威力吗?)
H$; Hit points
I$; Side index as for heroes (0:left, 1:right) (这个完全不知道什么意思)
J?$; Get or check for number of active spells
K#; Strike a monster with #damage points
L$; Hit points lost by the next monster in the stack
M#1/#2/#3; Apply a spell to the monster
#1 = number of spell (See Format SP)
#2 = duration in turns
#3 = level of skill (0-no, 1-basic, 2-advanced, 3-expert)
Comments:
If you cast a spell that a monster already has, it will be ignored. But you can use "Dispel" spell :-)
In format SP, the special monster abilities aren't listed, but some were determined through testing:
70. Stone
71. Poison
72. Bind
73. Disease
74. Paralyze
75. Age
You can set those 6 fine with BR:M, except that a creature with Bind on it will never get to move (duration is ignored), and a Poisoned creature doesn't take damage in the first round of combat. And of course there is no graphic to show the condition being caused, but the condition itself is displayed correctly and works fine - a Stoned creature looks like it's made of stone and doesn't get to act, etc.
You can set any other spell with BM:M, even ones that have no meaning in combat - for example you can give a creature "summon boat" for 3 turns.
The graphic will show up when you right-click on the creature, and be listed as "summon boat." The creature will have a green number-of-creatures (indicating it's assumed to be a friendly spell), except for a few spells that show up as red (magic arrow and implosion were two).
Additionally spell numbers from 76 on appear to be used for creature abilities that have a picture and effect but don't permanently affect the target (i.e. aren't displayed when you right click on the creature later). You can set these for creatures with BR:M, but it either shows no picture (but shows the name if you put the mouse over the empty square), or crashes when you look at the creature (and it's not consistent - usually it crashes, but sometimes you see a blank square).
And if you use BG:C to try to "cast" one of these spells, it either does nothing or crashes. However I worked out a few names anyway, and perhaps they'll be useful to know eventually:
76. Death Cloud
77. Thunderbolt
78. ?
79. Death Stare
80. Acid Breath
N$; Number of monsters in the stack (current).
Comments:
A stack of Vampire Lords has 100 initially, and grows to 120. 10 are killed, but the remaining 110 do over 400 damage. Does the stack return to 120?
There is 3 numbers:
N1. Current number.
N2. Number before current attack (equal to N1 if this stack attacks)
N3. Number at the beginning of the battle.
Vampire will always grow no more than N3. Playing with these 3 numbers, you can get different results.
O$; Number of a (hero's) army slot (0...6,-1)
Comments:
If O$ sets to -1, the stack will not appear in (hero's) army after the battle (summoned creatures).
If O$ sets to -1, the stack will not appear in (hero's) army
after the battle (summoned creatures).
看的很晕,还没找魔法威力和怪物数量相关的内容,大师们出手吧
[ 本帖最后由 titanzwh 于 2009-10-26 16:31 编辑 ] |
|