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

#201
its a global variable, i dont have to declare it have i? And if i should, it shouldn`t work should it?
#202
Hey guys, i created a blog!  :D, sooooo what? Ok, i created a list of cool and interesting softwares too that you could see and indicate me new softwares to include on the list. Click Here to enter the blog.
Thank you!
#203
Hey there, i have a problem: I want a objective system to my game, every time the objective is updated you can see your diary and see the current objective. I`m using an object as the objective (the text) in a room, which is the diary. Well, to update the objective, i make something like this:

Code: ags

if (ObjectiveNumber == 1){
   oObjectives.SetView(20, 1);
   oObjectives.Move(5, 235, 300, eBlock, eAnywhere);
 }
 else if (ObjectiveNumber == 0){
   oObjectives.SetView(20, 0);
 }
 else if (ObjectiveNumber == 2){
  oObjectives.SetView(20, 2);
  oObjectives.Move(13, 220,  300, eNoBlock, eAnywhere);
}


It works well on the first two objectives, but on the third there is a problem: When you open the objectives, ok, here it is, the current objective number 2, but when you close it and open it again, the objective shown is number 0. WHY? I thought that the object could face down, so it would use the loop 0, than i changed the loop 2 for loop 8, that is for not specified purposes, it doesn`t worked. I tryed to put the objective number 0 as the loop 8, so it would not return to the down view, i was wong, it continues changing to objective number 0, but just when objective is number 2, when it is 1 it doesn`t change to 0... why the hell is that happening?

NOTE: when we go back to the objective screen (when objective is 2) the objective continue on the same position, 13, 220, as i putted before, and if i add
Code: ags
oObjectives.Move(5, 235, 300, eBlock, eAnywhere);
it will go to 235,300, so what i can concluse is that there is something that is turning the global variable ObjectiveNumber into 0 when i quit the screen, but there is no command that says ObjectiveNumber = 0. I just setted the 0 as default number of the variable and added the condition to if it is 0. Nothing more. Can you help me young people? Thank you.
#204
Quote from: KhrisMUC on Sun 03/05/2009 14:49:21
You've been initializing the variable and setting it to one immediately before checking if it's one.
You need to declare it outside the function in order for it to retain its value.

Ahhhhn, ok  ;D I declared the other variables all outside the functions, and not for this one  :P Thank you.
#205
It's worked!!!  :D thanks man!

But why it doensnt worked when i used it inside the repExec?
thank you again, you are a life saver!
#206
yeah  :) or Ghost, or someone else with less reputation. Ok, i think i should post the entire repExec code there shouldn't i? Well, i will post it!

Code: ags

function room_RepExec()
{
 SetBackgroundFrame(0);
 if (GetBackgroundFrame() ==1){
   HotspotOn = 1;
}
 if (GetBackgroundFrame() == 2){
   HotspotOn = 2;

 }
 int DialogN = 1;
if (ClosedShelf == true){
 if (DialogN == 1){
 DialogN = 2;
 dComputerBasement.Start();
}}}



here we go. lets seek and destroy the problem.
#207
nothng  :'( sorry its the same problem ocurring...
#208
Sorry for the double post, but hey, i figured something, can't the problem be on my start dialog command?? ?? ??

Well i've done something like that:

Code: ags

if (ClosedShelf == true){
 if (DialogN == 1){
 dComputerBasement.Start();
 DialogN = 2;
}


in the attempt to making the dialog stop runing after stop the first time, because the ClosedShelf bool is still true, so can't it run more than 1 time? Well, just for prevent, i made this variable (DialogN) to do not start the dialog again. Result? FAIL  :( im getting angry with that  >:( if someone figure out, please post.

OBS: The start dialog comand is on repExec function.
#209
hum... ths sucks, i can't figure why this isnt working...

maybe the variable i putted in the script is blocking the script of end? (nevermind, just posting somethig  :P i now this cant be)

before i transform the script into 2 dialogues, i used one, i got the same problem i thought that where because if the turn off option x and turn on option x commands, but now i don't have any idea. Some dialogue expert (maybe CJ  :P ) can help there?
#210
in the tutorial you can see that this works perfectly too.
http://www.adventuregamestudio.co.uk/acintro8.htm

meybe looking at the manual you can find somethingg i cant? :-\

BTW: thank you for your effort.
#211
yeeeeeeeeeeees, but it didn't solve the problem  :-X
#212
hum, no it display's this error:

Dialog 12(18): The command 'stop' will be ignored since the script for this option has already finished

...

Another idea?
#213
Hey young and nice people, i'am having trouble with a dialog. Its something like this:
ATTENTION!  This spoiler below contain a important dialog of my game. Try not reading it all, just the commands parts  ;)

Spoiler

// Dialog script file
@S  // Dialog startup entry point
CHARACTER: "Ahhh, now i can rest a little..."
COMPUTER: "Hey! You locked Dr.Cliche on the Secret Room?"
COMPUTER: "Oh man, that's not good!"
CHARACTER: "Ohhh no! YOU again?"
COMPUTER: "You will not escape from dr.cliche! I will force the shelf to open now!"
CHARACTER: "NO! Please! Don't do it!"

@1
COMPUTER: "You won't die."
COMPUTER: "Not yet."
COMPUTER: "I think."
return

@2
goto-dialog dBasement2

@3
COMPUTER: "I don't hate you. I just love my orders."
return

@4
COMPUTER: "So ask for Dr. Clche to stay here."
return
[close]

