your functions to make life easier!

Started by Shade, Sun 23/01/2005 21:14:44

Previous topic - Next topic

Shade


Radiant

Anything specific you're looking for? I don't think posting my global script here would be all that useful.

How about this:
Code: ags

#define here character[GetPlayerCharacter ()].room


Pumaman

If you're after anything in particular, please say so. Otherwise, I'll delete this topic.

Gilbert

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.

Shade

 ???

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!

Ishmael

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.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Gilbert


SMF spam blocked by CleanTalk