scrawl
7252cb63a6
Fix cppcheck issues
2014-09-26 17:48:14 +02:00
Marc Zinnschlag
2e355df8b3
removed function ScriptManager::getLocalIndex (was redundant and was also depending on precompiled scripts)
2014-07-25 07:59:50 +02:00
Marc Zinnschlag
27c84d6cb7
the reference for a targeted script is now determined when needed instead of at the start of the script execution
2014-07-17 13:36:55 +02:00
Marc Zinnschlag
75ab8de3d2
added opcode for running scripts with explicit references (targeted scripts)
2014-07-15 13:26:04 +02:00
scrawl
2ce8323a42
Fix getDistance not detecting references in inactive cells properly
2014-06-16 20:05:47 +02:00
scrawl
797134aa51
Handle activation scripts in AiActivate ( Fixes #1478 )
2014-06-13 02:26:52 +02:00
scrawl
e68600eda2
Make Activate instruction work properly even when onActivate was not called in the same frame.
...
There are two major differences to the old implementation:
- Activate can now be called on its own, e.g. in the console. In Vanilla this appears to be a no-op, so it is unlikely to be used and the potential for breakage is low.
- The Action to execute is now determined when Activate is called, not when OnActivate is called. This however makes sense, since there may be a time difference between the two, and the object (or the player) could have changed in the meantime, requiring a different Action.
Fixes #1166 and #1346 .
2014-05-28 19:23:50 +02:00
Marc Zinnschlag
3b990795c4
added access to remote access of local variables of global scripts
2014-02-10 14:45:55 +01:00
scrawl
768d9f7237
Scripting: Add an optional 'required' parameter to getReference (default: true). If required=false, it will not throw an exception if there's no reference. Fixes PcExpell not working without a reference like it's supposed to, and makes the code nicer for some others (use required=false instead of catching the exception)
2014-01-09 02:21:03 +01:00
scrawl
c07b3ea61d
Text defines for npc race, class, and faction should use the translated name
2013-03-17 04:20:30 +01:00
Tom Mason
8ac8fdff47
implemented all text defines except a few for keybindings that don't exist yet
2012-12-21 18:09:31 +00:00
Tom Mason
f2c6907244
Added in text escape sequences for dialogue, messageboxes and books. builtins are placeholders, global variables work
2012-12-20 23:16:34 +00:00
Marc Zinnschlag
4c39fefd1e
Issue #107 : World is accessed only through the interface class from now on; some include cleanup
2012-07-03 12:30:50 +02:00
Marc Zinnschlag
72fca40090
Issue #181 : member variable access in interpreter context
2012-06-07 11:59:45 +02:00
Marc Zinnschlag
35f478071e
Issue #255 : deleted the old environment class and using the new one instead
2012-04-23 15:27:03 +02:00
Marc Zinnschlag
125319c441
splitting off console output from messageBox channel
2011-04-26 21:48:13 +02:00
Marc Zinnschlag
e4a0702bb4
added journal-related script instructions
2011-04-04 14:49:26 +02:00
Jan Borsodi
1907aeb6c6
The game mode is now properly restored once a dialog is finished. Previously the game mode was only set in the window manager but it has to go through the input manager firs to get correct input state. Also updated the gui script commands to also use the input manager and not the window manager.
...
At some point the gui mode code should be moved to a class that handles all game mode (engine?).
2010-09-15 14:48:19 +02:00
Nicolay Korslund
8067d62800
Decoupled SoundManager from Interpreter::Context
2010-08-12 16:29:22 +02:00
Marc Zinnschlag
7ba6bdb56c
prepared InterpreterContext for activation implementation
2010-08-03 22:43:53 +02:00
Nicolay Korslund
c84672a560
Added MyGUI to OpenMW, fully working (with events and script hooks)
2010-07-17 19:38:32 +02:00
Marc Zinnschlag
8134c5b760
integrated CellStore pointer into Ptr class
2010-07-10 13:19:04 +02:00
Marc Zinnschlag
69e607e140
implemented getdistance with explicit references
2010-07-09 20:55:39 +02:00
Marc Zinnschlag
d4ac3b506e
implemented enable, disable and getdisabled with explicit references
2010-07-09 19:32:17 +02:00
Marc Zinnschlag
592fa84e2d
added Enable, Disable, GetDisabled
2010-07-09 16:07:03 +02:00
Marc Zinnschlag
6b3ff8a516
constness fixes
2010-07-07 20:14:50 +02:00
Marc Zinnschlag
0efe4742a6
added script-gui interface and gui-related script instructions
2010-07-07 20:12:00 +02:00
Marc Zinnschlag
9d73718ec1
added GetSecondsPassed
2010-07-06 12:06:50 +02:00
Marc Zinnschlag
f5a70abd4b
added OnActivate
2010-07-06 12:05:48 +02:00
Marc Zinnschlag
34b824cb70
implemented GetDistance function
2010-07-05 12:30:45 +02:00
Marc Zinnschlag
a61b2c39f0
added scriptrunning/startscript/stopscript; sorted out more case problems
2010-07-04 16:00:32 +02:00
Marc Zinnschlag
f9c1548f80
added menumode script function; added global variable handling in compiler and interpreter (openmw context still ignores global variables)
2010-07-04 12:29:28 +02:00
Marc Zinnschlag
4482884eb5
implemented global script execution
2010-07-04 10:43:34 +02:00
Marc Zinnschlag
eeeb9b09f8
identify LiveCellRefs by ptr instead of render handle
2010-07-03 17:59:30 +02:00
Marc Zinnschlag
3fae68b403
added unifying LiveCellRef pointer class
2010-07-03 17:46:55 +02:00
Marc Zinnschlag
d51e6fb7c4
second part of refactoring
2010-07-03 15:41:20 +02:00
Marc Zinnschlag
f8cb4c2502
moved sound manager from world to engine (first step of another round of refactoring)
2010-07-03 15:17:02 +02:00
Marc Zinnschlag
c12752df4d
added sound manager skeleton and sound script functions
2010-07-03 15:04:00 +02:00
Marc Zinnschlag
f0c492ae22
added CellChanged script function
2010-07-03 12:12:13 +02:00
Marc Zinnschlag
474b412b47
implemented local script execution
2010-07-02 18:08:00 +02:00