Page 1 of 1

Making project for school

PostPosted: Sun Dec 02, 2012 6:24 am
by demonslayer4292
im working on the project for school and with the help of bee-ant i got rid of moon walk and now i was working on dialog for walking up to a book case and inter acting with it. so i downloaded bee-ants rpg dialog tutorial. i am currently using his exact codes and images but plan to change them just wanted to get it working. the problem im getting is when i enter game mode the dialog box comes down from the top immediately and when interact with the book shelve nothing happens. ill attach the ged and i hope some one can find my mistake :D by the way to get to the interactive book case you need to go through the doors of the large building in the center and its on the back wall

Re: Making project for school

PostPosted: Sun Dec 02, 2012 6:07 pm
by Bee-Ant

Re: Making project for school

PostPosted: Mon Dec 03, 2012 2:00 am
by demonslayer4292
hmmm okay so that fixed the problem of the box but the text does not display now..... hmmm im working on tht now and thank you for all the help bee

Re: Making project for school

PostPosted: Tue Dec 04, 2012 3:05 am
by demonslayer4292
hmmm okay so i fixed the text box thing and thank you for getting it to at least come down for me bee-ant. now on to my next problem ...... lol i run into alot with this text thing ive been trying to get the text to appear in sequence eg: line 1 then 2 then 3 of the global. im not getting very much progress i have been trying to change
Code: Select all
int i=1+i;
if(Dialog==0&&ChatTime>0&&strlen(CurrD)>=strlen(FullD))
{
    TypeWrite(DialogList[i]);
    ChatTime--;
}


if(Dialog==0&&ChatTime<=0&&strlen(CurrD)>=strlen(FullD))
{
    strcpy(text,"");
    Dialog=2;
}
then going on with the standard code for the typewriter scroll text but this code seems to create an error that crashes the game. im assuming because the integer i was defined as 1 the first time but upon trying to receive the second line it cannot calculate 1+i because i is not defined by anything other then its self which would make the value undefined. i also tried to use
Code: Select all
int i =0;
int i= 1+i;
if(Dialog==0&&ChatTime>0&&strlen(CurrD)>=strlen(FullD))
{
    TypeWrite(DialogList[i]);
    ChatTime--;
}


if(Dialog==0&&ChatTime<=0&&strlen(CurrD)>=strlen(FullD))
{
    strcpy(text,"");
    Dialog=2;
followed by the code again but this only causes i to become 1 over and over again...... so currently im quite confused and help with the scripting of this would be appreciated. or even just a hint in the right direction i believe this helps more then just script for it makes me work to get my desired results and learn a little bit more about ge