Jump to content

Cutscene not triggering "DisplayStringHead()"?


Recommended Posts

I have a creature "RB_CRE01.CRE" where when he sees a PC, a cut scene initiates:

IF
    Global("RB_fight","GLOBAL",0)
    See([PC])
THEN
    RESPONSE #100
        SetGlobal("RB_fight","GLOBAL",1)
        StartCutScene("RB_CUT01")
END

Works fine and runs the "RB_CUT01.BCS" script:

IF
    True()
THEN
    RESPONSE #100
        PlaySong(106)
        SetInterrupt(FALSE)
        StartCutSceneMode()
        MultiPlayerSync()
        DisplayStringHeadDead("RB_CRE01",42437)
        Wait(3)
        DisplayStringHead("RB_CRE02",42438)
        Wait(3)
        SetInterrupt(TRUE)
        EndCutSceneMode()
END

The cut scene mode runs but no string is displayed onscreen or in the message log. I have added "RB_CRE01" in the Script Name parameter of the creature file which NI can see.

Any ideas?

Link to comment

Ahhh, the "DisplayStringHead()" function uses the actual string name of the creature and not the Script Name string.

So the Script Name string is used to target that creature via a spell or for other purposes.

My creature's name was "General Undead" so using the following works:

DisplayStringHead("General Undead",42437)
Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...