Jump to content

Stumped on writing a script


JoKelly

Recommended Posts

I know I should know this, but its just not coming together for me.

 

I have a objective where the pc has to talk to several people and gather a couple of items.

 

I set up each NPC ref as a short that is set to one when talked to and fires off a couple of packages for each encounter.

 

but now I need to have a check that each NPC has been talked to that sets another short that ends the stage and sets the next objective and I am drawing a blank.

 

I know its something simple and its just on the edge of the gray matter but wont come out to play.

 

scripting drives me nuts sometimes.

 

edit. got it figured out.

Edited by JoKelly
Link to comment
Share on other sites

Couldn't you just go:

if (bTalkedTo01 && bTalkedTo02 && bTalkedTo03 && ...)
    SetStage MyQuest, 100
endif

Or am I missing something?

LOL no your not missing something, thats it. Me and scripts do not get along. some times I can see the solution but can't see it in script form ( if you get that) and then end up trying overly complicated ways to get the result that I want which do not work.

 

that last time I took any programming courses, BASIC and COBALT were popular LOL.

Edited by JoKelly
Link to comment
Share on other sites

  • 2 weeks later...

I could help you, but I'm not getting a clear picture on what your problem is.

The problem was I was drawing a blank on how to register that each NPC had been talked (all four NPCs were assigned to one stage, instead of using a separate stage for each) to so that the stage could be ended and the next stage triggered.

 

 

It was one of those nights, all I had to do was assign a short to each NPC and if all four shorts were met then the current stage was ended and the next stage started.

 

if there is a easier way to do this I'd love to know about it. I am not a great script writer.

 

Thanks for the interest, and sorry it took a while to respond. I'm dealing with alot of things in the real world currently.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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