Jump to content

getdeadcount in a specific quest


littleork

Recommended Posts

I am building a quest where i need to kill 10 bears, but I am unable to let the game know that I killed 10, Since the getdeadcount seems to calculate the overall deadcount, it doesnt work since I already killed 10 bears in the game, how would I do this?
Link to comment
Share on other sites

I went a little bit forward by following this http://www.creationkit.com/Safely_increment_variable_from_multiple_scripts

 

So now I have this script

 

function IncrementDeadbear()
DeadCount = DeadCount + 1 
if DeadCount >= Total
rpghunting.setStage(20)
rpghunting.setobjectivecompleted(10) 
endif 
endFunction 

 

on my quest

 

I didnt get any errors on this one

 

Its when I get to the one that I need to put on the actor that problems are starting

 

 
Event OnDeath(actor akKiller)
; increment dead count
rpghunt()=GetOwningQuest() as rpghuntingdead
rpghunt().IncrementDeadbear() 
endEvent

 

 

my error code is

...)+ loop did not match anything at input '='

 

 

I did exactly as the wiki one but I must be forgetting something or I got it wrong, anyone has any ideas?

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...