Jump to content


Photo

Cutscene Scripting


  • Please log in to reply
2 replies to this topic

#1 LightMonday

LightMonday
  • Member
  • 4 posts

Posted 03 October 2020 - 07:02 AM

Hello lovely people,

 

Apologies if this has been covered - I have done a search but I can't seem to find an answer.

 

I'm trying to set up a cutscene and it's going drastically wrong.  At first it just entered cutscene mode and did nothing, and then I did some tinkering, and now my PC goes red/hostile and attacks my still-green NPC whilst the guard who was supposed to arrest him looks on in, presumably, utter bemusement.

 

The trigger for the cutscene is in my NPC's script and looks like this:

 

IF
InParty(Myself)
See(Player1)
!ActuallyInCombat()
!StateCheck(Player1,CD_STATE_NOTVALID)
!StateCheck(Myself,CD_STATE_NOTVALID)
Global("HA#SaschaArrestedDebt","Global",1)
Global("HA#CarysQuestCutScene1","Global",0)
THEN
RESPONSE #100
SetGlobal("HA#CarysQuestCutScene1","Global",1)
StartCutSceneMode()
StartCutScene("HA#CarysQuest1")
END
 
Where the cutscene script itself (HA#CarysQuest1) is as follows:
 
IF
Global("HA#CarysQuestCutScene1","Global",1)
THEN
RESPONSE #100
CutSceneId(Player1)
ActionOverride("HA#Sasc",DropInventory())
ActionOverride("HA#Sasc",SetDialog("HA#SascP"))
ActionOverride("HA#Sasc",LeaveParty())
ActionOverride("HA#Sasc",EscapeAreaMove("AR1005",1236,434,5)
ActionOverride("HA#Guard",EscapeArea())
EndCutSceneMode()
END
 

I assume I've done something utterly bizarre and probably completely obvious somewhere down the line but I can't seem to work it out.  Help?

 

Thank you all in advance!



#2 jastey

jastey
  • Administrator
  • 3218 posts

Posted 03 October 2020 - 07:42 AM

All files have a maximum letter count of 8. Your cutscene file name is too long.

#3 LightMonday

LightMonday
  • Member
  • 4 posts

Posted 03 October 2020 - 08:12 AM

...and there's the obvious mistake!

 

Thank you :)