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

#121
I think a function as Chris described it would be very useful as well, maybe not for your API, but for other uses.

EDIT
---------
My mistake... Didn't read too well what was really said and too long since I used AGS 'til now. Sorry.
#122
Look into Quest for Glory 4.5.

It's absolutely possible to make characters with evolving stats. I'm making a game like that myself just now, actually.
However, it's not something I would do as my first AGS-project as quite a lot of scripting is involved.
#123
Advanced Technical Forum / Re:Location-arrows
Wed 16/07/2003 15:34:08
I use changing mousecursors a lot. Basically, what happens in the following script (I believe you will have to use scripts for this, and you should really get into scripting, can't stress that enough!) is that whener your cursor hovers over a hotspot or object with a name, it'll animate. If the name of the hotspot is "Exit" it will animate the exit-cursor. Whenever you move the cursor out of an area, it'll return to normal state.
If you want different arrows for different directions, you'll have to call the exits "South", "North" etc and set the cursor graphic properly.

I've added a few comments to my code, but not too many. If you don't understand this right now, start scripting some more and then go through it again.

(Sorry about the indentation, is there a way to keep the indentation when posting?)

function repeatedly_execute() {
 
 //begin change mouse cursor:
GetLocationName (mouse.x,mouse.y,locationname);
if ( StrComp(locationname,"") == 0 )
  {
  SetDefaultCursor();
  cursor = 0;
  }
else
  {
  if (GetCursorMode() == 0)
     {
     if ( StrComp(locationname,"Exit") == 0) // all exits must say "Exit"!
        {
        if ( cursor != 5 )
           {
           SetMouseCursor (5); // = exitani
           cursor = 5;
           }
        }
     else if ( GetLocationType (mouse.x,mouse.y) > 0 )
        {
        if ( cursor != 8 )
           {
           SetMouseCursor (8); // = standardani
           cursor = 8;
           }
        }
     else
        {
        SetDefaultCursor ();
        cursor = 0;
        }
     }
  if (GetCursorMode() == 4) // = inv
     {
     if ( GetLocationType (mouse.x,mouse.y) > 0)
        {
        if ( cursor != 9 ) // was 5...
           {
           SetMouseCursor (9); // = invani
           cursor = 9;
           }
        }
     else
        {
        SetDefaultCursor ();
        cursor = 0;
        }
     }
  }
// end change mouse cursor

}
#124
Advanced Technical Forum / Declaring functions
Wed 16/07/2003 15:23:44
It's possible to import functions to room scripts, but is it also possible to declare a function in the top of my global script so I don't have to care about the order I write the functions?

example:
// top of script:
function addition (int,int);

//further down:
function addition (int para1, int para2)
{
return para1+para2
}

This would sometimes be pretty helpful...
#125
Ok, so what kinds of cooking facilities will be available? Sounds like you've got a house out there, but if everybody just cooks for themselves each meal will take ages...

Oh, and am I the only vegetarian going there? Would be nice if there was someone else as well so we could cook together...
#126
Advanced Technical Forum / Re:File I/O
Tue 15/07/2003 22:47:00
Yeah, that does it! Thanks a lot!
#127
Advanced Technical Forum / Re:File I/O
Tue 15/07/2003 22:24:43
Ah, yes of course. The "cursor" moves in the file when reading and writing, just like in C.

Well, thanks!

Is there anyway to perform a command that lists all .dat-files (or just all files) in the game directory? I can't seem to find any function for this.
#128
What kind of services are available there? Are there any Systembolag (where you by alcohol in Sweden for you who didn't know) and grocery store or supermarket closeby or will we have to buy all food and beer in Gothenburg?
#129
Advanced Technical Forum / File I/O
Tue 15/07/2003 21:41:25
Can anyone explain to me how the File I/O in AGS really work?
There seem to be no way of reading a specific line in a file or even reading more than one thing from a file, or am I getting this all wrong?

An examle: Say I have a file called bice.dat that looks something like this (I guess the file format looks somewhat different but never mind for now):

"This is a string
5 10
15
-- EOF --"

Now I'd like to read the first line into a string and the numbers into three different integers. Would this be possible in any way? And how do I make a file that actually look like this?

If anyone wonders I'm once again trying to expand the limits of AGS a little, this time by making a little play-by-email game...
#130
Very well spoken, Andail, as always! I really recognise myself in that situation, I think we must've joined at about the same time...
This is almost material for a sticky in here (if there were'nt plenty of them already and no one ever reads them anyway...).
Man, I have so much respect for some of you guys right now!
#131
General Discussion / Re:Yufster HATE Thread.
Tue 15/07/2003 20:39:32
I know feel I should've read this thread through before posting in the love-thread, but done is done.

Full respect to DG and Helm and everybody else who contributed to this discussion.

I guess I'm considered an oldie, although I don't quite feel like one, probably because I've been here only in periods and during long times haven't been very engaged in these forums nor in adventure game making. At the moment I really feel like a newbie, not contributing too much to the community and making too many % of my posts about other things than adventure game making. That makes me probably overtolerant about the kind of newbies that Helm and DG talk about and makes me think a great deal myself about my role in this community. I hope more people do this.

Just remember: This is not an anti-newbie thread! It's just about getting newbies, and others, something to think about.

But again, love to y'all!
#132
General Discussion / Re:Yufster LOVE Thread
Tue 15/07/2003 20:02:00
Beacause PeaceMan, Flippy is God! His word is your law. What if he thinks it's inappropriate? SO!? It's what you think that matters.

I send my love and support to everybody around here. I don't care if this is a joke thread or if Helm's is a joke thread (I didn't get much out of that thread, but I think someone is probably overreacting to something. I won't say anything about it though as I don't know the whole story, but hate is a strong word... My, what a long paranthesis, I think I make it just a little bit longer. There. Period). None of them might be very constructive, really, but I think it was a good thing of undergroundling to start this one.

Love to you, Yufster, love to you, Helm, and love to everybody else.

Hippish enough for you?
#133
Hm, I feel slightly ignored in this thread... Well, well I'll probably have to suit myself for not starting a new thread on the subject, which I might just do.

But doesn't anybody have any positive feedback on my idea?
#134
Doesn't seem anyone has it :\

If you want to be free from spyware, use Kazaa Lite. http://www.k-lite.tk
#135
Critics' Lounge / Re:Graphics Tablets advice
Mon 14/07/2003 15:42:45
Yeah, Painter is what to aim for although most advanced programs nowadays have quite good support for tablets.
If you want free software I've heard Pixia is good with tablets as well.
#136
Ryan air is pretty safe. Only one plane in ten crashes.
#137
But the downloading times wouldn't have to be too long. In this case mp3 is actually not a problem to use as the compression is only performed once. At a rate of 160kpbs or higher you wouldn't hear the difference (if you say you do I say you lie). A loop would only be a few hundred kb at most. If you're on a slow connection, just use fewer loops.

And you can definately learn things from other musicians with this method as well, only you cannot see exactly what they've done but rather have to use those ears of yours ;)

I'm totally confident about this idea as long as someone can offer some webspace. A good idea would also be some kind of login-system for members as good samples are quite valuable out there...
#138
As my soundcard doesn't have any midi sounds at all I unfortunately can't join this (which btw should be in that other forum, I think).
But I do have an idea for another form of music collaboration, using audio (as opposed to midi, but actually midi could be used as well).
Basically, what we could do is upload loops or melodies in a certain tempo to an ftp or http or something (if someone has the possibility to set one up - I'm afraid I don't). Then we all could use our favorite music program to put those together into complete songs. It would be really really cool to see how the same loops would be part of totally different songs.
What do you think?
If anyone's interested in hosting some webspace (quite a lot would unfortunately be needed), I can organize it all.
#139
General Discussion / Re:Kid Antrim Music
Wed 09/07/2003 00:46:20
Paying $50 to be on some crappy compilation that you've heard about on the internet is not a good way to try to get into the music buisiness...

My advice is to contact a publishing company and try to get a deal with them. It's usually a lot easier than getting a deal with a record company (if that's what you want...). Once you've got one of publishing company interested in you, you have a lot bigger chance to get exposed to people in the buisiness.

Or just try to publish your music by yourself through the internet. CD is a dying media anyway. Digitally distributed music is the future although the major record companies tries to halt it any way they can until they find a way to make the big bucks on it.
#140
Hm, an electric guitar... I guess I could. I have a cheesy little amp as well, though I'ts not one of those battery ones so we'll need power from somewhere.
Maybe we could build a generator, stick it to someone's member and put him in a tent with loads of porn?

But I'm not sure I'd want to bring an elguit... An acoustic one is so much more moody for those campsite nights. Unfortunately I don't have a case for my acou...
And I'm still not 100% sure I'll come either. I might have to work :\
SMF spam blocked by CleanTalk