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

#141
Ok, some scripts...

Global-Script:

function on_mouse_click(int button) {
 // called when a mouse button is clicked. button is either LEFT or RIGHT
 if (IsGamePaused() == 1) {
   // Game is paused, so do nothing (ie. don't allow mouse click)
   }
 else if (button==LEFT) {
   ProcessClick(mouse.x, mouse.y, GetCursorMode() );
   SetCursorMode(MODE_WALK);
 
   }
  else if (button==RIGHT) {
   if (GetLocationType(mouse.x, mouse.y)==2)
       { SetGlobalInt(80,9);
         ProcessClick(mouse.x, mouse.y, MODE_TALK);
         SetGlobalInt(80,0); }
   else
        { FaceLocation(GetPlayerCharacter(), mouse.x, mouse.y );
          ProcessClick(mouse.x, mouse.y, MODE_LOOK);
          SetCursorMode(MODE_WALK);
          }
   }
 }

Hotspot-Script: (door)

 // script for hotspot5: Any click on hotspot

if (GetGlobalInt(80)==0) NewRoom(1);    // walk to
else if (GetGlobalInt(80)==1) Display("That doesn't seem to work.");    // close
else if (GetGlobalInt(80)==2) Display("I can't pick that up.");      // give
else if (GetGlobalInt(80)==3) Display("It doesn't seem to open.");  // open
else if (GetGlobalInt(80)==4) Display("I can't move it."); // push
else if (GetGlobalInt(80)==5) Display("I can't move it.");  // pull
else if (GetGlobalInt(80)==6) Display("I can't pick that up.");  // pick up
else if (GetGlobalInt(80)==7) Display("That doesn't seem to work.");// use
else if (GetGlobalInt(80)==10) Display("That doesn't seem to work."); // turn on
else if (GetGlobalInt(80)==11) Display("That doesn't seem to work."); // turn off
else Display("There's nothing to read on it."); // look
SetGlobalInt(80,0);

----

The if (GetGlobalInt(80)==0) doesn't seem to work and I don't understand why.  :-[
#142
*Sigh* I don't want to use the interact-mode. You don't "use" doors in SCUMM-games. Only Sierra-games work that way. I just want to click at the door in Walkto-mode and the character should leave the room.
#143
For example: You have a room with an open door. You click at the door and the character goes to the door and leaves the room. That's all I want.  :)

PS.: But he should leave the room without stepping on a hotspot or a region! He should be able to walk on every part of the walkable area without leaving the room, as long as he doesn't click at the door. That way most LucasArts-games work.
#144
Ok, with if ((button==LEFT) && (GetCursorMode()==0)) I'm able to differ between the Walk-mode and the other modes. That's a good idea, TK. But how should this help me to make an interaction with a special hotspot or object? This is a global script, not a room script. I can't turn on an object there or change a room or anything.  :'(
#145
QuoteI have a script for it…

Could you please explain which part of your code you mean?  ???
#146


Hail to the King, Baby!
#147
I think it's quite important to have such a Walkto-interaction-mode. It would spare a lot of time. Why for example should I always draw a hotspot I have to stand on, to enter an open door? It's much better to have a simple interaction for that.
#148
Hello.

Maybe a stupid question, but does anyone know how to script a "Walk to"-interaction?
#150
QuoteAnd the only reason most of them don't come with their readme file is because, well, there wasn't one to begin one.
There was no need for a readme. The original site has all the necessary information.
#151
Well, Zak2 is available in 8 languages…
At the moment it's a record, but soon KQ1VGA 3.0 comes out…  :'(
#152
There is a black book in Annies bookshelf. Bring it her.
#153
A very sweet game. Well done, Argentinian!
#154
Do'h â€" 103,60 MB (game + music pack)
It seems that Tierra once again set new standards for AGS-games…
#155
Completed Game Announcements / Re:Satan Quest
Thu 21/11/2002 18:06:22
Quote from: Trapezoid on Tue 19/11/2002 01:55:28I used LucasFan's (I think) TTF LucasArts font. I didn't notice 1-pixel spacing... Maybe that happens with TTF.

Normally that wouldn't happen in a TTF. The trick was to move the right border of the outline-characters a "pixel" (you know there are no pixels in TTFs… ;-) ) into the left direction. Now the following character would start from that border and both would overlap each other.
#156
Quote from: Esseb on Thu 14/11/2002 14:16:15Back to the weird word thing, parrot in Norwegian is papegøye.

As Mr Spock would say, "Fascinating!"


#157
Las nuevas aventuras de Zak McKracken



Leave your email address or send a pm if you are interested.
#158
Mirror for the Monkey Island Demo (right click, save target as)
#159
Beginners' Technical Questions / AGS GUIs
Mon 11/11/2002 18:16:47
#160
I copied little textures from FOA-screens (walls of houses, water, trees) and used a semi-transparent brush to paint them over the images.
SMF spam blocked by CleanTalk