Jump to content

RealTime Quest Dialog


PrettyMurky

Recommended Posts

Well just look at thathttp://www.youtube.com/watch?v=aWA9JSKLbXI

 

And that is the only quest I plan on converting.

 

If you want more, then you'll have to convert them yourselves. However I believe I have made this as simple as possible. Most of the work for this quest was done through two simple scripts:

 

scn pmqdCheckElig

 

short Stage

 

Begin Function { }

 

SetFunctionValue 0

 

if IsQuestCompleted MS08

return

endif

 

if GetIsPlayableRace

else

return

endif

 

set pmqd.UrsLoc to GetIsID UrsanneLoche

set pmqd.Kurdan to GetIsID KurdangroDragol

set pmqd.Aleron to GetIsID AleronLoche

set Stage to GetStage MS08

 

if pmqd.UrsLoc || pmqd.Kurdan

call pmqdTopicAleronLoche

elseif pmqd.Aleron

else

if Stage < 10

if GetInFaction BravilFaction

if GetInCell Bravil && pmqd.ATAleronLocheTopic

call pmqd.FnAT AleronLocheTopic 0 0

endif

endif

endif

Return

endif

 

if pmqd.ATAxeOfDragol

if pmqd.Aleron

if Stage < 60

call pmqd.FnAT AxeOfDragol pmqdWaitOver 6

else

call pmqd.FnAT AxeOfDragol 0 0

endif

else

call pmqd.Fnat AxeOfDragol 0 0

endif

endif

 

if pmqd.Aleron

if pmqd.ATHunt

if Stage < 65

call pmqd.FnAT MS08Hunt pmqdWaitOver 7

else

call pmqd.FnAT MS08Hunt 0 0

endif

endif

endif

 

 

End

and

scn pmqdWaitOver

 

short Action

 

Begin Function { Action }

 

SetFunctionValue 0

if Action

else

Return

endif

 

if Action == 1

set pmqd.xUrsLoc to 1

elseif Action == 2

SetFunctionValue 1

Call pmqd.FnAT MS08UrsanneNoWorry pmqdWaitOver 3

elseif Action == 3

set pmqd.xUrsLoc to 0

elseif Action == 4

SetFunctionValue 2

Call pmqd.FnAT MS08KurdanJar pmqdWaitOver 5

elseif Action == 5

set pmqd.ATAxeOfDragol to 1

SetFunctionValue 2

Call pmqd.FnAT MS08KurdanIfIDont 0 0

elseif Action == 6

set pmqd.ATHunt to 1

elseif Action == 7

Call pmqd.FnAT MS08AleronHunt 0 0

SetFunctionValue 1

elseif Action == 8

SetFunctionValue 2

Call pmqd.FnAT MS08UrsanneAvenged 0 0

endif

 

 

End

 

That is most of the actual 'coding' required to convert a quest. I've got to head out shortly, to see if I can max out my friend's new PC with mods; but I'll try and get more documentation up as soon as I can.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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