|
|
|
@ -33,7 +33,7 @@ namespace Compiler
|
|
|
|
|
{
|
|
|
|
|
extensions.registerInstruction ("aiactivate", "c/l", opcodeAIActivate,
|
|
|
|
|
opcodeAIActivateExplicit);
|
|
|
|
|
extensions.registerInstruction ("aitravel", "fff/l", opcodeAiTravel,
|
|
|
|
|
extensions.registerInstruction ("aitravel", "fff/lx", opcodeAiTravel,
|
|
|
|
|
opcodeAiTravelExplicit);
|
|
|
|
|
extensions.registerInstruction ("aiescort", "cffff/l", opcodeAiEscort,
|
|
|
|
|
opcodeAiEscortExplicit);
|
|
|
|
@ -180,7 +180,7 @@ namespace Compiler
|
|
|
|
|
extensions.registerFunction ("getjournalindex", 'l', "c", opcodeGetJournalIndex);
|
|
|
|
|
extensions.registerInstruction ("addtopic", "S" , opcodeAddTopic);
|
|
|
|
|
extensions.registerInstruction ("choice", "j/SlSlSlSlSlSlSlSlSlSlSlSlSlSlSlSlSlSlSlSlSlSlSlSl", opcodeChoice);
|
|
|
|
|
extensions.registerInstruction("forcegreeting","",opcodeForceGreeting,
|
|
|
|
|
extensions.registerInstruction("forcegreeting","X",opcodeForceGreeting,
|
|
|
|
|
opcodeForceGreetingExplicit);
|
|
|
|
|
extensions.registerInstruction("goodbye", "", opcodeGoodbye);
|
|
|
|
|
extensions.registerInstruction("setreputation", "l", opcodeSetReputation,
|
|
|
|
@ -422,7 +422,7 @@ namespace Compiler
|
|
|
|
|
|
|
|
|
|
for (int i=0; i<numberOfDynamics; ++i)
|
|
|
|
|
{
|
|
|
|
|
extensions.registerFunction (get + dynamics[i], 'f', "",
|
|
|
|
|
extensions.registerFunction (get + dynamics[i], 'f', "x",
|
|
|
|
|
opcodeGetDynamic+i, opcodeGetDynamicExplicit+i);
|
|
|
|
|
|
|
|
|
|
extensions.registerInstruction (set + dynamics[i], "f",
|
|
|
|
@ -510,8 +510,8 @@ namespace Compiler
|
|
|
|
|
extensions.registerFunction ("pcexpelled", 'l', "/S", opcodePcExpelled, opcodePcExpelledExplicit);
|
|
|
|
|
extensions.registerInstruction ("pcexpell", "/S", opcodePcExpell, opcodePcExpellExplicit);
|
|
|
|
|
extensions.registerInstruction ("pcclearexpelled", "/S", opcodePcClearExpelled, opcodePcClearExpelledExplicit);
|
|
|
|
|
extensions.registerInstruction ("raiserank", "", opcodeRaiseRank, opcodeRaiseRankExplicit);
|
|
|
|
|
extensions.registerInstruction ("lowerrank", "", opcodeLowerRank, opcodeLowerRankExplicit);
|
|
|
|
|
extensions.registerInstruction ("raiserank", "x", opcodeRaiseRank, opcodeRaiseRankExplicit);
|
|
|
|
|
extensions.registerInstruction ("lowerrank", "x", opcodeLowerRank, opcodeLowerRankExplicit);
|
|
|
|
|
|
|
|
|
|
extensions.registerFunction ("ondeath", 'l', "", opcodeOnDeath, opcodeOnDeathExplicit);
|
|
|
|
|
extensions.registerFunction ("onmurder", 'l', "", opcodeOnMurder, opcodeOnMurderExplicit);
|
|
|
|
@ -536,10 +536,10 @@ namespace Compiler
|
|
|
|
|
extensions.registerInstruction("setpos","cf",opcodeSetPos,opcodeSetPosExplicit);
|
|
|
|
|
extensions.registerFunction("getpos",'f',"c",opcodeGetPos,opcodeGetPosExplicit);
|
|
|
|
|
extensions.registerFunction("getstartingpos",'f',"c",opcodeGetStartingPos,opcodeGetStartingPosExplicit);
|
|
|
|
|
extensions.registerInstruction("position","ffff",opcodePosition,opcodePositionExplicit);
|
|
|
|
|
extensions.registerInstruction("positioncell","ffffc",opcodePositionCell,opcodePositionCellExplicit);
|
|
|
|
|
extensions.registerInstruction("placeitemcell","ccffff",opcodePlaceItemCell);
|
|
|
|
|
extensions.registerInstruction("placeitem","cffff",opcodePlaceItem);
|
|
|
|
|
extensions.registerInstruction("position","ffffX",opcodePosition,opcodePositionExplicit);
|
|
|
|
|
extensions.registerInstruction("positioncell","ffffcX",opcodePositionCell,opcodePositionCellExplicit);
|
|
|
|
|
extensions.registerInstruction("placeitemcell","ccffffX",opcodePlaceItemCell);
|
|
|
|
|
extensions.registerInstruction("placeitem","cffffX",opcodePlaceItem);
|
|
|
|
|
extensions.registerInstruction("placeatpc","clflX",opcodePlaceAtPc);
|
|
|
|
|
extensions.registerInstruction("placeatme","clflX",opcodePlaceAtMe,opcodePlaceAtMeExplicit);
|
|
|
|
|
extensions.registerInstruction("modscale","f",opcodeModScale,opcodeModScaleExplicit);
|
|
|
|
|