Quest Help

smoochy boys on tour

TheMightyOne

Golden Oldie
Golden Oldie
Jun 14, 2004
722
3
124
UnitedKingdom
Ok, heres part of a script I have:
-------------------------------------------------------------
[@boss]
#IF
CHECK [601] 1
#ACT
goto @boss1
#ELSESAY
A quest is required for me to offer you my services.\
You will need to bring me different boss scrolls, these\
can be obtained by killing that boss. The teleports you need\
to bring me are as follow:\
WoomaScroll, ZumaScroll, BoneScroll, MinoScroll and DarkScroll.\
Do you think you can get these for me?\
<Yes, I will get them!/@scroll>\
<No, probably not/@exit>\

[@scroll]
#SAY
Great stuff, I hope to see you soon with the scrolls!\
------------------------------------------------------------
Is it possible to set 2 flags, for example, 1 flag for completing the quest and 1 flag for starting the quest. I want to set a flag when they click '<Yes, I will get them!/@scroll>\' so when they come back to speak to the NPC it goes to another page saying 'Have you got the scrolls yet?' instead of having to press on 'Yes, i will get them!'. Sorry if this sounds confusing!
 

Blimey

Dedicated Member
Dedicated Member
Jul 18, 2011
394
1
44
Hero Village
Add this under [@Scroll]

#ACT
SET [602] 1
#SAY
etc

Then under [@main] have this

#IF
CHECK [602] 1
#ACT
GOTO @main2
BREAK
#ELSEACT
GOTO @main
BREAK

[@Main2]
You need to kill these bosses.. etc etc
 
Upvote 0

Far

tsniffer
Staff member
Developer
May 19, 2003
20,187
30
2,791
540
yeah its quite simple really.

[@boss]
#IF
CHECK [602] 1
#SAY
Have you got the scrolls yet?
#ELSE
goto @Start

[@start]
#IF
CHECK [601] 1
#ACT
goto @boss1
#ELSESAY
A quest is required for me to offer you my services.\
You will need to bring me different boss scrolls, these\
can be obtained by killing that boss. The teleports you need\
to bring me are as follow:\
WoomaScroll, ZumaScroll, BoneScroll, MinoScroll and DarkScroll.\
Do you think you can get these for me?\
<Yes, I will get them!/@scroll>\
<No, probably not/@exit>\

[@scroll]
#ACT
SET [602] 1
#SAY
Great stuff, I hope to see you soon with the scrolls!\

i haven't written an npc in years, but i think thats about right. the number between the brackets [ and ] is your flag, this can be from 0 to 999. 1 is usually used for true, 0 for false. then simply just use CHECK and SET to check if you have activated a flag, and set it when you want.

Also, instead of just changing to 'have you got the scrolls' for a good NPC you should ensure you confirm the task as well. Its very annoying to start a quest, then forget the items you need to get and not have any way to ask what you need again.
 
Upvote 0

Blimey

Dedicated Member
Dedicated Member
Jul 18, 2011
394
1
44
Hero Village
Also i would say your better off using NameLists. I aint sure if they are working on Ruby files though. You tried using them ?
 
Upvote 0

Blimey

Dedicated Member
Dedicated Member
Jul 18, 2011
394
1
44
Hero Village
Basically same as Flags, but easier to clear and keep track on.

Instead of setting a flag, you just add there name to a list.

#ACT
addnamelist ..\QuestDiary\Quest1.txt

Make a .txt called Quest1 is QuestDiary folder.

#IF
checknamelist ..\QuestDiary\Quest1.txt

Pretty sure thats it, been a while lol. I think you can change the folder were the .txts are also. If you try it, let me know if it works please.
 
Upvote 0

TheMightyOne

Golden Oldie
Golden Oldie
Jun 14, 2004
722
3
124
UnitedKingdom
This works, thanks Blimey. However, i added them to a folder i made in market_def called 'namlists' instead of adding them to QuestDiary, but either work fine :)
 
Upvote 0