Author Topic: How do you get quest info into the PipBoy?  (Read 2638 times)

How do you get quest info into the PipBoy?
« on: December 01, 2014, 03:31:13 am »
Alright, so my question is, how do you use FOQuest? How do you get quest info into the pipboy? I know how to write pipboy code info, but how do you assign that dialog to a quest? Where else do you need to write code?

Here's an example of a simple quest, with it's pipboy info.

#=======================================
# 7400
# Cats Paw Magazine for Junktown Lonely Man
#=======================================
{7400001}{}{There's a sad, lonely man in Junktown looking for a Cats Paw Magazine. I could help him, if I wanted.} //accepted quest
{7400002}{}{I gave my old porno mag to some guy in Junktown, it was worth it just to see the look on his face. I'm such a nice guy.} //completed quest

{7400101}{}{Porno for the lonely} //quest name
{7400102}{}{Bring a Cats Paw Magazine to the lonely man in Junktown.} //quest description

This would have it's own dialog file associated with it, but how do we activate the pipboy info? Is it a script inside the actual dialog? I really can't figure it out, lol. Please help!
Owner of FOnline 2258! A true Fallout inspired adventure!
http://bit.ly/3syLeTp
http://www.fonline2258.com

JovankaB

  • Guest
Re: How do you get quest info into the PipBoy?
« Reply #1 on: December 01, 2014, 10:02:57 am »
Quote
how do you use FOQuest (...) I really can't figure it out, lol. Please help!

I don't remember exactly, but I guess this might be controlled by a var changed in the dialog or a script.
The 7400 is the var number in the case of the code you pasted. The remaining digits (starting from 1) is var value used for status updates - 101 and 102 are used for title and description.

Also check the example here:

https://github.com/rotators/fo2238/blob/master/Server/scripts/quest_first_tent.fos

Code: [Select]
SetQuestGarbager(0, player.Id, locId, LVAR_q_first_tent, Q_FIRST_TENT_FAILED);
This initializes the quest var (LVAR_q_first_tent), among other things, I suppose. Though I'm not 100% sure if it's needed.
« Last Edit: December 01, 2014, 05:06:28 pm by JovankaB »

Re: How do you get quest info into the PipBoy?
« Reply #2 on: December 01, 2014, 08:35:36 pm »
I appreciate the help, but I'm still lost lol. I checked out the example, can't seem to figure it out, #define q_tent blah blah (1), etc, seems to initialize the pipboy quest but I'm not sure. I can't find the FOQuest variable reference anywhere.
Owner of FOnline 2258! A true Fallout inspired adventure!
http://bit.ly/3syLeTp
http://www.fonline2258.com

JovankaB

  • Guest
Re: How do you get quest info into the PipBoy?
« Reply #3 on: December 02, 2014, 10:32:49 am »
No, #define... only creates an alias, so you can use the name (q tent blah blah) instead of bare number (1) later in the script, for better readability and easier maintenance. Sadly poor memory and lack of FOnline installed doesn't allow me to help any better in this moment. A tutorial about this topic would be helpful for sure.
« Last Edit: December 02, 2014, 10:38:24 am by JovankaB »

Re: How do you get quest info into the PipBoy?
« Reply #4 on: December 04, 2014, 03:05:38 am »
I'll keep looking, if I find the answer I'll post it here for everyone. Thanks a lot for the reply, Jov.
Owner of FOnline 2258! A true Fallout inspired adventure!
http://bit.ly/3syLeTp
http://www.fonline2258.com