Might & Magic II / Event opcodes

VM · 0x17494 / 0x1750C

Event opcodes

Matches remake EventRuntime::dispatchOp. 0xFF ends; ≥0x33 aborts.

OpargcSemantics
000SCRIPT_ABORT
011show text
021text block
031tall text
041door label
051popup
061signpost
070wait SPACE
080wait key
090Y/N → cond
0A0Y/N
0B2signboard .anm
0C2map transition
0D1play_sound_seq
0E1selector
0F0end script
10varskip if cond
11varskip if !cond
1212fixed encounter
1310random encounter
140clear event bit
153party field test
162item scan
172load var
184field write
194give item
1A2store var
1B1cond threshold
1C1rng → cond
1D1audio wait
1E1busy-wait
1F6party effect
206party effect
213patch map tile
222era range
232day gate
242gold pay LE
252gems pay BE
26/270pick member
282consume item
290abort
2A14found-item buf
2Bvarskip if victory
2C1word counter
2D2class/sex/race
2E2OR class field
2F0read answer
3010password
313damage
321title nibble count