Commit Graph

293 Commits (0.7.0)

Author SHA1 Message Date
Marc Zinnschlag b1b0877122 allow additional numeric argument for AiFollow and ignore it 11 years ago
Marc Zinnschlag bfb0e62c4a ignore additional string argument after enable/disable 11 years ago
Marc Zinnschlag 61626e90da allow additional string argument for stopcombat and addspell (ignored) 11 years ago
Marc Zinnschlag 6a5d88b640 ignore stray else and endif in scripts 11 years ago
Marc Zinnschlag 697bda6371 allow (and discard) explicit reference on instructions that do not accept explicit references 11 years ago
Marc Zinnschlag f26aa4f645 fixed while loop implementation 11 years ago
Emanuel Guevel 8c8f4cd420 Fix typo 11 years ago
Marc Zinnschlag 5c0071f320 fixed spelling of an error message 11 years ago
Marc Zinnschlag 3b990795c4 added access to remote access of local variables of global scripts 11 years ago
Marc Zinnschlag 3147aebf75 factored out declaration parser 11 years ago
Marc Zinnschlag 2b2ac6f62b allow declaration of local variables with keywords as names 11 years ago
Marc Zinnschlag 32860a05e3 added dummy implementations for getPcInJail and getPcTraveling 11 years ago
Marc Zinnschlag 914ab1b8ab allow 'x' instead of 'getjournalindex x' 11 years ago
Marc Zinnschlag cd9b137129 allow elseif without matching if (grrrrr) 11 years ago
Marc Zinnschlag 8bcdf54570 added warning mode to script compiler error handler 11 years ago
scrawl 03cf383be7 Merge branch 'master' of https://github.com/zinnschlag/openmw into savedgame
Conflicts:
	apps/openmw/mwgui/referenceinterface.cpp
	apps/openmw/mwmechanics/actors.cpp
	apps/openmw/mwmechanics/mechanicsmanagerimp.cpp
	apps/openmw/mwmechanics/mechanicsmanagerimp.hpp
	apps/openmw/mwscript/cellextensions.cpp
	apps/openmw/mwworld/cells.cpp
	apps/openmw/mwworld/cells.hpp
	apps/openmw/mwworld/cellstore.cpp
	apps/openmw/mwworld/store.cpp
	apps/openmw/mwworld/worldimp.cpp
11 years ago
Marc Zinnschlag 3e58eb34e4 Merge remote-tracking branch 'sergeyshambir/startcombat'
Conflicts:
	apps/openmw/mwscript/docs/vmformat.txt
11 years ago
scrawl 6f9113fe88 Add preliminary implementation of PayFine, PayFineThief and GoToJail instructions 11 years ago
scrawl 7b33f6f2ac Detect crime of sleeping in other NPC's beds. ShowRestMenu needs to support an explicit/implicit reference for this. 11 years ago
Sergey Shambir d5a0ff17fd MWScript: updated vmformat.txt, changed opcodes to fix sequence.
Opcodes for StartCombat, StopCombat, GetTarget now follow the last
previous opcode.
11 years ago
Sergey Shambir 5c7e39a92f Implemented script commands StartCombat, StopCombat, GetTarget.
Also renamed one field of AIWander class because it's not longer
unknown.
11 years ago
scrawl 62774fcc4a Merge branch 'master' into HEAD
Conflicts:
	apps/openmw/mwbase/world.hpp
	apps/openmw/mwinput/inputmanagerimp.cpp
	apps/openmw/mwmechanics/actors.cpp
	apps/openmw/mwworld/worldimp.cpp
	apps/openmw/mwworld/worldimp.hpp
	components/esm/loadtes3.cpp
