Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Helping getting a screenplay to work
#1
Hi i'm trying to get a screenplay to work, I plan on adding alot more to this later but the basic conversation doesnt seem to be working. Currently when you talk to the npc you just get an empty chat bubble and no prompts. Hoping someone can tell me what i'm doing wrong here. code is for the 3 main files are hastebined for syntax hilighting here:

https://hastebin.com/uwerulocok.scala

https://hastebin.com/ebigeninaj.go

https://hastebin.com/imenabupip.lua

[Image: greUNek.jpg]

The conversation debug prints in the conversation template are triggering when you click on him:
[Image: QMbQ7ds.png]


Thanks for any advice on this!
 
Reply
#2
Ok, so a few things to note...

First off, your leftDialogue parameter in the 2nd link should not be there on any screen, as you need to pick 1 or the other, leftDialog is for STF files, and customDialogText is for custom string.

For the insufficient funds, change customText to customDialogueText as the prior screens have.

For the actual screenplay, the format seems a bit out of date. Instead, SWGEmu devs implemented conv_handler, which your convo handler screenplay should inherit instead of object.

So instead of:
bhslicer_convo_handler = Object:new { tstring = "myconversation"}

You need
bhslicer_convo_handler = conv_handler:new { tstring = "myconversation"}

(I could be wrong about the actual name of it, might want to research it...)

Now, in order to successfully use that inheritance, you need to add/edit your functions with the EXACT same parameters as the super/parent one has.

So, you will need getInitialScreen, and runScreenHandlers. I don't think you will need getNextConversationScreen since you won't be modifying anything within that function.

Within runScreenHandlers, you will place your game logic, that executes depending on what the screenID is. There's plenty of examples within the existing SWGEmu core3 unstable repo branch.

Your issue stems from there not being a 'getInitialScreen' function btw, but hopefully I've outlined enough in my prior statements to assist you.
#yolo
 
Reply
  



Forum Jump:


Browsing: 1 Guest(s)