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

#2261
thanks spyros,
it still doesn´t work,
int xp = GetGlobalInt(10); // gives the error  "expected value after ´=´
but It did work on the gui, also, is it possible to add values to globalints, not setting a value but adding a value to it?
thank you  
#2262
miguel, portimão, portugal
ola espanha!

#2263
Got that Gilbot, thank you and everybody else
#2264
exactly what I wanted, thank you very much
#2265
I need to display some globalints and regular ints on a gui and after searching the manual and the forums I still can't make it right, does anybody know of some threads I can look it up?
thank you
#2266
this is a simple script example, what am I doing wrong?

SetGlobalInt(3,3);
SetGlobalInt(30,2);

// room script file
int orcatk=0;
//
function region1_a() {
 // script for region1: While player stands on region
int ran=Random(1000);
if (ran==1000) {Display("ATENCION!!!");orcatk=100;}
if (ran==200) {Display("You feel stupid!");}  
}

function room_a() {
 // script for room: Repeatedly execute
if (orcatk==100) {Display("You are attacked by orcs!!!");NewRoom(2);}  
}

in room2 I need to check those globalints but the engine doesn't get to that point because when I try to test it, it says "unexpected setglobalint" refering to the first line of this script,
once again thank you

I did a search on (SetGlobalInt) and found that I should set my global ints on the Game_Start function and now it seems to be working, but I tought we should not set them inside functions?
I have a new question, how do I give an int the same value as a globalnt?

I mean,

int life=(GetGlobalInt(1)); //doesn't work, it gives the error, "expected value after ´=´

thank you

another question, how do I display a int value on a gui label? is it with @intname@, or %d.intname?, it doesn't work both ways,
thanks for the help or links to threads I can check
#2267
basic mistake, sorry for the troubble

another one, I did look for it but couldn't find it, where do I SetGlobalInt? I mean, is it in the begining of the main script, room script, script header? I am asking this because I get this error:
Unexpected SetGlobalInt,
thank you
#2268
I am having problems with this function, it seems that if statments are ignored and the engine jumps right to the newroom function,

example:

ran=Random(20);
if ran==10 display("blabla");
if ran==15 display("blabli");
if ran==20 newroom(2);

this is triggered when the player steps on a region, I tryed wait(1) to block it and return to the if statments but it doesnt work, thanks for the help
#2269
General Discussion / Re:Yufster HATE Thread.
Wed 16/07/2003 01:30:58
Im new.
Im also married with one kid, I have a job and I am respected where I live.
If I was looking at AGS for the first time on the internet and having a look at this thread I would feel NOT WELCOME.
I wouldn't want to be part of this comunity and maybe end the urge of making an adventure game..
Is that what you (old users of this forums) want?
I am sure that people will keep coming to the forums because what brings them here is AGS, the software, not you! If you dont want to share this forums with people starting out, talk to CJ and ask him to make separate forums, but dont desrespect people and try not to be rude because you will not add any respect on your person even if you have made the best ever ags game.
And most of you should have a look at RickJ replys to beguiners questions and perhaps learn something about comunicating with people,

" you only have it after giving it to someone else"
#2270
I find your avatar picture very sensual, is that important?
#2271
General Discussion / Re:Yufster HATE Thread.
Tue 15/07/2003 17:01:48
I agree with RickJ, worse then telling people what we think without thinking first,  is having somebody wanting to desmember you if he doesnt like what he hears. By the way, that's what Staline did.
#2272
Completed Game Announcements / Re:Apprentice!
Mon 14/07/2003 00:59:00
Apprentice has all the qualities that adventure gamers want, graphics are superb, the dialogs makes us laugh and so do the animations. The music sets us on the location and when you see the tower screen going downwards to reveal  a cartoonish rural landscape with sheeps!, then you know you're facing a brilliant game. An inspiration.
#2273
General Discussion / Re:Embarassing moments
Sat 28/06/2003 00:24:32
I can't hold my farts!
Last time was when I went to the dentist and I got kicked out
#2274
General Discussion / Re:help with FOA
Thu 26/06/2003 00:27:57
AGA: I guess it is diferent each time we play but I managed to find the right combination,
yes I tryed every damn combination possible :P

thanks for all the help
#2275
General Discussion / Re:help with FOA
Wed 25/06/2003 16:35:10
I am sorry for making such a mess, I tought I was posting on the right forum, but Squinky you're beeing stinky :),
and Scummbuddy I love you :-*,

Garage & N3T: I am using the Lost Dialog instructions, "a sun is dying, a new-moon is..." and as I said nothing happens altough Sofia tells me that "I think you've allready found what...", so, I don't have a clue! :'(

thanks for the replys and please help if you do remember!
#2276
General Discussion / Re:help with FOA
Wed 25/06/2003 02:24:51
well, do whatever you want, I posted here because it isn't a AGS game and all I can see on the Hints & tips forum is AGS games
#2277
General Discussion / help with FOA
Wed 25/06/2003 01:30:15
remember Fate of Atlantis?
I bet you do,
well I don't,
I'm stuck and not even walktroughs help me!
I just downloaded VDMS after reading one of the threads at the forums and decided to get some old games, FOA was the chosen one but now I am stuck,
if anybody remembers this part...
  Location: greater colony
  Puzzle: after finding the moonstone and placing it on top of the sunstone, seting a rising sun with a new moon and with the horns on top,
  Problem: when talking with Sofia, she says we have found what we were looking for;
                  the walktrough says that I should pick up the stones and enter a secret entrance;
   Question: where's the damn entrance!

    if anybody remembers please be so kind to let me know, if not I'll just have to delete FOA and NEVER play it again
   
#2278
General Discussion / Re:AGS Members database
Sat 21/06/2003 04:51:55
where's that giant snail gone?
#2279
hello trant,
you should use a timer to get your enemy to shoot every 5 seconds, there are colision functions for your second question (object hiting character or the other way around) and yes you have to get into scripting to do both,
read the manual and get all the tutorials avaiable and just try it, It's better than waiting for somebody to show you the script and it could happen that you would not understand it,
scripting takes a bit of your time but will reward you,
happy coding
#2280
General Discussion / Re:Roadkill cafe
Fri 20/06/2003 16:20:54
I like snails
SMF spam blocked by CleanTalk