Recent content by de dood

  1. D

    Scripting tips needed

    1. Put a call to tile_num in the critter_p_proc procedure to check if the critter is in one of the tiles. If it is at A, move it to B, else if at B move to A etc. Use animate_move_obj_to_tile to move the critter. You could also put the above in a timed procedure to avoid calling tile_num so often.
  2. D

    Attaching my scripts to critters (compile question)

    No. talk_p_proc is a procedure and it must be declared in the script (but you have declared it, so that it not the problem.) Reply and NOption are defined in command.h IIRC. There is the noids IPP decompiler, but I don't have a link to it at hand. A number of the script sources can be found...
  3. D

    Attaching my scripts to critters (compile question)

    I don't see anything wrong with it. But just in case, double check if you have updated scripts.h (in the mapper directory), scripts.lst (in the game directory) and that your script, bill.int is really in the right directory. Also, if you are using Dscript, there is a new version out that fixes a...
  4. D

    Attaching my scripts to critters (compile question)

    Well, yes and no. Some of the macros in command.h already include a semicolon after the macro, some of them don't. Furthermore, you can't put a semicolon after some of the macros because the macro might be a an if statement or a while statement (this works in C/C++/Java but not in Pascal)...
  5. D

    checking lvars en mvars

    See map_var, local_var and set_map_var, set_local_var. You need to update a couple of files to use variables, see the link in my sig, and go to the scripting tutorial, section bits and pieces.
  6. D

    Question about scripting and mathematical functions.

    I discovered that the code leads to integer overflows for larger values. This should work better, although the results will be rounded up instead of down. It also fixes the problem with sqrt(1) result := 0; while (n - (result * result) > 0) do begin result := result + 1...
  7. D

    Question about scripting and mathematical functions.

    I forgot one thing. If n = 1, the sqrt(1) = 1. You need to explicitly check for that case. For all other numbers that algorithm is ok.
  8. D

    Question about scripting and mathematical functions.

    Here is a brute force algorithm: (the result is the real sqr with fractions dropped): procedure someProc begin variable n; // set n to be the number whose root you want to compute variable result; // result will contain the root when we are done variable min; // temp...
  9. D

    Question about scripting and mathematical functions.

    I don't think there is any support for it in the language, but why not write the algorithm yourself? Google for square root algorithm.
  10. D

    How to use the script compiler

    About the functions. Take a look at these commands in the manual for starters: kill_critter (to kill the critter) gfade_out / gfade_in (to fade the screen) create_object (to create gecko
  11. D

    ABOUT SCRIPT EDITORS (FSE==>FALSE)

    <shameless plug> Well, you might want to take a look at a little tool I've written. Link in my sig.
  12. D

    what am I doing wrong?

    Well, TBH, sometimes the game just crashes for no good reason. But there are a couple of things you can try out. Make sure you edit all the entrances to artemple so that they will put dude in a location that exists. I.e a valid hex and a valid level of the map. Do the same for all exits from...
  13. D

    Car location

    You'll have to deal with the car in your map script. Check out fro instance ARBRIDGE.ssl. Basically, you destroy and create the car each time the map is entered and left.
  14. D

    Fallout Prototype Editor on the way - NEED HELP...

    Not sure if this is helpful, but here is a link to the specification of the gzip format. http://www.gzip.org/zlib/rfc-gzip.html If you don't want to write/port the gzip stuff yourself, you still have a couple of options: 1) Try to find a pascal library that implements gzip. I'm sure...
  15. D

    In-depth scripting question

    You need to play the VSUIT_MOVIE. It's hardcoded in the game. Try reading this thread, over at DAC (it's a long thread, I warn you) http://www.duckandcover.net/forums/viewtopic.php?t=4888
Back
Top