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 - miguel

#2301
try this:

int temp=0;
function my_timer() {
 temp++;
 if (temp>=240) temp=0;
   if (temp==10) DisplaySpeechBackground(BUGONE,"SCRATCH");
 if (temp==50) DisplaySpeechBackground(BUGTWO,"SCRATCH");
 if (temp==100) DisplaySpeechBackground(BUGTHREE,"SCRATCH");
}

it worked for me
#2302
not sure but try to add Wait comands after each line, it should work
#2303
much cleaner indeed, thanks
#2304
can't acess atticwindow ??!!
#2305
try this:

//on top of your room script define a variable
int INVPICKED = 5;
//
//select Objects from the editor
//chose Interact Object
//chose RunScript

  if (INVPICKED = 5) {AddInventory(x); ObjectOff(y);
else Display "I don't need it now";
}

then when you want your character to pick it up just give INVPICKED the value 5; if you set this variable a value outside this room then you'll have to import it, check the manual for that
I hope it helps cause Im starting out too
#2306
thanks scorpiorus, it was the "{" missing,
sorry for the trouble and happy coding
#2307
hello to all,
I have a bit of a problem here, this script is part of a puzzle I am trying to make, basically I need that a npc moves out of EGO's way by triggering something in the room,
//
int temp=0;
function scratch() {
 temp++;
 if (temp>=240) temp=0;
 if (temp==120) LoseInventory(8);
 if (temp==10) DisplaySpeechBackground(BUGONE,"SCRATCH");
 if (temp==50) DisplaySpeechBackground(BUGTWO,"SCRATCH");
 if (temp==100) DisplaySpeechBackground(BUGTHREE,"SCRATCH");
 if (temp==110) MoveCharacterBlocking(COOK,118,57,1);DisplaySpeechBackground(COOK,"Hey, who's there? That door is locked, you stinky mule!");
 if (temp==230) MoveCharacterBlocking(COOK,118,87,1);DisplaySpeechBackground(COOK,"What a jerk!");
 }

The editor gives me an error when I try to perform this function saying that there are to many screen overlays,
I understand that I am using to many DisplayScreenBackground comands, so how do I trigger a different function outside (repeatedly_execute) because I've tryed and it simply doesnt work,
I hope I explained it well
thanks
#2308
if EGO starts in room 0 ags assumes it is the intro.crm room, and yes it is made that way for having a intro room.
check which room  EGO starts
#2309
got it, I'll try to use it,
thanks scotch
#2310
I would like to know something like that as well, I remember the RANDOM comand from the spectrumBASIC wich was not trully random, it went more like a timer. :-\
but a comand like that would be really helpfull for me as well
#2311
thanks guys,
the problem was with the "stop running more comands" comand, because I didn't have it on and so (JOE) would say the two sentences one after the other.
 I guess I'll go with the scripting way as I want to develop more on scripting,
  thanks again for answering a obvious question
#2312
hello to all,
I need help on a basic thing that I couldn't find on the manual,

I need to use something like this:
if inventory item(x) is used on character(JOE)
display "blabla"
 else
     display "blablah"

do I use variables (I guess so) or is there a simpler way to do it?
  thanks
#2313
just downloaded it! Im trying to pass the trendy 80's vampire! it's a shame I can't blast his head!
looks good and the music's cool
#2314
"...until I decided I wanted to create an action game, too, so I found this site."

I don't think this is the right engine for an action-game, altough some people did some.
good luck anyway
#2315
Quote from: Femme Fatale on Sat 31/05/2003 11:37:24
The truth is:
Pick up lines generaly turn people off. Why? Well, they show that you only want one thing and you don't have any imagination/you're stupid and can't make for any interesting conversation. I think girls invented them in the first place to pick out people they don't want to be with  :P.

Sorry to barge in, if this is a personal conversation but I was passing by and couldn't help listening,
 my question is:

 pick up lines turn girls off, but what I've allways undestand is that females are phisically beautifull beeings and so they apreciate, above all, a compliment about their beauty, as is their natural way of existing, so girls allways love to hear something nice even if it was used before,
  now, if girls respond in a agressive way to a pick up line is because they were tought by older girls to do it and ignore it.
   The same way, man will allways like a coment about their strenght, altough woman may say that they look for a inteligent man, they(man) still prefer it.
   It's the way we are, man and woman, we can try to change and even pretend we are diferent but in the end...
    Will you coment, femme fatale?
#2316
You can have diferent zoom in diferent walking areas in your rooms, it's easily done with the editor, each colour means a diferent area
#2317
there's something about your face, Ali...
#2318
sorry but I've been listening behind the door,

another sugestion:
DisplaySpeechBackgroundTalkingView,

I have more or less the same problem as you, I also have a timer and I need that some npc's talk among them on the background
#2319
Similar to DisplaySpeech, except that this function returns immediately and the game continues while the character is talking. This allows you to have characters talking in the background while the player does other things. Note that the character's talking animation is not played if this function is used.

sorry, and thanks
#2320
ok, thanks a lot guys
SMF spam blocked by CleanTalk