Editing
Talk:Safely increment variable from multiple scripts
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
I couldn't compile the following example probably because GetOwningQuest() is not a member of ObjectReference script. <syntaxhighlight lang="papyrus"> ; RIGHT WAY Event OnDeath(Actor akKiller) ; increment dead count myQuestScript = GetOwningQuest() as MS06Script myQuestScript.IncrementDeadCultists() endEvent </syntaxhighlight> However this method is working for me: <syntaxhighlight lang="papyrus"> Scriptname SpawnChainSCR extends ObjectReference qf_arenakurierquest_01049fca Property qArena Auto Event OnActivate(ObjectReference akActionRef) qArena.IncrementCombatants(2) ;thread safe method EndEvent </syntaxhighlight> Of course I have to assign the appropriate quest (arenakurierquest) to qArena in the Property Editor. --[[User:VikMorroHun|VikMorroHun]] ([[User talk:VikMorroHun|talk]]) 2013-07-28T08:59:11 (EDT)
Summary:
Please note that all contributions to the CreationKit Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
CreationKit:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit source
Add topic
View history
More
Search
Navigation
Landing page
Tutorials
Game Systems
Editor Reference
Scripting Reference
Recent changes
Help
Tools
What links here
Related changes
Special pages
Page information
Page values