Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Mixand

#1
I'm really embarrassed >.>
sorry


function hSandy_Interact()
{
if (cJason.ActiveInventory==iKnife);
{
 cJason.Walk(166, 126, eBlock, eWalkableAreas);
 Display("You cut the gum of sandy's hair.");
 cJason.AddInventory(iGum);
}
else
{
 cJason.Walk(188, 115, eBlock, eWalkableAreas);
 cJason.Think("Moving her would hurt and you can't take the gum off with your hands.");

}
}

But I get this error:

Failed to save room room4.crm; details below
room4.asc(59): Error (line 59): PE04: parse error at ';'

Thankyou for any help.

#3
I have my character peeing into the toilet but you can click it over and over again. With an object it could check if you have the object already but this is something I've done. How can I make it so I can only pee once only?

Thanks

(Here's the coding)

function hJtoilet_Interact()

{
   cJason.Walk(150, 105, eBlock, eWalkableAreas);
   Display("You go to the toilet.");
   cJason.ChangeView(4);
   Wait(70);
   cJason.ChangeView(1);

}
#5
Thankyou very much guys. I just started and I've gotten a lot of help.
#6
Can somebody please tell me why I'm getting this error?
"room1.asc(131): Error (line 131): Parse error: unexpected 'else'"


function hHotspot5_UseInv()

{

if(player.ActiveInventory==iShards)

Jason.Walk(83, 137, eBlock);

Display("You scrape the two shards to create a spark and make a fire.");

player.LoseInventory(iShards);

Leaves.Visible = false;

fire.Visible = true;

}

function hHotspot4_UseInv()

{

if(player.ActiveInventory==iLeaves)

Jason.Walk(83, 137, eBlock);

Display("You put the leaves into the empty campfire.");

player.LoseInventory(iLeaves);

Leaves.Visible = true;

}

else Display("You can't throw that into the river.");

}
#7
When I try saving or running my game it comes up with that error.
Can anybody help me please?

It seems like when I delete

function Dwarf_UseInv()
{
if(player.ActiveInventory==iLeaves){
Jason.Walk(236, 84, eBlock);
Dwarf.Say("&48 Uh.. I don't smoke.");
}

{
if(player.ActiveInventory==Fishstick){
Jason.Walk(236, 84, eBlock);
Dwarf.Say("&49 No thanks. I don't like sushi, It's bad for my stomach.");
}

It works again
#8
Quote from: NsMn on Wed 13/05/2009 17:48:10
you have to write:

function hHotspot2_UseInv()
{
if(player.ActiveInventory==istick){
Jason.Walk(92,  112);
Jason.Say("&22 Fishy fishy fishy!");
Display("You spear the fish in the river.");
player.LoseInventory(istick);
player.AddInventory(Fishstick);
}
else Display("You can't throw that into the river.");
}

That should work.

Thankyou a lot! It helped me heaps :) *cookie*
#9
I'm trying to make it so that if I use a stick on the river I have. It will change the stick in my inventory into a stick with a fish on it. But with it the way it is now you can use any item on the river and it still does it.

function hHotspot2_UseInv()
{
Jason.Walk(92,  112);
Jason.Say("&22 Fishy fishy fishy!");
Display("You spear the fish in the river.");
player.LoseInventory(istick);
player.AddInventory(Fishstick);
}

Please help me.

SMF spam blocked by CleanTalk