Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Shade on Sun 23/01/2005 21:14:44

Title: your functions to make life easier!
Post by: Shade on Sun 23/01/2005 21:14:44
post your funktions here please!
Title: Re: your functions to make life easier!
Post by: Radiant on Sun 23/01/2005 21:41:54
Anything specific you're looking for? I don't think posting my global script here would be all that useful.

How about this:

#define here character[GetPlayerCharacter ()].room

Title: Re: your functions to make life easier!
Post by: Pumaman on Sun 23/01/2005 21:58:52
If you're after anything in particular, please say so. Otherwise, I'll delete this topic.
Title: Re: your functions to make life easier!
Post by: Gilbert on Mon 24/01/2005 01:53:15
Quote from: Pumaman on Sun 23/01/2005 21:58:52
Otherwise, I'll delete this topic.
No, I think locking it is a better choice, so people won't repost as they thought their posts dieappeared.
Title: Re: your functions to make life easier!
Post by: Shade on Mon 24/01/2005 14:02:51
 ???

i'm don't looking for anything! i just wanted that some people post usefull functions for other members that makes their life easier. e.g. :

function pick(int obj, int inv){
  objx = GetObjectX(obj);
  objy = GetObjectY(obj);
  MoveCharacter(GetPlayerCharacter(),objx,objy);
  while(character[GetPlayerCharacter()].walking)Wait(1);
  ObjectOff(obj);
  AddInventory(inv);
}

if someone asks : how do i make the character walk to the objekt i clicked on  wait till he is there and then pick it up and additem xyz?

then he can look at this thread and sees this funktion i posted and says a yes i only have to use this simple function and my character does everything automatic!

my thought was to creat a thread which collects functions!
Title: Re: your functions to make life easier!
Post by: Ishmael on Mon 24/01/2005 17:28:52
The tech archive is here for that kind of stuff, if you need something, go wandering in there and if You don't find the answer, come here to ask. But before anything else, use your own brain and try to think the functions up. This way they'll suit your purpose the best possible way.
Title: Re: your functions to make life easier!
Post by: Gilbert on Tue 25/01/2005 00:58:33
And so I'll say it's enough...