Marc Zinnschlag
c97845d35d
better script compiler diagnostics
10 years ago
Marc Zinnschlag
984b586bb1
fix for implicit references
10 years ago
Marc Zinnschlag
8afdf0f46b
dagoth fix
10 years ago
scrawl
69bbbefc09
setDynamic workaround for broken endgame scripts ( Fixes #2016 )
10 years ago
Marc Zinnschlag
eb45793eab
Merge remote-tracking branch 'thoronador/fix-numeric-limits-usage'
10 years ago
Thoronador
4d62541b62
fix usage of numeric_limits static functions min() and max()
...
Functions min() and max() of std::numeric_limits<T> are static
and can therefore be accessed via class name and :: operator.
10 years ago
scrawl
8cb09e89ed
Make spells cast by scripts always succeed ( Fixes #1993 )
10 years ago
scrawl
8097d9801d
Fix HasSoulgem function to return number of soulgems
10 years ago
scrawl
c4fa671381
Don't allow raising faction rank if the next rank has no name ( Fixes #1975 )
10 years ago
scrawl
c010c28337
Implement ToggleWorld instruction
10 years ago
scrawl
7252cb63a6
Fix cppcheck issues
10 years ago
scrawl
603e558fb7
Fix broken getCollidingPc / getCollidingActor (cppcheck)
10 years ago
scrawl
04c79d5f1e
Fix case issue when setting companion's profit on the script
10 years ago
Marc Zinnschlag
b5d5eadf79
Merge remote-tracking branch 'scrawl/master'
10 years ago
scrawl
f3d4b63aaf
Fix AI moving load doors and throw an exception when trying to do this ( Fixes #1907 )
10 years ago
MiroslavR
d64be1c092
Use CellId::mWorldspace to find out whether objects are in the same worldspace
10 years ago
MiroslavR
621e81fa7d
Make getdistance return maximum value only if the given objects are in different worldspaces ( Fixes #1895 )
10 years ago
scrawl
457b96a8af
Reset bounty and crime immediately when going to jail ( Fixes #1892 )
10 years ago
scrawl
628600a0a5
Make PlaceItem place the item in the player's current worldspace
10 years ago
scrawl
267cf4e140
Implement ResetActors script instruction ( Fixes #1859 )
10 years ago
Marc Zinnschlag
52f6a2ec7b
remote local variable access was always using variable with index 1 instead of the index specified by the access request ( Fixes #1739 )
11 years ago
Marc Zinnschlag
80d39780ae
same fix for a couple of additional instructions
11 years ago
Marc Zinnschlag
7de49a66e2
fix for PCJoinFaction and for getPcRank without explicit reference
11 years ago
Marc Zinnschlag
0d8bfbfa9b
getpcrank did not read the explicit reference in some cases ( Fixed #1767 )
11 years ago
scrawl
2db50da8dd
Implement magic effect script instructions (Feature #1489 )
11 years ago
scrawl
d8943aef2f
Encapsulate magic effect magnitude (Feature #1489 )
11 years ago
scrawl
36ba56d037
Make Position instruction move non-player actors within their cell only ( Fixes #1791 )
11 years ago
Marc Zinnschlag
33c36bf0df
Merge remote-tracking branch 'scrawl/master'
11 years ago
Digmaster
a32ab842ae
Added ForceJump/ForceMoveJump commands
11 years ago
scrawl
eb1888a540
Fix GetPcRank and PcExpelled not accepting Faction IDs properly ( Fixes #1709 )
11 years ago
scrawl
a18cec7c8e
Use a MyGUI widget to render the screen fader ( Fixes #1741 , Fixes #1719 )
11 years ago
scrawl
b58b8c6f8f
Adjust player position to ground when using a door marker, even if the player is levitating ( Fixes #1737 )
11 years ago
scrawl
45af34d189
Merge branch 'master' of https://github.com/OpenMW/openmw
11 years ago
scrawl
543bb22e8f
Implement collision script instructions ( Fixes #1111 )
11 years ago
scrawl
4773d754c6
Remove redundant isHostile flag ( Fixes #1652 )
11 years ago
Marc Zinnschlag
c9cd7fb6b7
Merge branch 'scripts'
11 years ago
Marc Zinnschlag
1ca0cc4988
rewrote MWScript::Locals::configure to be independent of precompiled script data
11 years ago
Marc Zinnschlag
a3c4000198
moved call to Globalscripts::addStartup out of the constructor because at the time of construction the environment may not be set up yet to perform this operation
11 years ago
Marc Zinnschlag
87c54adb24
some cleanup
11 years ago
Marc Zinnschlag
9f69db0d69
added missing const to ScriptManager::getLocals
11 years ago
Marc Zinnschlag
2e355df8b3
removed function ScriptManager::getLocalIndex (was redundant and was also depending on precompiled scripts)
11 years ago
scrawl
ca45a63cf7
Close doors instantly when using Lock instruction
11 years ago
Marc Zinnschlag
d87630b41a
blacklisting for scripts in OpenMW
11 years ago
Marc Zinnschlag
6a3ff211b1
automatically get target ID at InterpreterContext construction, if a reference is available
11 years ago
Marc Zinnschlag
27c84d6cb7
the reference for a targeted script is now determined when needed instead of at the start of the script execution
11 years ago
Marc Zinnschlag
dba6a9ebff
run targeted scripts with an implicit reference based on the ID given
11 years ago
Marc Zinnschlag
75ab8de3d2
added opcode for running scripts with explicit references (targeted scripts)
11 years ago
Marc Zinnschlag
e9377ad5c4
include targeted script data in saved games
11 years ago
Marc Zinnschlag
8241ee59c3
modified GlobalScripts data structures to accommodate targeted script data
11 years ago
scrawl
0704fa2b3d
Reset local rotation axis in SetAngle ( Fixes #1630 )
11 years ago
scrawl
df62c06acf
Print exterior grid position in betaComment
11 years ago
scrawl
205e039a39
Allow modCurrent instructions to decrease below zero (Bug #1589 )
11 years ago
scrawl
2506c16bf5
Add a dummy GetStat function returning 0 ( Fixes #1589 )
11 years ago
scrawl
1de406cb6d
Catch exception from invalid scripts during save&load ( Fixes #1590 )
11 years ago
Marc Zinnschlag
604509ac7e
Merge remote-tracking branch 'scrawl/master'
11 years ago
scrawl
3b2358888b
Attempt to fix player position after using coc/coe
11 years ago
scrawl
2451eead8a
Some additional wrapping for faction rank instructions
11 years ago
Marc Zinnschlag
3100206b28
replaced an assert with an exception
11 years ago
scrawl
15b486e149
Don't trigger changed flag if a script with no locals is configured
11 years ago
scrawl
b259c5def2
Make GetFactionReaction garbage argument optional
11 years ago
scrawl
b52977e44c
Add dummy Face implementation for now (Bug #1541 )
11 years ago
scrawl
e23a7694f3
Don't throw exception when using ModDisposition on creatures ( Fixes #1548 )
11 years ago
scrawl
a4ce9d6a7f
Always show the script name when a script fails to compile
11 years ago
scrawl
9a26cf22e6
Implement toggleMenus
11 years ago
scrawl
ad0a182b7e
Improve error message for unknown cells
11 years ago
scrawl
4648524df4
Improve getLOS (use eye level). Also, don't crash when used with non-actors.
11 years ago
scrawl
c3e4160a0a
Don't crash in StatsWindow for invalid faction rank values
...
PcRaiseRank: don't allow to raise rank beyond max rank
11 years ago
scrawl
2477456f99
Implement Murder crimes and OnMurder instruction ( Fixes #1315 )
11 years ago
scrawl
2ce8323a42
Fix getDistance not detecting references in inactive cells properly
11 years ago
scrawl
77388fe2ce
Implement BetaComment instruction (dumps reference info)
11 years ago
scrawl
395f98e476
Fix triggering changed flag for all references when cell is visited
...
The InsertFunctor for cells was calling localRotateObject() for all references which set the mChanged flag in RefData to true.
Also clean up RefData interface slightly.
11 years ago
scrawl
797134aa51
Handle activation scripts in AiActivate ( Fixes #1478 )
11 years ago
scrawl
a54ac579a5
Savegame: Store AiSequence
11 years ago
scrawl
3788fb042e
Implement MenuTest script instruction ( Fixes #1454 )
11 years ago
scrawl
2dd54dbcfc
Implement ClearInfoActor script instruction ( Fixes #1422 )
11 years ago
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 .
11 years ago
scrawl
3e2eed9269
Implement getFactionReaction function
...
Strange bug when using value != 0 for the garbage argument?
11 years ago
scrawl
e266c39c5d
Implement modFactionReaction instruction ( Closes #1347 )
11 years ago
scrawl
578adb4ef6
PcJoinFaction and friends: make sure the given faction exists
11 years ago
scrawl
10d835a55c
Some more missing isInCell checks
11 years ago
scrawl
f3ba31de2d
Merge branch 'master' of https://github.com/OpenMW/openmw
...
Conflicts:
apps/openmw/mwscript/cellextensions.cpp
11 years ago
scrawl
039398c8ae
Basic RefData and CellRef change tracking
...
Wrapped item charge handling in getItemHealth function
11 years ago
cc9cii
4f94a31b54
Fix crash starting a new game.
11 years ago
scrawl
b47b2b84f3
Merge branch 'master' of https://github.com/OpenMW/openmw
...
Conflicts:
apps/openmw/mwdialogue/filter.cpp
apps/openmw/mwgui/waitdialog.cpp
11 years ago
Emanuel Guevel
1e4a854433
Remove static method MWWorld::Class::get(&Ptr)
...
It was just adding a level of indirection to Ptr.getClass().
All the call were replaced by that instead. The number of lines changed
is important, but the change itself is trivial, so everything should be
fine. :)
11 years ago
scrawl
3a7e2f8bb5
Allow invoking Journal instruction with non-existing index
...
This is used by the MG_EscortScholar1 quest.
11 years ago
scrawl
6bd0bbb8df
Do not load (0,0) on new game
11 years ago
Marc Zinnschlag
56c4367c1a
Merge remote-tracking branch 'mrcheko/master'
11 years ago
mrcheko
e1249f6a31
actor handle and id confusing fix
11 years ago
Marc Zinnschlag
f7c89015f9
Merge remote-tracking branch 'scrawl/master'
11 years ago
scrawl
36d9ae17cc
Revert "Change all AI packages (except AiActivate) to use ActorIds"
...
Causes potential infinite loops (AiSequence::fill -> AiPackage() -> getCreatureStats -> ensureCustomData -> ..)
This reverts commit 2e9985c1a3
.
11 years ago
scrawl
028e00c98f
Add missing status report for some toggle commands
11 years ago
Marc Zinnschlag
3b2ba4f6cd
Merge remote-tracking branch 'scrawl/master'
11 years ago
scrawl
2e9985c1a3
Change all AI packages (except AiActivate) to use ActorIds
...
More robust in case the target changes cell or there are multiple targets with the same RefId
11 years ago
slothlife
f33559fead
Fixes for MSVC warnings, less overall changes
...
Kept some fixes from the first round of review. Found out that several
targets weren't being built with the same basic warnings disabled.
Disabled a few warnings for external libraries specifically, rather than
applying them to all targets.
11 years ago
slothlife
c160a04ede
Revert "Fixes for warnings when building with MSVC"
...
This reverts commit 46eb20b98c
.
11 years ago
slothlife
46eb20b98c
Fixes for warnings when building with MSVC
...
Most warnings are innocuous (wrong type-specifier for forward
declarations, conversion of literals into unsigned integers, warnings
about methods optimized out), but I believe actual bugs were revealed in
vartypedelegate.cpp and combat.cpp.
11 years ago
scrawl
dd9117809d
Say an attack phrase when combat starts
...
Move combat start to a helper method
Added some todo comments
11 years ago
scrawl
1fd7a07b5e
Merge branch 'master' of https://github.com/OpenMW/openmw into return
...
Conflicts:
apps/openmw/mwmechanics/aisequence.cpp
apps/openmw/mwmechanics/aiwander.cpp
11 years ago
scrawl
9b36a13821
Feature #1289 : NPCs return to default position
...
Make stationary NPCs return to their previous position once combat/crime AI finishes.
11 years ago
Marc Zinnschlag
3013c34d9b
Merge remote-tracking branch 'scrawl/master'
11 years ago
scrawl
7f37f2c2be
Fixes #1187 : Make GetDistance handle actors in remote cells gracefully
11 years ago
Thomas
885228ec02
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
apps/openmw/mwmechanics/actors.cpp
11 years ago
scrawl
84961d7843
Fixes #1254 : PcRank should return first rank if not in the faction
11 years ago
scrawl
b2119441b9
Fix bug in PcRank / PcNextRank
...
It was using the first faction instead of the actor's faction.
11 years ago
scrawl
27a05027f4
Fixes #1172 : Added basic loading/saving progress bar
...
The progress is not particularly accurate. It simply uses the current / total number of records written/read as indication. Cell records are currently the largest by far, but there is a good chance that could be optimized using a change tracking system.
11 years ago
Thomas
c2127845af
Added onKnockdown command
11 years ago
scrawl
f921f2e7db
Make PcRaiseRank, PcLowerRank and PcJoinFaction properly accept references instead of using the actor that the player talked to last.
...
This also solves a potential crash when no actor has been talked to yet, e.g. immediately after loading a savegame.
11 years ago
Thomas
f6deca7c80
Fixed various issues caused by late-night coding. Also added "unlock" message to unlocked doors
11 years ago
Thomas
61341d4206
Removed mLocked, kept it as "Negative lock level means unlocked"
11 years ago
Thomas
420163d35f
Small changes to lock command (If no valid lockLevel exists, defaults to 100)
11 years ago
Thomas
cac8e52154
Seperated locked and lock level, to allow for relocking doors to previous lock level.
...
The data is stored in the esm as -lockLevel if unlocked; lockLevel if locked. While not tested, it should not present any problems.
11 years ago
Marc Zinnschlag
a91b386381
Merge remote-tracking branch 'jeffreyhaines/master'
11 years ago
Jeffrey Haines
6733a1541e
Fixes to Crime System
...
Victimless crimes were removed because victims may not exist in the
case of stealing items.
Is class now uses case insensitive comparison.
Fixed issue with confiscation of stolen items.
11 years ago
Marc Zinnschlag
86e65944b8
Merge remote-tracking branch 'jeffreyhaines/master'
...
Conflicts:
apps/openmw/CMakeLists.txt
11 years ago
Jeffrey Haines
940c88d2ec
Cleaned up code, implemented crime ids
...
There is a problem with my game freezing. ToggleAi stops my character
11 years ago
Jeffrey Haines
b1abef7a38
Cleaned up code
11 years ago
Jeffrey Haines
58b135a2be
Crime is now checked every frame call
11 years ago
Jeffrey Haines
6f1211dd8d
Moved mWitnesses into Player. resetCrime for paying fine.
11 years ago
Jeffrey Haines
7c0b51fb7e
Ai pursue now controls guards pursuit of crimes
...
Should extend AiActivate in the future
11 years ago
Jeffrey Haines
4037f3705e
Feature 1154 & 73: NPCs react to crime
11 years ago
scrawl
5906d795c0
Refactored video player (now a MyGUI widget)
11 years ago
scrawl
793649c854
ToggleAI: Report current status on toggle
11 years ago
scrawl
c8c0e5de38
Fixed code issues found with unity build. Missing include guards, duplicated functions, ...
11 years ago
cc9cii
b2e3fa70c2
Fix spelling errors in comments.
11 years ago
scrawl
12de0afb03
Feature #50 : Spawn projectiles
...
Fix a bug in copyObjectToCell.
Make actor rotations more consistent.
11 years ago
Bret Curtis
ab224f93c9
remove our stdint.h version that uses boost and force usage of system stdint.h
11 years ago
Marc Zinnschlag
367919200f
moved CellRefList into a separate file
11 years ago
Marc Zinnschlag
b72c1c2c58
encapsulated water level
11 years ago
Marc Zinnschlag
7693f712bc
started making CellStore into a proper class; encapsulated mCell member
11 years ago
Marc Zinnschlag
451e1f413b
instead of using pre-compiled variable lists for remote member access get the variable list from the remote script on the fly
11 years ago
Marc Zinnschlag
d6e212a02b
Merge branch 'master' into script
11 years ago
Marc Zinnschlag
dde4fbd818
allow one more integer argument in RemoveSoulGem and up to 6 more in AiFollow and then throw them all away
11 years ago
Marc Zinnschlag
b3412b7eec
another case fix (remote member access again)
11 years ago
Marc Zinnschlag
dc433a3c09
fixed case handling problem for local variable access
11 years ago
Marc Zinnschlag
388735046f
fixed broken remote member variable access
11 years ago
Emanuel Guevel
8824af30b4
Allow to display message box outside of dialogue window
11 years ago
Emanuel Guevel
70d35da116
Unset selected spell when removed
11 years ago
Marc Zinnschlag
9de2922d22
fixed case problem in remote member variable access
11 years ago
Marc Zinnschlag
3b990795c4
added access to remote access of local variables of global scripts
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
4ee43612f6
added new switch: --script-warn
11 years ago
Marc Zinnschlag
1b5301eec0
Merge branch 'savedgame'
...
Conflicts:
apps/openmw/mwbase/mechanicsmanager.hpp
apps/openmw/mwbase/soundmanager.hpp
apps/openmw/mwgui/mapwindow.hpp
apps/openmw/mwmechanics/actors.cpp
apps/openmw/mwmechanics/mechanicsmanagerimp.hpp
apps/openmw/mwsound/soundmanagerimp.hpp
components/esm/loadcell.cpp
11 years ago
scrawl
23ffb8a4dc
Fixes #1143 : Make getCurrentAiPackage return the package that was run last, not the package that will be run in the next frame.
...
This makes the Mehra Milo script work properly.
11 years ago
mrcheko
fe0268062d
merge with master
11 years ago
scrawl
b1066de81d
Revert "Merge remote-tracking branch 'mrcheko/master'"
...
This reverts commit 4e360136b1
, reversing
changes made to 047bbe43b2
.
Conflicts:
apps/openmw/mwmechanics/aicombat.cpp
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
scrawl
2e6e0fd0a0
Fix GetPcCell bug
11 years ago
scrawl
ea21d8fec3
Fix CreatureTargetted function
11 years ago
scrawl
851a7d5014
Feature #957 : Handle area effects for "on touch" range
11 years ago
scrawl
4e360136b1
Merge remote-tracking branch 'mrcheko/master'
...
Conflicts:
apps/openmw/mwmechanics/aicombat.cpp
apps/openmw/mwmechanics/character.cpp
apps/openmw/mwmechanics/character.hpp
11 years ago
scrawl
589fbbd871
Issue #777 : Create InventoryStore for creatures with weapons/shields
11 years ago
mrcheko
969340d61b
fixed StartCombat script
11 years ago
scrawl
c04a8afc8b
Make sure onPcEquip is also set for Equip script instruction
11 years ago
mrcheko
df4df5b094
fixed weapRange for creatures/startcombat script(?)
11 years ago
mrcheko
f2ad1c18f2
fix merging problem/some logic fixes
11 years ago
scrawl
d544551f61
Added getSkill to Class interface, since creatures also have skills (which are provided by generalized Combat, Magic and Stealth attributes which substitute for the specific skills, in the same way as specialization)
...
Information provided by Hrnchamd.
11 years ago
scrawl
dff67bb0b6
StopCombat: mark as non-hostile
11 years ago
scrawl
da3295d69c
Closes #1106 : Move stance to CreatureStats, since creatures also have separate run/walk animations.
11 years ago
scrawl
d0500e8124
Some unneeded includes cleanup
11 years ago
scrawl
b8583124e0
Correction for RemoveSoulgem instruction
11 years ago
Marc Zinnschlag
3e58eb34e4
Merge remote-tracking branch 'sergeyshambir/startcombat'
...
Conflicts:
apps/openmw/mwscript/docs/vmformat.txt
11 years ago
scrawl
a2ba0dde31
Implemented GoToJail
11 years ago
scrawl
bf6d302fba
Confiscate stolen items when caught
11 years ago
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)
11 years ago
scrawl
6f9113fe88
Add preliminary implementation of PayFine, PayFineThief and GoToJail instructions
11 years ago
scrawl
372cd437d1
Add a utility function for counting items in a container
11 years ago
scrawl
c55f9bd0aa
GetWaterLevel fix (similar to MCP): if there is no water in the cell, return -FLT_MAX to prevent mods from incorrectly thinking the player is underwater.
11 years ago
scrawl
bf02b77c1d
Closes #1090 : Don't throw an exception if a cell has no region in GetPCCell
11 years ago
scrawl
154fae9f25
Don't suppress exceptions thrown while running scripts
11 years ago
scrawl
19d63f392f
Clean up the NpcStats expelled interface. Show message box when expelled.
11 years ago
scrawl
098f9712f1
Add getPlayerPtr() utility method. Reduces dependencies a lot.
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
29c823b9d4
Implement awareness check function. Use this for combat AI and GetDetected instruction.
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
14b70a3ce6
Implement AI related magic effects (calm, frenzy, rally, demoralize, turn undead)
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
scrawl
b42240be6d
Implement Damage/restore skill/attribute effects. Use dedicated classes for skill and attribute values (instead of Stat<T>) since there are some important differences.
11 years ago
scrawl
32ff3b530c
Change all instances of skill/attribute values to use an appropriate typedef.
11 years ago
Marc Zinnschlag
a6e6411686
Merge remote-tracking branch 'scrawl/master'
11 years ago
scrawl
c558e12212
Don't try to move objects that are not in a cell
11 years ago
Marc Zinnschlag
e1355be47c
Merge remote-tracking branch 'lgro/valgrind_warnings'
11 years ago
Marc Zinnschlag
c3482b6f24
Merge remote-tracking branch 'scrawl/master'
...
Conflicts:
apps/openmw/mwmechanics/spellcasting.cpp
11 years ago
Marc Zinnschlag
5fa9aa5d1e
Merge remote-tracking branch 'lgro/issue417_apply_weather_instantly_when_teleporting'
...
Conflicts:
apps/openmw/mwworld/weather.cpp
apps/openmw/mwworld/worldimp.cpp
11 years ago
Lukasz Gromanowski
e9844e1b37
Fixes #417 : Apply weather instantly when teleporting
...
Changed teleporting detection from "position tracking" to manually
setting "teleportation" flag ( player->setTeleported(true) ).
Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
11 years ago
scrawl
b02b966c44
Closes #994 : Don't cap skills to 100 when set via console (except for modX variants)
11 years ago
Lukasz Gromanowski
1ce4663065
Updated compiler opcodes for COE, and setHello.
...
Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
11 years ago
scrawl
2a8ab932ef
Bug #951 : Only recalculate derived stats when attributes change
11 years ago
Marc Zinnschlag
3590fa40bd
store global script state in saved game files
11 years ago
Marc Zinnschlag
2a35c7d33a
fixed running global scripts a second time after they have been stopped
11 years ago
Marc Zinnschlag
74793c1c2f
globals script cleanup; fixed potential case folding bug
11 years ago
Marc Zinnschlag
b38bfe1f21
removed a redundant function for listing global variables
11 years ago
Lukasz Gromanowski
8d63f8eea2
Fixes #998 : Setting the max health should also set the current health
...
Added setting current value of dynamic stat in OpSetDynamic class.
Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
11 years ago
Marc Zinnschlag
030c733e2d
Merge branch 'master' into savedgame
...
Conflicts:
apps/openmw/mwmechanics/actors.cpp
apps/openmw/mwworld/worldimp.cpp
files/settings-default.cfg
11 years ago
Marc Zinnschlag
e818d43bc3
removed an outdated typedef and some dead code
11 years ago
scrawl
bb4bd999ba
PlaceAt: Copy the rotation when placing a non-actor. Don't modify placement position by bounding box for non-actors. Fixes placement in Graphic Herbalism mod.
11 years ago
Marc Zinnschlag
b0eb5938bf
removed some redundant code
11 years ago
Marc Zinnschlag
71436b1160
changed interface for global variable access
11 years ago
Marc Zinnschlag
bc6fe682c9
replaced getCurrentCellName function with a more general getCellName function
11 years ago
scrawl
b490e56ba1
Remove redundant setLocals (already done by ContainerStore::add)
11 years ago
scrawl
bab657fe2b
Add a utility function to add items to a ContainerStore by RefID
11 years ago
Marc Zinnschlag
11e254aac8
Merge remote-tracking branch 'gus/AICombat'
...
Conflicts:
apps/openmw/CMakeLists.txt
apps/openmw/mwbase/mechanicsmanager.hpp
apps/openmw/mwmechanics/mechanicsmanagerimp.cpp
apps/openmw/mwmechanics/mechanicsmanagerimp.hpp
11 years ago
gus
dff3cf162d
ToggleAI script instruction
11 years ago
scrawl
00af6b5617
Use an inventory store listener for animation parts and VFX update instead of updating them directly. Slightly more flexible, reduces InventoryStore dependencies and solves a crash during character creation due to the preview doll's animation not being registered in World.
11 years ago
Emanuel Guevel
aefa54d72d
Pass item count to ManualRef constructor
...
This remove the need to call setCount in multiple places.
11 years ago
Emanuel Guevel
f4f2586e8c
Remove duplicate code for PlaceAtMe/PlaceAtPC using a template
11 years ago
Emanuel Guevel
8ff747fbef
Move some deleteObject logic from OpDelete to MWWorld::deleteObject
11 years ago
Emanuel Guevel
10abb9d297
Call ContainerStore::remove() to remove items from inventory
...
Make placeObject() and dropObjectOnGround() in MWWorld to copy objects
(and indicate it clearly).
Enchanting an item now unequips it.
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
eef9df504a
fiddlings
12 years ago
mckibbenta
60fa69139e
minor changes
12 years ago
mckibbenta
8998b90e8b
initial do-nothing implementation; registered opcode
12 years ago
vorenon
3bf3bd4b8c
Silenced some warnings
12 years ago
Chris Robinson
73437dfdca
GetEffect can accept an effect ID string as well
12 years ago
Chris Robinson
c1dfa980bf
Combine ShowVarsImplicit and ShowVarsExplicit
...
Also removes an unnecessary else statement
12 years ago
Chris Robinson
30973352e8
Implement ShowVars (SV) console function
12 years ago
Chris Robinson
2353ac1739
Properly implement SetWerewolfAcrobatics
12 years ago
Chris Robinson
db1036e5e5
Handle SetWerewolfAcrobatics
12 years ago
Chris Robinson
75b6515915
Inherit NpcStats from CreatureStats
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
Emanuel Guevel
48d2554ac3
Auto-equip when items are added to the inventory
...
We limit that to armor pieces and clothing items.
No auto-equiping for the player nor werewolves.
12 years ago
Emanuel Guevel
fd0a159a64
MWScript: update first unused opcode number
12 years ago
Alex
de1f423bd7
initial move of script opcodes and registerExtensions functions to components/compiler
12 years ago
Emanuel Guevel
c59ad62c57
Fix UndoWerewolf script instruction
12 years ago
Emanuel Guevel
5188a1c2cd
Implement script instructions Become/UndoWerewolf
12 years ago
scrawl
7dc30a01cd
Some changes suggested by cppcheck
12 years ago
Chris Robinson
c94653dc49
Implement the ModRegion script function
12 years ago
Chris Robinson
1174b85ac8
Implement Disable/EnableTeleporting script functions
12 years ago
Chris Robinson
3298eb1b37
Implement HitOnMe script function
12 years ago
Chris Robinson
14e0c182f3
Allow specifying the sound type to playSound and playSound3D
12 years ago
greye
f3d54a7ba4
move finding default cell positions to World
12 years ago
greye
6bb3942288
use Land height data for position in coc
12 years ago
greye
a3094b808e
update coc behaviour for interior cells
12 years ago
Marc Zinnschlag
b1a8dc35e0
minor adjustments
12 years ago
Torben Carrington
1cfe037d6b
AIWander - Added support for the Repeat parameter to mimic vanilla.
12 years ago
Miroslav Puda
3cebb41459
missing break
12 years ago
Marc Zinnschlag
9fee99d56c
Merge remote-tracking branch 'scrawl/master'
12 years ago
scrawl
c41f119ba6
Added new game button
12 years ago
Torben Carrington
4d10a1c407
Fixed an additional 0 being sent into the AIWander idle parameters vector (Thanks to Chris)
12 years ago