Jump to content

Bleedout Dialogue


Recommended Posts

You need to assign a unique name to your topic so the property can find it to be associated:

Topic  Property pSKK_CSETSay Auto Const mandatory ;apply a unique name to your dialog topic 

pHello is meaningless to the system.

 

It does not need to be the default Hello topic as you are forcing it. In the Quest MISC tab middle TOPICS column I typically add the default idle topic and rename it to something unique and exclusive to that mod.

 

34693-1592328484-711934605.png

Link to comment
Share on other sites

You need to assign a unique name to your topic so the property can find it to be associated:

Topic  Property pSKK_CSETSay Auto Const mandatory ;apply a unique name to your dialog topic 

pHello is meaningless to the system.

 

It does not need to be the default Hello topic as you are forcing it. In the Quest MISC tab middle TOPICS column I typically add the default idle topic and rename it to something unique and exclusive to that mod.

 

34693-1592328484-711934605.png

 

I really thought with your generous help it was about work, but still not working after many attempts... : (

Scriptname BleedoutDialogue extends Actor  

Topic  Property pCVDHello Auto Const mandatory
GlobalVariable  Property pCVDHelloValue Auto Const Mandatory

Event OnEnterBleedout()
Actor Player = Game.GetPlayer()
If Player.GetDistance(Self) < 512
   pCVDHelloValue.SetValue(1)
   (Self as Actor).Say(pCVDHello, akActorToSpeakAs = None, abSpeakInPlayersHead = false, akTarget = Player)   ;should this be "sefl as actor" or "self"?
   Utility.WaitMenuMode(5.0)
   pCVDHelloValue.SetValue(0)
EndIf
EndEvent

 

 

I also tried to simplify it a little bit

 

Scriptname BleedoutDialogue extends Actor  

Topic  Property pCVDHello Auto Const mandatory
GlobalVariable  Property pCVDHelloValue Auto Const Mandatory

Event OnEnterBleedout()
   pCVDHelloValue.SetValue(1)
   (Self as Actor).Say(pCVDHello)
   Utility.WaitMenuMode(5.0)
   pCVDHelloValue.SetValue(0)
EndEvent

 

The actor still says nothing after enter bleedout state.

Edited by syfjhz22
Link to comment
Share on other sites

Enable Papyrus debug logging and add a bunch of Debug.Trace("your message here") lines to see where it is falling down.

Event OnEnterBleedout()
   Debug.Trace("syfjhz22 OnEnterBleedout")
   pCVDHelloValue.SetValue(1)
   (Self as Actor).Say(pCVDHello)
   Debug.Trace("syfjhz22 say topic " + pCVDHello + " value " + pCVDHelloValue.getValue())
   Utility.WaitMenuMode(5.0)
   pCVDHelloValue.SetValue(0)
EndEvent
Link to comment
Share on other sites

 

Enable Papyrus debug logging and add a bunch of Debug.Trace("your message here") lines to see where it is falling down.

Event OnEnterBleedout()
   Debug.Trace("syfjhz22 OnEnterBleedout")
   pCVDHelloValue.SetValue(1)
   (Self as Actor).Say(pCVDHello)
   Debug.Trace("syfjhz22 say topic " + pCVDHello + " value " + pCVDHelloValue.getValue())
   Utility.WaitMenuMode(5.0)
   pCVDHelloValue.SetValue(0)
EndEvent

 

[06/17/2020 - 08:14:17PM] syfjhz22 OnEnterBleedout

[06/17/2020 - 08:14:17PM] syfjhz22 say topic value 1.000000

[06/17/2020 - 08:14:33PM] syfjhz22 OnEnterBleedout

[06/17/2020 - 08:14:33PM] syfjhz22 say topic value 1.000000

 

I tried two times, both have a value of 1, though I have no idea what this means...

 

I also tried to remove topic conditons, tried to use another topic, tried to ungroup the topic. Um...

Edited by syfjhz22
Link to comment
Share on other sites

  • Recently Browsing   0 members

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