Author Topic: (no subject)  (Read 1525 times)

Anonymous

  • Member
  • *
  • Posts: 545
    • View Profile
(no subject)
« on: August 26, 2003, 09:33:01 AM »
Can any one tell me whats wrong with this program? it wont work for sum reason...

#FontSize(10!)
#MWin("Here lies Aunt Lola, May she Rest In Peace.")
#MWin("Sep 23, 1234 - August 19, 1301")
#MWin("Died of Demonia")
#MWin("Would you like to place some flowers?")
#Mwin("1-Yes   2-No")
#Wait(flwch$)

{
#If (flwch$=="1")
#MWinCls()
#CreateItem(?Flowers.itm?,pos!)
#PutItem(pos!,17,3,1)
#CharacterSpeed(2)
#Delay(2)
#PlayerStep(?Kane?, 17, Cool
#Delay(3)
#PlayerStep(?Kane?, 17, 5)
#Delay(4)
#CreateItem(?AuntsGhost.itm?,pos!)
#PutItem(pos!,17,3,1)
#ItemStep(2, 17, 4)
#ItemWalkSpeed(?Slow?)
#CharacterSpeed(3)
#PlayerStep(?Kane?, 17, Cool
#PlayerStep(?Kane?, 18, Cool
#PlayerStep(?Kane?, 18, 11)
#PlayerStep(?Kane?, 16, 11)
#Delay(2)
#ItemStep(2, 17, 6)
#Delay(1)
#MWin("Do you not remember me, Kane?")
#MWin("Its me, Lola.")
#MWin("Lola: Please come out, I need to talk to you.")
#MWinCls()
#CharacterSpeed(2)
#Delay(3)
#PlayerStep(?Kane?, 18, 11)
#PlayerStep(?Kane?, 18, Cool
#PlayerStep(?Kane?, 17, Cool
#PlayerStep(?Kane?, 17, 7)
#Delay(1)
#Mwin("Lola: Thank you, Kane. This is very important.")
#MWin("You see, I am a ghost. And we ghosts are able to see all that people do.")
#MWin("Now, I need you to tell Raig and Klarth what I am telling you.")
#MWin("There is a threat that some one might try to unleash the elements upone the earth")
#MWin("When this happens an imbalance of elemntal foces could cause the complete destruction of the earth!")
#MWinCls()
#Delay(3)
#MWin("If there is any thing that could do this, it would already be dead....")
#MWin("!!!")
#MWin("Some one is trying to revive him!")
#MWinCls()
#ItemWalkSpeed("Fast")
#ItemStep(2, 17, 3)
#ItemWalkSpeed("Slow")
#EraseItem(pos!)
#DestroyItem(pos!)
#Delay(2)
#MWin("Kane:.....")
}

{
#If (flwch$=="2")
#MWinCls()
#MWin("I should put flowers down sometime, I think Aunt Lola would like it..")
}
« Last Edit: December 31, 1969, 06:00:00 PM by Anonymous »

Anonymous

  • Member
  • *
  • Posts: 545
    • View Profile
(no subject)
« Reply #1 on: August 26, 2003, 04:19:18 PM »
Well, I don't have the time to really go over it really in depth or anything right now, but just looking over it really quick,

1. I noticed that you have this here:
Code: [Select]

#Wait(flwch$)

{
#If (flwch$=="1")
 ....

#If (flwch$=="2")


When you add that $ onto the end of flwch, that would imply that you are going to be placing a variable that is a letter, not a number.

2.  You don't have the correct placement of the brackets by the #If statements.  You need to have the following type of setup.

Code: [Select]
#If(flwch!=="1")
{...}

#If(flwch!=="2")
{...}

3.  You will need to place it into a while loop, so that if someone hits the incorrect key, it will not work if thats the case.


Code: [Select]
#FDone!=0

#While(FDone!==0)
{

#Wait(flwch!)

#If(flwch!=="1")
{...}

#If(flwch!=="2")
{...}

}



Beyond that, I was unable to find any other defaults, but like I said above, it was not throughly checked.
« Last Edit: December 31, 1969, 06:00:00 PM by Anonymous »

Anonymous

  • Member
  • *
  • Posts: 545
    • View Profile
(no subject)
« Reply #2 on: October 03, 2003, 02:47:18 AM »
#FontSize(10!)
#While(done!=0)
{
#MWin("Here lies Aunt Lola, May she Rest In Peace.")
#MWin("Sep 23, 1234 - August 19, 1301")
#MWin("Died of Demonia")
#MWin("Would you like to place some flowers?")
#Mwin("1-Yes 2-No")
#Wait(flwch$)
#If (flwch$=="1")
{
#MWinCls()
#CreateItem(?Flowers.itm?,pos!)
#PutItem(pos!,17,3,1)
#CharacterSpeed(2)
#Delay(2)
#PlayerStep(?Kane?, 17, Cool
#Delay(3)
#PlayerStep(?Kane?, 17, 5)
#Delay(4)
#CreateItem(?AuntsGhost.itm?,pos!)
#PutItem(pos!,17,3,1)
#ItemStep(2, 17, 4)
#ItemWalkSpeed(?Slow?)
#CharacterSpeed(3)
#PlayerStep(?Kane?, 17, Cool
#PlayerStep(?Kane?, 18, Cool
#PlayerStep(?Kane?, 18, 11)
#PlayerStep(?Kane?, 16, 11)
#Delay(2)
#ItemStep(2, 17, 6)
#Delay(1)
#MWin("Do you not remember me, Kane?")
#MWin("Its me, Lola.")
#MWin("Lola: Please come out, I need to talk to you.")
#Wait(a$)
#MWinCls()
#CharacterSpeed(2)
#Delay(3)
#PlayerStep(?Kane?, 18, 11)
#PlayerStep(?Kane?, 18, Cool
#PlayerStep(?Kane?, 17, Cool
#PlayerStep(?Kane?, 17, 7)
#Delay(1)
#Mwin("Lola: Thank you, Kane. This is very important.")
#MWin("You see, I am a ghost. And we ghosts are able to see all that people do.")
#MWin("Now, I need you to tell Raig and Klarth what I am telling you.")
#MWin("There is a threat that some one might try to unleash the elements upone the earth")
#MWin("When this happens an imbalance of elemntal foces could cause the complete destruction of the earth!")
#Wait(a$)
#MWinCls()
#Delay(3)
#MWin("If there is any thing that could do this, it would already be dead....")
#MWin("!!!")
#MWin("Some one is trying to revive him!")
#Wait(a$)
#MWinCls()
#ItemWalkSpeed("Fast")
#ItemStep(2, 17, 3)
#ItemWalkSpeed("Slow")
#EraseItem(pos!)
#DestroyItem(pos!)
#Delay(2)
#MWin("Kane:.....")
#Wait(a$)
#MwinCls
#done!=1
}
#If (flwch$=="2")
{
#MWinCls()
#MWin("I should put flowers down sometime, I think Aunt Lola would like it..")
#Wait(a$)
#MwinCls
#done!=1
}
}

Is that any better?
« Last Edit: October 03, 2003, 02:50:04 AM by Anonymous »

Cuzit

  • Member
  • *
  • Posts: 487
    • View Profile
(no subject)
« Reply #3 on: October 03, 2003, 10:04:17 PM »
Another new member. This place gets more popular by the day, doesn't it?
« Last Edit: December 31, 1969, 06:00:00 PM by Cuzit »