|
variable (x) variable (y) set variable (x,hero x (0)) set variable (y,hero y (0)) if ((x==10),and,(y==31)) then( show text box (234) wait for text box ) if ((x==23),and,(y==12)) then( show text box (235) wait for text box ) end |
|
variable (t) set variable (t,random (1,2)) if (t==1) then( show text box (234) wait for text box ) if (t==2) then( show text box (235) wait for text box ) end |
| alternpc (3,npcstat:picture,194) |
|
alternpc (3,npcstat:picture,194) set npc direction (3,north) set npc frame (3,0) |
|
alternpc (3,npcstat:picture,194) set npc direction (3,north) set npc frame (3,0) wait (2) set npc frame (3,1) wait (2) set npc direction (3,east) set npc frame (3,0) wait (2) set npc frame (3,1) wait (2) . . . alternpc (3,npcstat:picture,195) set npc direction (3,north) set npc frame (3,0) wait (2) set npc frame (3,1) wait (2) |
|
suspend npcs variable (d) set variable (d,npc direction (3)) alternpc (3,npcstat:picture,194) set npc direction (3,north) set npc frame (3,0) wait (2) set npc frame (3,1) wait (2) . . . alternpc (3,npcstat:picture,195) set npc direction (3,north) set npc frame (3,0) wait (2) set npc frame (3,1) wait (2) . . . set npc direction (3,west) set npc frame (3,0) wait (2) set npc frame (3,1) wait (5) alternpc (3,npcstat:picture,193) set npc direction (3,d) set npc frame (3,0) resume npcs end |
|
alternpc (3,npcstat:movetype,0) #standstill alternpc (3,npcstat:movetype,1) #wander |
|
set timer (4,60,18,@cigarette) set timer (5,15,18,@smoking) |
|
script,Smoking Mayor,begin variable (x) variable (d) set variable (x,hero x (0)) set variable (d,hero direction (0)) if (x==22) then( if (d==west) then( set timer (4,60,18,@cigarette) set timer (5,15,18,@smoking) ) if ((d==east),or,(d==south)) then( stop timer (4) stop timer (5) ) ) if (x==24) then( if (d==east) then( set timer (4,60,18,@cigarette) set timer (5,15,18,@smoking) ) if ((d==west),or,(d==south)) then( stop timer (4) stop timer (5) ) ) Hotel Maid end |
|
script,cigarette,begin variable (m) variable (n) set variable (m,current map) if (m==60) then( . . . ) end |
|
if (m==60) then( set variable (n,read npc (12,npcstat:picture)) if (n==359) then( . . . ) end |
|
if (m==60) then( set variable (n,read npc (12,npcstat:picture)) if (n==359) then( alter npc (12,npcstat:movetype,0) set npc direction (12,south) wait (5) alter npc (12,npcstat:picture,361) set npc direction (12,north) set npc frame (12,0) wait (2) set npc frame (12,1) wait (2) . . . alter npc (12,npcstat:picture,360) set npc direction (12,south) set npc frame (12,0) wait (5) alter npc (12,npcstat:movetype,1) ) if (n==360) then( alter npc (12,npcstat:movetype,0) set npc direction (12,south) wait (5) alter npc (12,npcstat:picture,364) set npc direction (12,north) set npc frame (12,0) wait (2) set npc frame (12,1) wait (2) . . . alter npc (12,npcstat:picture,359) set npc direction (12,south) set npc frame (12,0) wait (5) alter npc (12,npcstat:movetype,1) ) set timer (4,60,18,@cigarette) ) end |
|
variable (i) for (i,1,5) do( . . . ) end |
|
script,Hotel Maid,begin variable (x) variable (y) variable (d) variable (m) variable (i) variable (j) for (i,1,1000) do( set variable (x,npc x (18)) set variable (y,npc y (18)) set variable (d,npc direction (18)) set variable (m,current map) if (m==60) then( if ((x==17),and,(y==81)) then( if (d==west) then( . . . end |
|
alter npc (18,npcstat:movetype,1) ))) wait (5) ) end |
|
write map block (3,7,12,0) write pass block (3,7,0) |
|
write map block (3,7,12,0) wait (3) write map block (3,7,13,0) wait (3) write map block (3,7,14,0) wait (3) write map block (3,7,15,0) wait (3) write map block (3,7,16,0) write pass block (3,7,0) wait (3) end |
|
variable (x) variable (y) variable (m) variable (b) variable (i) variable (j) set variable (x,3) set variable (y,7) set variable (b,12) for (i,1,5) do( set variable (m,current map) if (m==3) then( for (j,1,20) do( write map block (x,y,b) set variable (x,x+1) ) wait (2) set variable (b,b+1) ) ) end |
|
variable (x) variable (y) variable (r) set variable (x,hero x (0)) set variable (y,hero y (0)) set variable (r,read map block (x,y,0)) |
|
if (r==4) then( . . . ) end |
|
script,Hour Set 2,begin variable (h) variable (m) set variable (h,hours of play) set variable (m,minutes of play) if (((h==3),or,(h==15)),and,(m<<5)) then,begin( alter npc (4,npcstat:picture,223) set npc direction (4,south) set npc frame (4,0) ) end else,begin( if (((h==3),or,(h==15)),and,(m<<10)) then,begin( alter npc (4,npcstat:picture,223) set npc direction (4,south) set npc frame (4,1) ) end |
|
suspend player suspend NPCs wait (10) #after you take the player’s control away, give him a moment to reflect suspend map music #don’t let the wrong music play for your scene fade screen out (0,0,0) #the triple zero defaults to black wait (10) #give the engine a chance to catch up to the visual teleport to map (48) cancel map name display #make sure the map name doesn’t interrupt the drama set hero position (0,10,25) focus camera (10,21,20) wait for camera #get your hero to the appropriate place to hide for the cut scene #put the camera in control of the direction now wait (10) play song (81) fade screen in #wait a little longer to get your scene ready #make sure you start the theme music by now show text box (2293) wait (45) advance text box #display your opening message (or scene) wait (10) #give the player time to reflect fade screen out (0,0,0) wait (10) teleport to map (58) #get on with the cut scene . . . stop song camera follows hero (0) #do not forget to put the focus back on the hero wait (10) resume map music play song (get ambient music) #don’t forget to put the regular music back on fade screen in resume npcs resume player #and don’t forget to put the player back in the game end |
|
variable (y) variable (d) set variable (y,hero y (0)) set variable (d,hero direction (0)) if ((d==north),and,(y==4)) then( load tileset (2) ) if ((d==south),and,(y==5)) then( load tileset (1) ) end |