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

#101
General Discussion / Re: Indy Joneses!
Sun 25/05/2008 16:48:17
Quote from: Radiant on Sun 25/05/2008 16:33:46
What kind of name is Mutt anyway? :P

Well, Indiana was named after a dog.... "Mutt" must be.... a cat of some king?   ;)
#102
General Discussion / Re: Indy Joneses!
Sat 24/05/2008 17:13:40
Quote from: monkey_05_06 on Sat 24/05/2008 06:44:22
Remember everyone:

Spoiler
In the event of a nuclear explosion, hide in the refrigerator. The freon will keep you nice and cool. ;)
[close]


Regarding the fridge:
Spoiler
The fridge said "Lead Lined" on it.  Lining your bomb shelter with lead is allegedly the only way to survive a nuclear blast (from within the blast radius). However, I think he would have had many broken bones from flying across the desert as he did (and probably snapped his neck). Of course, I'd seen the first three Indiana Jones, and it would have been retarded of me to expect this one to be realistic, so I liked it.
[close]
#103
I ran into this issue a while back and I'm pretty sure it's not possible. Even when I got the struct accessible in all my scripts, it wasn't retaining assigned values from one script to another.

My advice would be to have all the read/write functions for the struct in one module (so all the date will be retained) and just call those functions from your room and global scripts.

Sample Module Code:
Code: ags

struct People_Profile
  {
  string Name;
  int Age;
  bool Sex;
  };

People_Profile Humans[50];

funtion UpdateHumans (string Name, int Age, bool Sex, int HumanNum)
{
  Humans[HumanNum].Name = Name;
  Humans[HumanNum].Age = Age;
  Humans[HumanNum].Sex = Sex;
}

function ReadHumans (int WhatToRead, int HumanNum)
{
  if (WhatToRead == 1) return Humans[HumanNum].Name;
  else if (WhatToRead == 2) return Humans[HumanNum].Age;
  else if (WhatToRead == 3) return Humans[HumanNum].Sex;
}

export funtion UpdateHumans (string Name, int Age, bool Sex, int HumanNum);
export function ReadHumans (int WhatToRead, int HumanNum);



Sample Room Code
Code: ags

String GetName;
int GetAge;
bool GetSex;

function myRoomFunction()
{
  GetName = ReadHumans(1, 3); // Reads Humans[3]'s Name
  GetAge = ReadHumans(2, 0); // Reads Humans[3]'s Age
  GetSex = ReadHumans(3, 21); // Reads Humans[3]'s Sex
  Display ("Human #3's Name is %s", GetName);
  Display ("Human #0's Age is %d", GetAge);
  if (GetSex == true) Display ("Human #21's Sex is True");
  else  Display ("Human #21's Sex is False");

  UpdateHumans ("Bob", 27, false, 12);
  // Set's Humans[12] Name to Bob, age to 27, and sex to False;
}


This isn't the best or most efficient way, but it should get the job done and hopefully it puts you on the right track.
#104
Quote from: vict0r on Wed 21/05/2008 21:05:56
Hmm... Although not the best game ever, Doom 3 scared the crap out of me several times!

I agree. Doom3 is the only time I've had to take a break from playing a game just because of how much it creeped me out. Fantastic environmental immersion!
#105
I like to write up character bios and make up backgrounds for everyone. That way, as the plot is coming out I can make sense of how the character(s) will deal with the progressing story.
#106
Personally, I get annoyed when I have a huge world to explore that isn't related to the puzzles/story. Would you write a book and put chapters in there that didn't advance the plot? As much as I enjoyed Grim Fandango, I found Rubacava too large with too many useless areas for my taste. I would say use useless rooms sparingly.
#107
Can you post a sample of your code?
#108
Quote from: razing32 on Sun 18/05/2008 20:07:13
How can I "END" the game ?

Code: ags

QuitGame(0);
#109
General Discussion / Re: Have you got a pony?
Sun 18/05/2008 16:59:35
Quote from: Pablo on Sun 18/05/2008 14:17:50
I watched it ALL THE TIME and I LOVED it, ok!!! It was the best fucking show that ever aired! THERE! I said it! >:(

... fag.  :P
#110
don't define it in game start or anywhere else, except the very top of your script.
#111
try this:
Code: ags

bool origscalesetting[10];
bool origlightsetting[10];
#112
If I were in your bizarre situation, I would re-download AGS and install it to a new folder. Then I would make a whole new game with the newly downloaded AGS. Then I'd start exporting/importing sprites and making characters and copying and pasting all or portions of the global script and see if I can recreate the problem that way. I'm afraid I can't imagine what the problem is, but it sounds like some file somewhere is corrupt. The good news is you can open and edit the game, so you shouldn't have to re-code anything Might take a day of copying and pasting, though.
#113
I think you've made it harder than it needs to be.

Try this:

Code: ags

if (mouse.y < 13 && gIconbar.Visible == false)
{
  gIconbar.Visible = true;
  Mouse.UseModeGraphic(eModePointer);
}

if (mouse.y > 231 && gIconbar.Visible == true)
{
  gIconbar.Visible = false;
  Mouse.UseDefaultGraphic();
}


Then on the button clicks:
Code: ags

function IconTalk_Click(GUIControl *control, MouseButton button) {
  
  mouse.Mode = eModeTalkto;
  mouse.UseDefaultGraphic();
  gIconbar.Visible = false;
}


I hope that helps. You shouldn't have to use the global int. Unless something else effects the mouse cursor?
#114
Quote from: ProgZmax on Sat 17/05/2008 14:07:24
I bet they made millions just from hint lines back then.

This is probably why they make fun of the hint-line later in that game (in the jungle). MI2 ruled.
#115
I would keep it as a pop-up and try something like this in your repeatedly_execute function in the global script:

Code: ags

if (mouse.y < 20) gIconbar.Visible = true;
else gIconbar.Visible = false;


Tweak it depending on the height of the gui.
#116
General Discussion / Re: Now What?
Fri 16/05/2008 23:31:38
Quote from: Domino on Fri 16/05/2008 23:16:44
Play Global Thermonuclear War.

Only Matthew Broderick can do that.
#117
General Discussion / Re: Now What?
Fri 16/05/2008 21:55:44
will it run Pong?
#118
General Discussion / Re: Forum stats
Fri 16/05/2008 00:26:13
Quote from: evenwolf on Thu 15/05/2008 17:22:18
These guys have alot of internet balls. 

"e-balls"... unless you use a mac, then it's "iballs".
#119
Hey,

Lovin' this program!!!! Is it possible, in a later version, to increase the frame size so we could animate bigger characters or other kinds of animations (like jumping or something)?

Thanks!
#120
General Discussion / Re: Image Resizing tool
Tue 13/05/2008 21:09:03
Quote from: SSH on Tue 13/05/2008 20:05:19
Just pay the pron site's subscription, Joseph, and then you'll get full-size images and not just thumbnails ;)

People who pay for porn (or pron) are suckers.
SMF spam blocked by CleanTalk