Update!
Because I'm so proud of myself for doing what you can all probably do in your sleep, I'm still going to share it with you. I have the start of a converation engine, though it will be quite lenghty in the end I think it will work out. One problem I have is that sometimes the text is reacting to another command written in, but its only with the images and I don't really count on having that for the conversations yet..so other than that it has been a huge success, I plan to do voiceovers to help capture the mood.
sync on:cls:sync rate 60
set text font "Arial"
set text size 16
backdrop off
data$="Welcome home, welcome home...how was the fields?"
reply1$="Why can't I go exploring?"
end1$="More.."
end2$="Done"
new1$="Go to bed"
new2$="Sneak out on the roof"
tx=20
ty=380
tw=text width(data$)
th=text height(data$)
rollover=1
ax=20
ay=400
aw=text width(reply1$)
ah=text height(reply1$)
rollover2=1
bx=20
by=420
bw=text width(end1$)
bh=text height(end1$)
rollover3=1
cx=20
cy=430
cw=text width(end2$)
ch=text height(end2$)
rollover4=1
dx=20
dy=380
dw=text width(new1$)
dh=text height(new1$)
rollover5=1
ex=20
ey=400
ew=text width(new2$)
eh=text height(new2$)
rollover6=1
do
cls rgb(0,0,0)
if mousex()>=tx and mousex()<=tx+tw and mousey()>=ty and mousey()<=ty+th
ink rgb(255,0,0),0
rollover=2
if mouseclick()
data$="Oh you poor dear you look so tired, please have a seat and eat somthing."
endif
else
ink rgb(255,255,255),0
rollover=1
endif
if mousex()>=ax and mousex()<=ax+aw and mousey()>=ay and mousey()<=ay+ah
ink rgb(255,0,0),1
rollover2=2
if mouseclick()
reply1$="Please try to understand that you're just too young my lad, there are fearsome beasts in the dwelling."
endif
else
ink rgb(255,255,255),1
rollover2=1
endif
if mousex()>=bx and mousex()<=bx+bw and mousey()>=by and mousey()<=by+bh
ink rgb(255,0,0),1
rollover3=2
if mouseclick()
gosub conversation_one
endif
else
ink rgb(255,255,255),1
rollover3=1
endif
text tx,ty,data$
text ax,ay,reply1$
text bx,by,end1$
sync
loop
conversation_one:
do
cls rgb(0,0,0)
if mousex()>=dx and mousex()<=dx+dw and mousey()>=dy and mousey()<=dy+dh
ink rgb(0,255,0),0
rollover5=2
if mouseclick()
new1$="Time to sleep, I'm so very tired."
endif
else
ink rgb(255,255,255),0
rollover5=1
endif
if mousex()>=ex and mousex()<=ex+ew and mousey()>=ey and mousey()<=ey+eh
ink rgb(0,255,0),0
rollover6=2
if mouseclick()
new2$="Hehehe..let us see these beasts."
endif
else
ink rgb(255,255,255),0
rollover6=1
endif
if mousex()>=cx and mousex()<=cx+cw and mousey()>=cy and mousey()<=cy+ch
ink rgb(255,0,0),1
rollover4=2
if mouseclick()
goto bedroom_image
endif
else
ink rgb(255,255,255),1
rollover4=1
endif
text dx,dy,new1$
text ex,ey,new2$
text cx,cy,end2$
sync
loop
bedroom_image:
cls
load bitmap "C:\Documents and Settings\Zombie\My Documents\My Pictures\Zombie's Game Dev\D and D Media\house.bmp",0
image_one:
cls
load bitmap "C:\Documents and Settings\Zombie\My Documents\My Pictures\Zombie's Game Dev\D and D Media\untitled.bmp",0
Zombie