11 years ago
scrawl b3764c504a Implement GetPcJumping instruction 11 years ago
scrawl 2a7d610f87 Implement GetSpellReadied instruction 11 years ago
scrawl 55c5d7cee4 Implement Resurrect instruction 11 years ago
scrawl b4230f716e Implement RemoveEffects instruction 11 years ago
scrawl 7d8ca91286 Implement RemoveSpellEffects instruction 11 years ago
scrawl 366801f3d5 Implement explodeSpell instruction (like Cast, with caster = target) 11 years ago
scrawl 93e1a2df73 Implement Cast script instruction (shrines work now) 11 years ago
Lukasz Gromanowski 1ce4663065 Updated compiler opcodes for COE, and setHello.
Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
11 years ago
Lukasz Gromanowski 50b6e828cc Added asserts in Interpreter::installSegmentX methods.
Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
11 years ago
Marc Zinnschlag 3590fa40bd store global script state in saved game files 11 years ago
scrawl 9f5ff033d7 Handle the "GetLOS" alias for GetLineOfSight 11 years ago
scrawl 58dce88c7d Handle the "tai" alias for ToggleAI 11 years ago
gus dff3cf162d ToggleAI script instruction 11 years ago
gus d587f3c946 Merge branch 'master' of https://github.com/zinnschlag/openmw.git into AICombat
Conflicts:
	apps/openmw/mwmechanics/actors.cpp
	apps/openmw/mwscript/docs/vmformat.txt
11 years ago
Emanuel Guevel 496f786c2a Implement Disable/EnableLevitation script functions
Totally copied on Disable/EnableTeleporting implementation.
Thanks KittyCat!
11 years ago
gus 46a734852b adding script instruction getLOS + some test about AI 11 years ago
mckibbenta 8998b90e8b initial do-nothing implementation; registered opcode 12 years ago
Chris Robinson 73437dfdca GetEffect can accept an effect ID string as well 12 years ago
Chris Robinson 30973352e8 Implement ShowVars (SV) console function 12 years ago
Chris Robinson db1036e5e5 Handle SetWerewolfAcrobatics 12 years ago
Chris Robinson 2bac4566c0 Merge remote-tracking branch 'PotatoesMaster/werewolf' into werewolf
Conflicts:
	apps/openmw/mwmechanics/actors.cpp
	apps/openmw/mwscript/statsextensions.cpp
