FOnline Development > Questions and Answers

How do you get quest info into the PipBoy?

(1/1)

corosive:
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!

JovankaB:

--- Quote ---how do you use FOQuest (...) I really can't figure it out, lol. Please help!
--- End quote ---

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: ---SetQuestGarbager(0, player.Id, locId, LVAR_q_first_tent, Q_FIRST_TENT_FAILED);
--- End code ---

This initializes the quest var (LVAR_q_first_tent), among other things, I suppose. Though I'm not 100% sure if it's needed.

corosive:
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.

JovankaB:
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.

corosive:
I'll keep looking, if I find the answer I'll post it here for everyone. Thanks a lot for the reply, Jov.

Navigation

[0] Message Index

Go to full version