To setup a quest, you need to:
1. Define the quest in the rpg_clues_setup.fpi script. An example would be like this:
;Artificial Intelligence Script
;Header
desc = rpg setup clues and quests
;Triggers
;
:rpg_create_cluemaxnumber:rpg_cluemaxnumber=0
:rpg_start_cluelist:none
:rpg_end_cluelist:none
:rpg_setup_questtextstyle:rpg_questfontbold=1,rpg_questfontsize=14,rpg_questx=10,rpg_questfontname=verdana,rpg_questusetitle=1,rpg_questtitletext=These Are Your Quests,rpg_questtitleusergb=1,rpg_questtitlefontcolor_blue=255,rpg_questtitlefontcolor_green=255,rpg_questtitlefontcolor_red=255,rpg_questfonttransparent=0,rpg_questfontcolor_blue=101,rpg_questfontcolor_green=88,rpg_questfontcolor_red=191,rpg_questusergb=1
;
:rpg_create_questmaxnumber:rpg_questmaxnumber=1
:rpg_start_questlist:none
:rpg_addquest:rpg_questidentifier=quest1,rpg_questname=Mission 01,rpg_questdescription=My first quest - ,rpg_questtracktime=1,rpg_queststartlevel=1
:rpg_end_questlist:none
;
:rpg_create_quizmaxnumber:rpg_quizmaxnumber=0
:rpg_start_quizlist:none
:rpg_create_quizmaxquestions:rpg_quizmaxquestions=0
;
:rpg_create_quizmaxanswerselections:rpg_quizmaxanswerseletions=0
:rpg_end_quizlist:none
;
:rpg_create_objectivemaxnumber:rpg_objectivemaxnumber=0
:rpg_start_objectivelist:none
:rpg_end_objectivelist:none
;
;End of Script
2. You need to have a script assigned to a trigger (Main script) with the following:
;Artificial Intelligence Script
;Header
desc = Initlevel #1 and scan for keys pressed
;Triggers
:state=0:rpg_addhealthunits=0,rpg_displayhealthunits
:state=0:state=2
;keyboard
;
;function keys
:state=2,scancodekeypressed=62:rpg_displayquests,rpg_entitytimerstart,state=3
;reset delay
:state=3,rpg_entitytimergreater=150:state=2
;End of Script
The above script has the F4 key set to show your quest. So in your level, pressing F4 should show you the quest defined.
- BlackFox
RPG Mod- Create a world full of adventure