Aller au contenu

Photo

New to Scripting; Issues with adapting the Infinite Desert Spawn scripts


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
tenor_general

tenor_general
  • Members
  • 17 messages

Hey all,

 

I'm trying to get the x0_i0_infdesert spawn script to work, and am coming up empty.  At first glance, it seemed like a very good way to set up a system of random encounters that actually spawn groups of similar creatures rather than just clones of creatures, but when using the scripts included, I get errors trying to compile it, with unknown functions and unknown constants.

 

Would you guys suggest I try to create a system of my own, or am I just being dense and missing something fairly obvious?

 

Thanks for any advice.



#2
3RavensMore

3RavensMore
  • Members
  • 703 messages

I can't give you advice on what you want to accomplish, but I can tell you that x0_i0_infdesert and an include file for x0_i0_infinite.  You must compile x0_i0_infinite and it will in turn compile x0_i0_infdesert.  Any other script that includes x0_i0_infdesert will also need to be recompiled each time you change x0_i0_infdesert.

 

Here's the NWN Lexicon specifics on #includes: http://www.nwnlexico...p?title=Include



#3
Baaleos

Baaleos
  • Members
  • 1 322 messages

Assuming you are using the include file properly, you should compile the script that uses the include file - not the include file itself.

When in doubt - use the Build -> Compile all scripts option from your modules build menu. This will automatically build all scripts and includes as needed.

Assuming you are using the #include "script_name"  in the header of your script.