scrawl
c3e4160a0a
Don't crash in StatsWindow for invalid faction rank values
...
PcRaiseRank: don't allow to raise rank beyond max rank
2014-06-18 23:50:55 +02:00
scrawl
2477456f99
Implement Murder crimes and OnMurder instruction ( Fixes #1315 )
2014-06-17 04:05:27 +02:00
scrawl
578adb4ef6
PcJoinFaction and friends: make sure the given faction exists
2014-05-27 13:54:25 +02:00
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. :)
2014-05-22 20:50:00 +02:00
Thomas
c2127845af
Added onKnockdown command
2014-04-27 20:54:22 -04:00
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.
2014-04-26 12:04:37 +02:00
scrawl
c8c0e5de38
Fixed code issues found with unity build. Missing include guards, duplicated functions, ...
2014-03-16 23:49:06 +01:00
Emanuel Guevel
70d35da116
Unset selected spell when removed
2014-02-11 16:34:23 +01:00
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.
2014-01-15 15:50:45 +01:00
scrawl
d0500e8124
Some unneeded includes cleanup
2014-01-15 14:53:28 +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
19d63f392f
Clean up the NpcStats expelled interface. Show message box when expelled.
2014-01-08 18:59:00 +01:00
scrawl
098f9712f1
Add getPlayerPtr() utility method. Reduces dependencies a lot.
2014-01-08 18:39:44 +01:00
scrawl
55c5d7cee4
Implement Resurrect instruction
2014-01-03 15:54:23 +01:00
scrawl
b4230f716e
Implement RemoveEffects instruction
2014-01-03 05:19:10 +01:00
scrawl
7d8ca91286
Implement RemoveSpellEffects instruction
2014-01-03 05:18:44 +01:00
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.
2014-01-03 03:48:43 +01:00
scrawl
32ff3b530c
Change all instances of skill/attribute values to use an appropriate typedef.
2014-01-03 01:59:15 +01:00
scrawl
b02b966c44
Closes #994 : Don't cap skills to 100 when set via console (except for modX variants)
2013-12-31 19:11:16 +01:00
scrawl
2a8ab932ef
Bug #951 : Only recalculate derived stats when attributes change
2013-12-28 17:19:35 +01:00
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>
2013-12-07 21:00:46 +01:00
mckibbenta
8998b90e8b
initial do-nothing implementation; registered opcode
2013-08-24 21:19:12 -04:00
Chris Robinson
2353ac1739
Properly implement SetWerewolfAcrobatics
2013-08-13 04:54:41 -07:00
Chris Robinson
db1036e5e5
Handle SetWerewolfAcrobatics
2013-08-09 05:37:56 -07:00
Chris Robinson
75b6515915
Inherit NpcStats from CreatureStats
2013-08-08 23:28:02 -07:00
Chris Robinson
2bac4566c0
Merge remote-tracking branch 'PotatoesMaster/werewolf' into werewolf
...
Conflicts:
apps/openmw/mwmechanics/actors.cpp
apps/openmw/mwscript/statsextensions.cpp
2013-08-08 00:09:29 -07:00
Alex
de1f423bd7
initial move of script opcodes and registerExtensions functions to components/compiler
2013-08-06 20:38:41 -04:00
Emanuel Guevel
c59ad62c57
Fix UndoWerewolf script instruction
2013-08-06 14:30:01 +02:00
Emanuel Guevel
5188a1c2cd
Implement script instructions Become/UndoWerewolf
2013-08-06 12:34:35 +02:00
scrawl
7821610ec6
Make OnDeath work with explicit reference
2013-04-26 02:08:53 +02:00
Chris Robinson
c8606d2f63
Implement IsWerewolf script function
2013-03-30 13:22:33 -07:00
Marc Zinnschlag
e4ed5b836e
added ondeath script function
2013-03-18 11:04:47 +01:00
Marc Zinnschlag
f4ee8e2642
Issue #479 : Added additional magnitude parameter to known spells
2013-01-12 13:10:20 +01:00
Marc Zinnschlag
6e0b86c6f9
Merge remote-tracking branch 'potatoesmaster/getdisposition'
2013-01-10 01:29:02 +01:00
eduard
2dc0064cc2
more string lowercase
2013-01-09 20:51:52 +01:00
Emanuel Guevel
3e41a1118a
GetDisposition: return calculated disposition instead of base disposition
2013-01-09 15:14:17 +01:00
Tom Mason
bed8fb69e6
added bounty related scripting functions
2012-12-28 22:26:21 +00:00
Marc Zinnschlag
8bcd7d8fb1
fixed a type in a script instruction
2012-12-04 20:56:45 +01:00
scrawl
1def60dbe1
PcExpell, PcExpelled, PcClearExpelled, RaiseRank, LowerRank
2012-11-28 02:15:34 +01:00
scrawl
d6dd212ce8
GetWerewolfKills, ModScale, SetDelete, GetSquareRoot
2012-11-27 06:54:13 +01:00
scrawl
0db48b29c7
GetSpellEffects, GetRace
2012-11-25 01:26:29 +01:00
Marc Zinnschlag
9193f3b0ae
implemented getCommon/BlightDisease script instructions
2012-11-16 13:32:40 +01:00
Marc Zinnschlag
fd5671e6db
fixed argument lists for setpcfacrep and modpcfacrep
2012-11-16 12:45:07 +01:00
Marc Zinnschlag
b046687f46
added PCFacRep script instructions
2012-11-13 16:11:03 +01:00
Marc Zinnschlag
c621a9f7e4
added missing disposition script instructions
2012-11-13 14:29:00 +01:00
Marc Zinnschlag
8aa1fd921b
fixed some stats related script instructions
2012-11-13 14:19:43 +01:00
Marc Zinnschlag
79706bf60f
Issue #219 : dialogue manager cleanup
2012-11-10 14:31:58 +01:00
greye
11567663a7
applying new interface vol.4, inconsistent
2012-11-05 22:34:08 +04:00
greye
d205723a17
resolving m prefix/ESMStore movement
2012-11-05 18:02:47 +04:00
greye
2057f5619e
move ESMStore to MWWorld
2012-11-05 17:18:01 +04:00
greye
3c2ce25f5f
m prefix for mwworld/cellstore.hpp
2012-11-05 16:07:59 +04:00
Marc Zinnschlag
453f347ee8
Issue #68 : added getdeadcount script function
2012-10-27 11:33:18 +02:00
Marc Zinnschlag
a8f294c9ae
fixed types of dynamic stats script instructions
2012-10-19 18:01:45 +02:00
Marc Zinnschlag
bdca5aff87
Issue #68 : simplified the dynamic stats interface
2012-10-19 13:10:06 +02:00
greye
18cc435aa1
resolving conflicts
2012-09-21 13:13:11 +04:00
greye
7606ebafd6
resolving conflicts, minor update
2012-09-17 11:37:50 +04:00
scrawl
76b494100e
finished?
2012-09-15 17:12:42 +02:00
Marc Zinnschlag
923109b260
Issue #107 : DialogueManager is accessed only through the interface class from now on
2012-08-09 10:35:53 +02:00
greye
32b1350b63
CreatureStats class
2012-07-22 18:29:54 +04:00
Marc Zinnschlag
2c70a93553
Merge branch 'master' into potions
...
Conflicts:
apps/openmw/mwclass/npc.cpp
apps/openmw/mwclass/npc.hpp
2012-07-17 10:32:18 +02:00
Marc Zinnschlag
a207c86fd1
Issue #324 : added some range checks
2012-07-09 21:14:11 +02:00
Marc Zinnschlag
67c1c5ce18
Issue #324 : adjusted setSkill script instructions according to the recent research
2012-07-09 20:42:45 +02:00
gugus
0a67f60a6e
Clean-up
2012-07-09 18:47:59 +02:00
gugus
feec67094f
Merge branch 'physicsaedra3' of https://github.com/jhooks1/openmw.git into objectRotationScaling
...
Conflicts:
apps/openmw/mwclass/npc.cpp
apps/openmw/mwworld/physicssystem.cpp
2012-07-09 15:23:26 +02:00
gugus
03f7740474
Merge branch 'master' of https://github.com/zinnschlag/openmw.git into objectRotationScaling
...
Conflicts:
apps/openmw/mwclass/npc.cpp
apps/openmw/mwscript/docs/vmformat.txt
apps/openmw/mwworld/worldimp.hpp
2012-07-09 10:39:57 +02:00
Marc Zinnschlag
d30ba14a17
Issue #324 : Finished turning NpcStats into a proper class
2012-07-06 18:23:48 +02:00
Marc Zinnschlag
205ed0ce5b
post merge fix
2012-07-03 15:53:42 +02:00
Marc Zinnschlag
efb95e2f83
Issue #317 : check if spell actually exist in AddSpell
2012-07-02 14:25:46 +02:00
gugus
01fefca0a3
Merge branch 'master' of https://github.com/zinnschlag/openmw.git into objectRotationScaling
...
Conflicts:
apps/openmw/mwscript/docs/vmformat.txt
2012-06-15 14:53:19 +02:00
gugus
a711a3ebe1
Various fixes
2012-05-29 16:45:43 +02:00
gugus
f83ffecae5
SetAngle and SetScale script instruction
2012-05-29 15:57:13 +02:00
gugus
77084b27c0
some work for rotation/scaling
2012-05-28 16:01:35 +02:00
scrawl
76d71f86bc
fixed a faction case folding issue
2012-05-21 03:10:55 +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
gugus
f68248e0d0
corrected a bug in getPCRank
2012-04-15 14:20:08 +02:00
gugus
45a5877b23
implement getPCRank. Does not work yet.
2012-04-15 12:05:46 +02:00
Marc Zinnschlag
3442ef17a8
fixed ModDisposition
2012-04-13 14:54:13 +02:00
Marc Zinnschlag
73df51695c
Merge remote branch 'gus/Factions2'
...
Conflicts:
apps/openmw/mwclass/npc.cpp
apps/openmw/mwscript/docs/vmformat.txt
apps/openmw/mwscript/statsextensions.cpp
2012-04-13 14:49:37 +02:00
Marc Zinnschlag
e16daeed23
added GetSpell script function
2012-04-13 13:17:57 +02:00
Marc Zinnschlag
b099e1baf5
added addspell and removespell script instructions
2012-04-13 11:12:53 +02:00
gugus
7edc5c733c
corrected a bug about rank.
2012-04-12 17:29:05 +02:00
gugus
0553227ee1
Merge branch 'master' of https://github.com/zinnschlag/openmw.git into Factions2
...
Conflicts:
apps/openmw/mwscript/docs/vmformat.txt
apps/openmw/mwworld/player.cpp
apps/openmw/mwworld/player.hpp
2012-04-09 14:43:35 +02:00
gugus
dd9a88cee2
clean up
2012-04-09 14:32:07 +02:00
gugus
6ca212b9e9
script instruction: PCJoinFaction
2012-04-09 14:30:42 +02:00
gugus
aa8418634f
add PCLowerRank script instruction
2012-04-09 14:26:53 +02:00
gugus
e5b1e27fa6
pcRaiseRank works. Player can now join factions.
2012-04-09 13:24:19 +02:00
gugus
aaa5368fe9
added script instruction pcraiserank. Does not work yet.
2012-04-04 22:14:38 +02:00
gugus
0c61f0d294
test stuff
2012-03-28 11:45:46 +02:00
Marc Zinnschlag
c6761e3470
replaced NPC stats in ref data with new custom data implementation
2012-01-25 16:56:49 +01:00
Marc Zinnschlag
2ffe1206a6
merged opcode classes that came in explicit and implicit variants
2010-12-31 19:09:25 +01:00
Marc Zinnschlag
a8c974d2e7
added set/get/mod instructions for skills
2010-10-20 11:31:42 +02:00
Marc Zinnschlag
bfc282779b
added item health interface
2010-08-03 14:14:04 +02:00
Marc Zinnschlag
93754b2851
moved some includes around
2010-08-03 13:32:37 +02:00
Marc Zinnschlag
ca842d1b4d
reimplemented access to creature stats via new class interface
2010-08-03 11:49:12 +02:00
Marc Zinnschlag
ebedef49c9
removed a special case, that wasn't a special case (MW Scripting for Dummies seems to be wrong here)
2010-07-28 19:45:06 +02:00
Marc Zinnschlag
6e3fdc5816
added special case implementation for GetHealth (max weapon and armor health)
2010-07-28 19:38:14 +02:00
Marc Zinnschlag
913d55a44e
added GetHealthGetRatio
2010-07-28 19:12:50 +02:00
Marc Zinnschlag
a542ca22fd
added ModCurrentHealth, ModCurrentMagicka, ModCurrentFatigue
2010-07-28 19:00:54 +02:00
Marc Zinnschlag
455bcf3b01
added get, set and mod instructions for health, magicka and fatigue
2010-07-28 18:27:46 +02:00
Marc Zinnschlag
77a0215d53
added get-, set- and mod-instructions for attributes
2010-07-26 23:09:37 +02:00