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

#101
I'm afraid I haven't uploaded any screenshots of the game. I don't have a site and I don't think there is another way of posting images.
#102
I will soon finish my first AGS game under the title Fortress of Wonder. A game of medieval fantasy, magic, dragons, wraiths, vampires and wizards...
...and a sexy barbarian woman as the star!

I also work on a point'n'click remake of Shadow of the Comet, with a few new twists in the scenario.
I'd like to know how do you feel about such an attempt.

-Skiovatis
#103
As for the "bag" option, this is a piece of code I devised recently.

*** GUIS ***

Create a GUI containing a LISTBOX and an EXIT button.
Script it to appear when the bag is searched. (It is Gui 6 in this example)

*** GUI SCRIPT ***

Code: ags

    if (interface == BAG) {
    // They clicked a button on the bag
    
    if (button==0) {   // the retrieve code
     int count=0;
     int item=1;
      string retrieve;
      string additem;
      ListBoxGetItemText (6,0,ListBoxGetSelected(6,0),retrieve);
      Display ("You retrieve the %s from the trashcan.", retrieve);
      ListBoxRemove (6, 0, ListBoxGetSelected(6,0));

      // AddInventory check
        while (count==0) {
          GetInvName (item, additem);
          if (StrComp(additem, retrieve)==0) {
            count=1;
            }
          else item++;
          }
        AddInventory(item);
      }

    if (button == 1) {   // exit bag
     GUIOff(BAG);
     SetCursorMode(MODE_WALK);
     }
  }  // end if interface BAG


*** BAG INTERACTIONS ***

Code: ags

// deposit items (use inv on the bag)
  string bag;
  GetInvName (player.activeinv, bag);
  Display("You deposit the %s in the bag.", bag);
  LoseInventory(character[EGO].activeinv);
  ListBoxAdd (6, 0, bag);


Code: ags

// look bag
  Display ("A bag.");  
  GUIOn (BAG);
  SetCursorMode(6);
#104
Use the GUIOff() command to deactivate the inventory.

As for the Load button, put "Run Script" in the Action property and in the interface_click function put the command RestoreGameDialog() under the button's definition.

If you use a hotspot instead a button. Put the command in the hotspot
#105
Advanced Technical Forum / Mirror effect
Mon 24/05/2004 21:31:49
I have recently tried to figure out a way to create a reflection of the character on a mirror. I used a 2nd character (MIR) with flipped frames and placed him in a walkable area behind the mirror (covering the walls with walk behinds.
In the Repeatedly Execute interaction of the room I write:

MoveCharacter (MIR, character[player].x, 220-character[player].y); 

hoping that the mirror image will follow my character. However when the player moves, MIR starts his walking animation but doesn't move at all. Actually, he moves only when I pause the game by calling the GUI (I have been using a GUI that pops-up with RIGHTCLICK).

I suspect that the script just doesn't refresh the x & y coords of the player.

Any ideas?

                        Thanks
#106
Is it possible to change the name of a hotspot?

thanks
#107
Just select "New Room" from the file menu.
#108
Thanks guys
#109
I think that the "sierra style" option will indeed help you.

If you want this effect ONLY for this part of the game you can change the speech style wtith the "SetSpeechStyle (new_style)" command in the game.

Example: SetSpeechStyle (SPEECH_SIERRA);    // just before the phone scene
               SetSpeechStyle (SPEECH_LUCASARTS);   // when the scene finishes

The only issue is that I don't know if you also want the image of the character on the other end of the phone line to appear. If you don't, I'm afraid the above won't help.
#110
I try to capture the graphics of "Shadow of the Comet", downloaded from The-Underdogs.

Print Screen doesn't work at all.
The capture application of ACDSee 4.0 PowerPack produces only a black screen.

Is there any settings that I must fix?
Can you suggest of another capture application?

"SotC" is of course a DOS version.
I run under WinXP (no service pack).
#111
Can I dynamically change the full name of the character?

EXAMPLE: Player points on a character and the status bar reads MAN.
Player talks to MAN and asks his name. When he points to the character again, the status bar reads the name instead of MAN.

NOTE: I have tried to use the "character[player].name=..." variable inside an interaction event but I got no effect.
Did I used it wrong?
#112
I think you'll have to be more specific. Post all the effects you want to achieve step-by-step and a more detailed account of the scripts.

However, if I have understood correctly, using the "Sierra style" dialog option (in the General Settings pane) will possibly help you.
#113
In the repeatedly _execute() function put:

  if (GetLocationType(mouse.x, mouse.y)==1 SetCursorMode(MODE_USE); //for hotspots
  else if (GetLocationType(mouse.x, mouse.y)==2 SetCursorMode(MODE_TALK); //for characters
  else if (GetLocationType(mouse.x, mouse.y)==3 SetCursorMode(MODE_USE); //for objects
  else SetCursorMode(MODE_WALK);
#114
I am Nik from Athens and I wonder if there are any compatriots out there.
I'm a beginner on AGS and a loyal fun of adventure games.

   - Η Ισχύς εν την ενώσει-
#115
It is going to be easier if you create a GUI especially for this job. Create 4 buttons, one for each colour an put this script in the function interface_click() in the global script:

int colour
if ((button==1) && (colour==0)) {
   colour=1;
   }
else colour=0;

if ((button==2) && (colour==1)) {
   colour=2;
   }
else colour=0;

if ((button==3) && (colour==2)) {
   colour=3;
   }
else colour=0;

if ((button==4) && (colour==3)) {
   Display ("You won!!!");
   AddInventory(5);
   }
else colour=0;

This of course presumes that the correct order is 1,2,3,4. For another order just change the numbers in the (colour==x) part of the if clause.
#116
I actually try to rip the graphics of "shadow of the comet", downloaded from the Underdogs.
I have used Dragon Unpacker 5 to extract from the .PAK files, but the program hangs.

The Simsresource is not free, I'm afraid. I will try again however.

Thanks
#117
 You can also reduce the size of your item placeholders putting the command

SetInvDimensions(x, y);

in the game_start() function in the global script.

Ofcourse the items themeshelves should be drawn smaller.
#118

If the character moves to the next room BEFORE the door swings open try a

  while (IsObjectAnimating(x)==1) {wait(1)}

command.

You can also put a MoveCharacterBlocking command AFTER this if you want the hero to walk through the door.
#119
Where can I find the Credits PlugIn? I have searched the whole site but I cannot locate it.
I am also in need of a graphic ripper - a program to rip graphics from original games with.

And, by the way, do you know of any sute with free skins for the sims? (i'm using simpose as you might have concluded).

thanks
#120
 You were right! The RIGHTINV part of the script is obsolete. Even without it however, I get the desired effect - looking at the object by right-clicking on it. How this works, don't ask...!!!
I still have the "handle inventory..." unticked and I use the aforementioned code.
It works.
SMF spam blocked by CleanTalk