Jump to content

I need help with a text replacement in a stage


weich

Recommended Posts

Hello,

 

I need help with a text replacement in a stage, because I am leading the mission FreeformRiften04 to do to replace text and move on stage, a stage,

then you will see here are the scripts I have:

 

 

Scriptname nameScript extends Quest

 

 

Quest Property myQuest Auto Conditional

 

GlobalVariable Property KeyFound Auto Conditional

 

Key Property myKey Auto Conditional

 

Function Keycount()

 

float CurrentCount = Game.GetPlayer().GetItemCount(myKey)

 

KeyFound.Value = CurrentCount

UpdateCurrentInstanceGlobal(KeyFound)

if CurrentCount >= 3

myQuest.SetObjectiveCompleted(60,1)

myQuest.SetObjectiveDisplayed(70,true,true)

elseif CurrentCount < 3

myQuest.SetObjectiveCompleted(60,0)

myQuest.SetObjectiveDisplayed(70,0)

myQuest.SetObjectiveDisplayed(60,true,true)

endif

 

endFunction

 

that's the script that I added to the overall mission.

 

this is the I added an alias, the alias is player, as in the mission FreeformRiften04:

 

 

Scriptname PlayerScript extends ReferenceAlias

 

 

Haki_KeyScript Property KeyScript Auto Conditional

 

Key Property myKey Auto Conditional

 

Quest Property myQuest Auto Conditional

 

Event OnInit()

 

AddInventoryEventFilter(myKey)

 

endEvent

 

Event OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer)

 

if myQuest.GetStageDone(50) == 1

if myQuest.GetStageDone(60) == 0

if akBaseItem == myKey

KeyScript.KeyCount()

endif

endif

endif

 

endEvent

 

and is at the stage:

 

 

KeyScript.Keycount()

 

 

What I got is that I go ([...] / [...]) and then upgrade only (0 / [...]), the truth is that not because the total output as [. ..].

 

Please I need help because I like 4 days researching the same issue and I can not find the solution.

 

PS: Of course in tex display globals I added the keycount and keytotal.

 

A greeting.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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