12 years ago
Alex b9579e085f cleanup 12 years ago
Alex c3ca5b7c32 mild cleanup 12 years ago
Alex de1f423bd7 initial move of script opcodes and registerExtensions functions to components/compiler 12 years ago
scrawl 7dc30a01cd Some changes suggested by cppcheck 12 years ago
Marc Zinnschlag 4a75c7dcc0 allow backticks in names 12 years ago
Marc Zinnschlag a2aa3aaa0e workaround for - in names 12 years ago
Miroslav Puda 7149439ace Replacement of empty() method by assertion. 12 years ago
Miroslav Puda d5689730eb Removal of unnecessary variable.
empty variable duplicates empty() method of std::string. Check for empty value should be replaced by assert since it does not makes much sense to call scanInt with null character.
12 years ago
Marc Zinnschlag e2620a1edf Issue #694: allow float literals starting with . 12 years ago
scrawl f0354ea04c Fix member variable case problem 12 years ago
Marc Zinnschlag fe038cef03 turned redeclartion of local variables from an error into a warning 12 years ago
Marc Zinnschlag 63407a662c allow <== and >== as alternative for <= and >= in scripts 12 years ago
Marc Zinnschlag 90b38cbfbe fixed parsing of end statements in scripts with IDs matching keywords 12 years ago
Marc Zinnschlag 6d3a2cd5a0 added comment token (for use in syntax colouring) 12 years ago
Marc Zinnschlag 74145410f2 basic syntax highlighting in script subview 12 years ago
Marc Zinnschlag fd0aa1a4b8 Issue #685: Treat : as a whitespace 12 years ago
Marc Zinnschlag 4711135e7f workaround for faulty endif in Morrowind scripts 12 years ago
Marc Zinnschlag 46bde604f9 Issue #601: unary minus was interpreted as binary minus when used in an argument list without comma 12 years ago
Marc Zinnschlag 151ecaad04 workaround for garbage after an end statement 12 years ago
eduard 2dc0064cc2 more string lowercase 12 years ago
guidoj 0549e949ba Mostly removal of unnecessary #include's and a little clean up 13 years ago
Marc Zinnschlag 50d81e99fb possible fix for script execution bug 13 years ago
Marc Zinnschlag fe85de5ea7 Issue #181: assignment to member variables 13 years ago
Marc Zinnschlag 10b27e582b Issue #181: various fixed to member variable access 13 years ago
Marc Zinnschlag 8b19de17b6 Iisue #181: enable member variable access from expressions in console 13 years ago
Marc Zinnschlag 6c5b21fa42 Issue #181: Member variable access in expressions; error reporting fix for the previous commit 13 years ago
Marc Zinnschlag d1441d79e7 Issue #181: added code generation for member variable access 13 years ago
Marc Zinnschlag 050559d2e2 Issue #181: added member variable access token 13 years ago
Marc Zinnschlag 6ec2a2091c Issue #305: Allow the use of = as a synonym for == 13 years ago
scrawl c85c794c86 fixed some cppcheck issues 13 years ago
Marc Zinnschlag 01500e979a another fix for optional arguments 13 years ago
Marc Zinnschlag d9677cb33e fixed problem with parsing optional string arguments 13 years ago
Marc Zinnschlag 187b8e58d6 fixed handling of optional instruction/function arguments; removed choice workaround 13 years ago
Marc Zinnschlag 5b378e820d warning level adjustments and some related fixes 13 years ago
Marc Zinnschlag 861dc6a16e redirecting output of expression evalutation to new report channel 14 years ago
Marc Zinnschlag 6848115c18 backend for tab completion: keywords 14 years ago
Pieter van der Kloet dd4d022301 Converted all tabs to four spaces 14 years ago
Marc Zinnschlag 044bf0ab48 fixed parsing explicit references in the body of control structures 15 years ago
Marc Zinnschlag c18e83d7c0 extended scripting extensions to code segment 3 (instructions and functions with optional arguments) 15 years ago
Marc Zinnschlag b3cc3073a3 changed encoding of segment 3 opcodes (increasing the number of opcodes, while reducing the width of the argument) 15 years ago
Marc Zinnschlag f4e79a48f0 implemented optional arguments 15 years ago
Marc Zinnschlag 276a9db6f7 added missing button implementation for MessageBox 15 years ago
Marc Zinnschlag 0d4f2ab3ef disabled escape sequences in script strings (doesn't work with Windows paths) 15 years ago
Marc Zinnschlag cf7150e585 implemented naked expressions in lineparser (used in console; result is send through messagebox interface) 15 years ago
Marc Zinnschlag 01edd8deb5 compiler exception class fixes 15 years ago
Marc Zinnschlag 0f742ce7f9 even better error checking for extensions with explicit references 15 years ago
Marc Zinnschlag 211b723137 better error checking for extensions with explicit references 15 years ago
Marc Zinnschlag 71c710f9f6 enhanced compiler extenion system to support new instructions and functions with explicit references 15 years ago
Marc Zinnschlag 69e607e140 implemented getdistance with explicit references 15 years ago
Marc Zinnschlag c37b007be0 added verification for explicit references (check if the given ID exists) 15 years ago
Marc Zinnschlag d4ac3b506e implemented enable, disable and getdisabled with explicit references 15 years ago
Marc Zinnschlag 5a1dd4fedd fixed fileparser bug (empty line before the initial begin statement were not handled correctly 15 years ago
Marc Zinnschlag 592fa84e2d added Enable, Disable, GetDisabled 15 years ago
Marc Zinnschlag 9d73718ec1 added GetSecondsPassed 15 years ago
Marc Zinnschlag 85cd744f44 fixed a stringparser bug 15 years ago
Marc Zinnschlag b28a6fd7b8 modified parser to skip over button arguments in an messagebox instruction 15 years ago
Marc Zinnschlag 34b824cb70 implemented GetDistance function 15 years ago
Marc Zinnschlag 5786addab5 allowed the use of keywords as script names (*sigh*) 15 years ago
Marc Zinnschlag a61b2c39f0 added scriptrunning/startscript/stopscript; sorted out more case problems 15 years ago
Marc Zinnschlag 185f8bd56d added random function; global variable fix 15 years ago
Marc Zinnschlag f9c1548f80 added menumode script function; added global variable handling in compiler and interpreter (openmw context still ignores global variables) 15 years ago
Marc Zinnschlag 5d46fc869c added missing sound script functionality; various script-related bug-fixes 15 years ago
Marc Zinnschlag 32eafaa301 added custom function handling (compiler) 15 years ago
Marc Zinnschlag a1beffc3cd added compiler extensions class 15 years ago
athile 5825af45c3 Visual Studio 2010 compile fixes 15 years ago
athile 056194baa2 Merge upstream 15 years ago
Nicolay Korslund d03a4c2c7c Fixed a couple more line endings 15 years ago
Marc Zinnschlag 804aed6298 added basic message box formatting 15 years ago
Marc Zinnschlag aeb41105c4 added comparison operators 15 years ago
Marc Zinnschlag 1674d406dc made usage of comma as argument separator optional (largely untested, because we don't have anything that takes more than one argument) 15 years ago
Marc Zinnschlag bf55880ce9 a bit of refactoring 15 years ago
Marc Zinnschlag 46fab68d44 implemented while loops 15 years ago
Marc Zinnschlag 69342f320d added if control structure 15 years ago
Marc Zinnschlag 73f9436ed9 fixed round brackets parsing bug 15 years ago
Marc Zinnschlag ed92ffcf89 added local variable usage in expressions 15 years ago
Marc Zinnschlag fac8fb8fcb added return and messagebox statements (messagebox does neither formating nor buttons yet) 15 years ago
Marc Zinnschlag 8bb2a6039d modified comma handling to be morse consistent with original script language 15 years ago
Marc Zinnschlag 5fb4abae4f added function parsing (only one function so far) 15 years ago
Marc Zinnschlag c8c5ef5467 added bracket parsing 15 years ago
Marc Zinnschlag 48f6ad0f89 added basic arithmetic 15 years ago
Marc Zinnschlag ca8002e533 added parsing for signed integers and floats 15 years ago
Marc Zinnschlag ab33234027 prepared expression parser for implementation of more complex expressions 15 years ago
Marc Zinnschlag 6ebe2cff5f extended expression parser for non-negative floats 15 years ago
Marc Zinnschlag bceb7ebcbd reimplemented expression parsing as a separate parser (still only handling non-negative integers) 15 years ago
Marc Zinnschlag 10cb9d3dab made local variable names case-insensitive 15 years ago
Marc Zinnschlag fdcd34941b added parsing for set statement (only integer values so far); added code generator 15 years ago
Marc Zinnschlag 5cf3264bd3 added literal container and reworked output container handling 15 years ago
Marc Zinnschlag ba847ae9d8 write local variable declarations into a separate file 15 years ago
Marc Zinnschlag a3ad61b4d0 write code file after successfull parsing 15 years ago
Marc Zinnschlag 0cfeab622d added storage class for local variable declarations; added checks for variable re-declaration 15 years ago
Marc Zinnschlag 21e0182ae2 added skip parser for skipping faulty lines 15 years ago
Marc Zinnschlag bff0855af0 added parsing for local variable declarations 15 years ago
Marc Zinnschlag 16f6f27a90 added line parser (doesn't parse anything yet) 15 years ago
Marc Zinnschlag fda7077cf2 bug-fix: comments were eating up newlines 15 years ago
Marc Zinnschlag 8930134d82 exception class fix 15 years ago
Marc Zinnschlag aa99a0dd56 added basic script parser (can only parse empty script bodies for now) 15 years ago
Marc Zinnschlag de8a651df4 improved error handling 15 years ago
Marc Zinnschlag a068ca78d7 replaced dummy parser with top level file parser 15 years ago
Marc Zinnschlag d20e850d31 -> wasn't properly translated into a token 15 years ago
Marc Zinnschlag ddcbc8cd62 added tokenizing of MW scripts 15 years ago