[T1] Scripting question

Amadeus
09-12-2003, 01:03 PM
How can I use more scripts at a time wich modify the same function (i.e. not an event so Event::Attach() can not be used)?

Brain^Virus
09-12-2003, 02:48 PM
In short, you can't. But that does't mean there aren't work-arounds depending on what you're trying to do. So what, precisely, are you trying to do?

Amadeus
09-12-2003, 03:13 PM
Oh, hi Virus! Actually, I was trying to write a script that, when you go over a pack, checks your current pack, compares it with the pack on the ground, and if the dropped pack has a higher priority in your preset list of packs then the current one it automatically drops your pack and picks up the new one.

This could be done client-side, can't it? All it needs is to get %object from player::oncollision();.
And there's the problem, becouse you know best that my fall script also has modifications in that function, so if I execute my fall script and after that the packdrop script then the fall script won't work, and vice versa.

Oh, BTW, did you get the latest copy of my script?

Timalis_
09-12-2003, 03:42 PM
player::oncollision();
Is a server side function, so unless you are making it into a mod, then it won't help much...

Can't read client side what is at your feet, unless you mod a server script to tell yo uwhen you run over certain things, which adds proccessor time whenever anyone runs over/collides with an object, has to do that much more parsing.

Amadeus
09-12-2003, 04:12 PM
Damn. Never mind then.

It might be a dumb question, but which functions are client-side (or server-side, which ever list is shorter)? I'd like to make some client-side scripts and it would be good to know what I can use and what I can't.

Timalis_
09-12-2003, 04:16 PM
anything in the config folder is client side.. anything that is stored in vol files outside the config folder, aka in base older, are pretty much server side only. As they conmtrol the base design of the game, and if you have it on your system, and go play in a server, won't matter unless the server ahs the same script modifications that you have in those script files.
Think I am just being confusing though.

Amadeus
09-12-2003, 04:41 PM
No, I get it, thanks. Not much for the first look, but I'll see what I can do with it. :)