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

#41
About 2:

Under the interaction put the script that contains the dialog and UNDER THIS SCRIPT put another. This 2nd script will execute after the dialog finishes.

i.e.:

    Talk to character
             |
              --->  Run script
             |
              --->  Run script

#42
General Discussion / Athens 2004
Wed 11/08/2004 22:54:43
Anyone going to the Olympics?

I am Greek and I look forward for the games to start. It is going to be the experience of a lifetime.
And I think we have done a really good job as it seems, despite the slunder of the foreign media.

What do you think?
#43
This is a script I dveleped during free time. Try it.
It creates an life bar on top of the screen.

IN THE GLOBAL SCRIPT :

In the game_start() function:

  RawSetColorRGB(31, 21, 235);
  RawSaveScreen();
  while (GetGlobalInt(399)<100) {   //global int 399 stores the life points
  RawDrawRectangle(10, 10, GetGlobalInt(399)+10, 20);  // this draws the bar
  SetGlobalInt(399, GetGlobalInt(400)+1);
  Wait(1);
  } 


INTERACTION SCRIPTS:

To lose life:
-------------

  SetGlobalInt(399, GetGlobalInt(399)-lifelost);
  if (GetGlobalInt(399)<1) {
    Display("YOU ARE DEAD");
    QuitGame(0);
    }

   if (GetGlobalInt(399)>=70) RawSetColorRGB(31, 21, 235); // this changes the colour of the bar according to the life points
   if ((GetGlobalInt(399)<70) && (GetGlobalInt(400)>=50)) RawSetColorRGB(25, 189, 48);
   if ((GetGlobalInt(399)<50) && (GetGlobalInt(400)>=20)) RawSetColorRGB(230, 238, 17);
   if (GetGlobalInt(399)<20) RawSetColorRGB(235, 41, 21);

  RawRestoreScreen();
  RawDrawRectangle(10, 10, GetGlobalInt(399)+10, 20); 


To restore life:
----------------

  SetGlobalInt(399, GetGlobalInt(399)+liferestored);
  if (GetGlobalInt(399)>100) SetGlobalInt(400, 100);

   if (GetGlobalInt(399)>=70) RawSetColorRGB(31, 21, 235);
   if ((GetGlobalInt(399)<70) && (GetGlobalInt(399)>=50)) RawSetColorRGB(25, 189, 48);
   if ((GetGlobalInt(399)<50) && (GetGlobalInt(399)>=20)) RawSetColorRGB(230, 238, 17);
   if (GetGlobalInt(400)<20) RawSetColorRGB(235, 41, 21);

  RawRestoreScreen();
  RawDrawRectangle(10, 10, GetGlobalInt(399)+10, 20);

Of course you'll have to adjust it a bit and don't forget to declare the variables!
Good Luck.
#44
Well, you can use a textbox GUI, which will automatically resize to fit the options (as in 5DaS) but this GUI will (i think) always appear at the CENTER of the screen. You cannot place it where you like.

To change the name of a character you have to use the character[CHARID].name variable as Proskrito said, but in conjuction with the StrCopy command. that is:

StrCopy(character[MAN].name, "JIM");     // correct

character[MAN].name="JIM"        // incorrect
#45
Hints & Tips / Re: Help with night of hermit
Wed 11/08/2004 21:37:54
I am not sure what do you mean, but if you are talking about the program that decompresses the game, the extention is .ace, so you'll need WinAce. Newer versions of WinRAR also open .ace files.
#46
Have you put an actual command in the child?
#47
There a few things you can check:

1. The object baselines
2. Have you actually placed the objects on the BG?
3. Have you imported graphics?
#48
Hints & Tips / Kheptosh
Sat 07/08/2004 21:57:16
I have the levitating and invisibility machines and I have to invade the company building. But where is it?
#49
Hints & Tips / 3d gem in ultimerr
Sat 07/08/2004 21:56:02
I have found the 2 first gems. One in the city and one in the cave. How do I start to find the 3rd? I have some unused meat in my inv and the manure is the only hotspot I haven't interacted yet.

Thanks
#50
I was wondering.
What makes a GUI good? I always thought functionality is the secret and I believe you will agree, but what does it mean?
I think of functionality as the minimization of necessary clicks and mouse movement. The LEC GUI, for example, was really versatile and thorough, but a bit uncomfortable. The SIERRA GUI (the default of AGS) is also a bit annoying since it requires a lot of right clicks (especially if you accidentaly pass the desired command).

If I took an example from AGS games, I think the GUI of 'Uncertainty Machine' was the best (I created and use a templatebased on this), with '7 days' following. On the other hand I found 'Devil's Shroud' very annoying.

Another thing: Do you think a status bar (you know, 'USE KEY ON DOOR') helps the player or just makes the game easier?

What's your opinion?
                                                                   Taking GUIs to the next level!
#51
I have an idea. In the on_mouse_click function put:

if (GetCursorMode()==MODE_WALK) ProcessClick(mouse.x, mouse.y, MODE_WALK);
else {
  MoveCharacterBlocking(...
  FaceLocation(...
  ProcessClick(mouse.x, mouse.y, MODE_WALK);
}

Notice however that I have left the two first commands open. Because the x&y and the direction facing will be different in each case, you have to figure out a way to calculate them, perhaps by assigning x,y variable to the hotspots and possibly comparing them to the character's x,y.
#52
I wish you the best. Few people would do what you DO.
#53
I have recently moved from <freewebs> to <lycos tripod> web host due to the bandwidth and hotlinking problems of the former.

The demo is now available at my new site at:

http://members.lycos.co.uk/skiovatis/SotC_DEMO.ace

Also visit my site:     http://members.lycos.co.uk/skiovatis   for news about my projects.

Thank you. I apologize for the inconvenience.
#54
I found the solution. I used a web-based FTP program (http://www2ftp.de) and managed to upload my game there. Greece is also one of the countries that are not supported.

Try it!
#55
I have recently completed my new site at www.lycos.tripod.co.uk
I have failed however to upload any game files through FTP, since the server doesn't accept my password.
I have used both SmartFTP and CoffeeFTP.

Had anyone have the same problem?
#56
I liked the final puzzle of "5 days a stranger". It took me a while to figure it out, but I think it was really smart and, more importantely, atmospheric.
#57
Hints & Tips / Re: larry wilco, help!
Fri 23/07/2004 22:59:46
At the top of the hotel, take a rock and throw it at the man.
(hope you have found the hook at the beach)
#58
I'm afraid you'll have to use a more complex solution.
I'm thinking of cheking the characters' loops with character[CHARID].loop.

Suppose you have character A at the left of the screen and B at the right. To check if they are facing each other, type:

if ( (character[A].loop==2) && (character.loop==1) ) Display("We are facing each other!");

The problem is that you have to know from the beggining which direction the characters have to face to look each other.
#59
Hints & Tips / Re: Help!!!!!!!!
Tue 20/07/2004 21:45:56
No, you do not right-click. You hold down left mouse button.  ;)
#60
"Now, which part of the motel should I sabotage first?"
   
                                    - Herman Toothrot
SMF spam blocked by CleanTalk