Ok, this was the first dialog. Now the second (dBasement2):

Spoiler

// Dialog script file
@S  // Dialog startup entry point
COMPUTER: "What? You, you said, you, you LOVE me?"
CHARACTER: "Yeah i think so."
  PlaySound(18);
  Wait(60);
  PlaySound(18);
  Wait(60);
  PlaySound(18);
COMPUTER: "Ahhhhhnnnn... This dream was soooo nice."
CHARACTER: "What?"
COMPUTER: "Hey! Who are you? What are you doing here?"
CHARACTER: "Don't be stupid."
COMPUTER: "Stupid? I'm not stupid. Ok, let me introduce myself."
COMPUTER: "Hi! My name is Larry!"
CHARACTER: "What the????"
COMPUTER: "What's your name?"
CHARACTER: "Ahn, eh..."
COMPUTER: "Ahh, come on! Don't be shy!"
CHARACTER: "It's Clerk. Why are you so strange?"
COMPUTER: "Strange? I'm not strange. Hey, tell me a thing, what are you doing here?"
CHARACTER: "Running away from Dr.Cliche."
COMPUTER: "What? Why?"
CHARACTER: "He wants to kill me. Well, i think he wants to kill me. Well, he wants to make me a lab rat!"
COMPUTER: "A lab rat? Ahn, i understand..."
COMPUTER: "So i presume you want to quit the mansion ahn?"
CHARACTER: "Yeah, you are right."
COMPUTER: "But i can't let you go..."
return

@1
COMPUTER: "It's the rules. I can't break them. I'm a correct AI machine."
return

@2
COMPUTER: "SERIOUSLY???"
COMPUTER: "..."
COMPUTER: "Ok, i will try to help you, but i can't break the rules!"
CHARACTER: "Ok, ok. what can you do for me now?"
COMPUTER: "Hum... nothing. Just go away. But when you need some help, just ask for me, Larry."
CHARACTER: "Wasn't you the Central Computer?"
COMPUTER: "WHAT? No, no. I'm not this guy."
CHARACTER: "So you are another person?"
COMPUTER: "No, no. Another AI. Artificial Inteligence."
CHARACTER: "Hum, ok then. So you have a double AI?"
COMPUTER: "Yeah, i think. No, wait. I have a triple AI!"
CHARACTER: "What? ANOTHER AI?"
COMPUTER: "YEEEEEESSS! He's name is John. I don't like him. He makes me cry..."
CHARACTER: "Ok, can you just help me finding the way out? Or better, where is the exit?"
COMPUTER: "Well, first you have to deactivate all the security systems stations to turn off the security system."
COMPUTER: "Then the windows and the door will be released!"
CHARACTER: "Nice, now where can i find the stations?"
COMPUTER: "There is one on the Living Room, one in the attic, one in the Dr. Cliche's room and another on the Secret Lab."
CHARACTER: "Ok, there is another way out?"
COMPUTER: "Hum..."
COMPUTER: "..."
COMPUTER: "..."
COMPUTER: "..."
COMPUTER: "..."
COMPUTER: "no."
COMPUTER: "But i'm pretty sure you will be sucessfull!"
CHARACTER: "Thank you Larry."
CHARACTER: "Now let me go."
COMPUTER: "Ok! Bye friend!"
CHARACTER: "A computer with triple personality? I will die and not see everything!"
  ObjectiveNumber = 2;
stop

@3
COMPUTER: "But... But... I, I can't! Sorry!"
return
[close]

THE QUESTION IS: When i select the 2 option, when they finish talking, it returns to the 1 dialog, starting all again instead of stoping. Why this happens? Why stop doesn't works?
Thank you!
#214
oh no, you used jpeg again...  >:(
#215
man, you perspective is really wrong. Take a look on my topic about my basement backgrond in the critics lounge. It has a "tutorial" about perspective, if you want to correct it, of course! I took the freedom to make a paint over on it and change the red liquid to blood. I vanished the black outlines. I don't like them anymore. You shouldn't like them too. I wish you like it.



EDIT: Never use jpg. they suck.
#216
oh, ok, thank you guys  ;) i will try to correct this, but i also need more help on the side views... They are a problem to me, because i can't make the perspective looks the same as Clerk ones... It looks soo strange. His age is 43. In the front view i think you can see that, but he changes a lot in the side ones, can you help me with that please?
#217
you can make each filling area an object, make the colour pallete inventory objects, and then if player active inventory is purple (this is done in the any click setting) change view to loop x (the loop with the object painted.
It isn't hard, just time wasting.
#218
Can i change the main character talk view without having to make a whole new character? Because in my game there is a part that the character is hidding, an it's view change to the hidding view. But then when he is going to talk the character appear normally, and i want him to keep hidding, so i want to change the character talk view. If no, i will have to make another character talk it...
#219
Critics' Lounge / Dr. Cliche strikes again.
Sun 12/04/2009 15:37:05
Hi everyone! Happy easter! (at least on Brazil...) Well, here is my character dr. Cliche. i can say thatI'm satisfied with the down view, but i'm freaking out with the sides ones. Can anyone help me?
OBS: I'm posting an image of Clerk too, because i want to make something in the same dimensions of him.





OBS: Paint overs are a lot welcomed  ;)
#220
i already figured another way (because you can only set 5 frames, but i will need MUCH more) i used an object and some views. The object change it loops for each view. But thank you anyway.
SMF spam blocked by CleanTalk