begin sampledialogscriptshort timershort stateif ( menumode == 1 ) returnendifif ( getjournalindex, "samplejournal" == 10 ) if ( getpccell == "cell name of cell where NPCs are" == 1 ) if ( player->getdistance "one of the NPCs actor id" == 100 ) if ( state == 0 ) messagebox "first part of conversation" set state to 10 set timer to getsecondspassed endif endif endifendifif ( state == 10 ) if ( timer <= ( getsecondspassed + 5 ) set state to 15 set timer to getsecondspassed messagebox "second part of conversation" endifelseif ( state == 15 ) if ( timer <= ( getsecondspassed + 5 ) set state to 20 set timer to getsecondspassed messagebox "third part of convo" endifelseif ( state == 20 ) if ( timer <= ( getsecondspassed + 5 ) set state to 25 set timer to getsecondspassed messagebox "fourth part of convo" endifendifend
if ( player->getdistance "one of the NPCs actor id" == 100 )
if ( timer <= ( getsecondspassed + 5 )
float currentTimefloat lastTimeshort stateshort start; some method of starting here;checks if the conversation has been startedif ( start == 0 ) returnendif;block that only allows entry every 5 secondsset currentTime to currentTime + getSecondsPassedif ( currentTime < lastTime + 5 ) returnendifset lastTime to currentTimeset state to state + 1;the dialogif ( state == 1 ) messagebox "This"elseif ( state == 2 ) messagebox "that"endif
begin sampledialogscriptshort timershort stateif ( menumode == 1 ) returnendifif ( getjournalindex, "samplejournal" == 10 ) if ( getpccell == "cell name of cell where NPCs are" == 1 ) if ( player->getdistance "one of the NPCs actor id" == 100 ) if ( state == 0 ) messagebox "first part of conversation" set state to 10 set timer to getsecondspassed endif endif endifendifif ( state == 10 ) if ( timer <= ( getsecondspassed + 5 ) set state to 15 set timer to getsecondspassed messagebox "second part of conversation" endifelseif ( state == 15 ) if ( timer <= ( getsecondspassed + 5 ) set state to 20 set timer to getsecondspassed messagebox "third part of convo" endifelseif ( state == 20 ) if ( timer <= ( getsecondspassed + 5 ) set state to 25 set timer to getsecondspassed messagebox "fourth part of convo" endifendifend
if ( player->getdistance "one of the NPCs actor id" == 100 )
if ( timer <= ( getsecondspassed + 5 )
float currentTimefloat lastTimeshort stateshort start; some method of starting here;checks if the conversation has been startedif ( start == 0 ) returnendif;block that only allows entry every 5 secondsset currentTime to currentTime + getSecondsPassedif ( currentTime < lastTime + 5 ) returnendifset lastTime to currentTimeset state to state + 1;the dialogif ( state == 1 ) messagebox "This"elseif ( state == 2 ) messagebox "that"endif
begin messageboxscriptfloat currentTimefloat lastTimeshort stateshort start; some method of starting here;checks if the conversation has been startedif ( start == 0 ) returnendif;block that only allows entry every 5 secondsset currentTime to currentTime + getSecondsPassedif ( currentTime < lastTime + 5 ) returnendifset lastTime to currentTimeset state to state + 1;the dialogif ( state == 1 ) messagebox "This"elseif ( state == 2 ) messagebox "that"elseif ( state == 3 ) messagebox "dog"elseif ( state == 4 ) messagebox "tiger"endifend
;some method of starting here
if ( getjournalindex, "samplejournal" == 10 ) if ( getpccell == "cell name of cell where NPCs are" == 1 ) if ( player->getdistance "one of the NPCs actor id" <= 100 ) if ( start == 0 ) set start to 1 endif endif endifendif
;some method of starting here
if ( getjournalindex, "samplejournal" == 10 ) if ( getpccell == "cell name of cell where NPCs are" == 1 ) if ( player->getdistance "one of the NPCs actor id" <= 100 ) if ( start == 0 ) set start to 1 endif endif endifendif
begin messageboxscriptfloat currentTimefloat lastTimeshort stateshort startif ( getjournalindex, "samplejournal" == 10 ) if ( getpccell == "cell name of cell where NPCs are" == 1 ) if ( player->getdistance "one of the NPCs actor id" <= 100 ) if ( start == 0 ) set start to 1 endif endif endifendif;checks if the conversation has been startedif ( start == 0 ) returnendif;block that only allows entry every 5 secondsset currentTime to currentTime + getSecondsPassedif ( currentTime < lastTime + 5 ) returnendifset lastTime to currentTimeset state to state + 1;the dialogif ( state == 1 ) messagebox "This"elseif ( state == 2 ) messagebox "that"elseif ( state == 3 ) messagebox "dog"elseif ( state == 4 ) messagebox "tiger"endifend
if ( getpccell == "cell name of cell where NPCs are" == 1 )should probaby be
if ( getpccell "cell name of cell where NPCs are" == 1 )
begin mc_messageboxscriptfloat currentTimefloat lastTimeshort stateshort startif ( getjournalindex, "mc_tilani" == 260 ) if ( getpccell "Don Macificio's Drug Estate, Don's Quarters" == 1 ) if ( player->getdistance "01mcdonmacificio" <= 200 ) if ( start == 0 ) set start to 1 endif endif endifendif;checks if the conversation has been startedif ( start == 0 ) returnendif;block that only allows entry every 5 secondsset currentTime to currentTime + getSecondsPassedif ( currentTime < lastTime + 5 ) returnendifset lastTime to currentTimeset state to state + 1;the dialogif ( state == 1 ) messagebox "This"elseif ( state == 2 ) messagebox "that"elseif ( state == 3 ) messagebox "dog"elseif ( state == 4 ) messagebox "tiger"endifend
if state == 1 messagebox"1"elseif state == 2 messagebox "2"...
if ( state == 1 ) messagebox "1" set state to 2elseif ( state == 3 ) messagebox "2" set state to 4elseif ( state == 4) ...
if state == 1 messagebox"1"elseif state == 2 messagebox "2"...
if ( state == 1 ) messagebox "1" set state to 2elseif ( state == 3 ) messagebox "2" set state to 4elseif ( state == 4) ...
begin mc_messageboxscriptfloat currentTimefloat lastTimeshort stateshort startif ( getjournalindex, "mc_tilani" == 260 ) if ( getpccell "Don Macificio's Drug Estate, Don's Quarters" == 1 ) if ( player->getdistance "01mcdonmacificio" <= 200 ) if ( start == 0 ) set start to 1 endif endif endifendif;checks if the conversation has been startedif ( start == 0 ) returnendif;block that only allows entry every 5 secondsset currentTime to currentTime + getSecondsPassedif ( currentTime < lastTime + 2 ) returnendifset lastTime to currentTimeset state to state + 1;the dialogif ( state == 1 ) messagebox "Don: Hello Tilani, I haven't spoken to you in forever!" set state to 2elseif ( state == 2 ) messagebox "Tilani: I know, it has been so long!" set state to 3elseif ( state == 3 ) messagebox "Don: So, what can I help you with?" set state to 4elseif ( state == 4 ) messagebox "Tilani: I want you to help us expand my Cartel!" set state to 5elseif ( state == 5 ) messagebox "Don: Very well, let me speak to this friend of yours!" journal "mc_tilani" 260 01mcdonmacificio->forcegreetingendifend
set state to state + 1
startscript mc_messageboxscriptset mc_messageboxscript.start to 1
set state to state + 1
startscript mc_messageboxscriptset mc_messageboxscript.start to 1