.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Digital Eel > Weird Worlds: Return to Infinite Space > Scenarios and Mods

 
 
Thread Tools Display Modes
  #11  
Old November 14th, 2007, 08:41 PM

mantari mantari is offline
Private
 
Join Date: May 2007
Posts: 38
Thanks: 0
Thanked 1 Time in 1 Post
mantari is on a distinguished road
Default Re: RANDOM GENERATOR PROTOTYPE

Actually, there is something special. Two somethings.

1] Putting the randomizer in haven.ini will ensure that it is that it is always run, yes. But more importantly, it makes sure that it is the first script run (assuming no other strange mods). This makes sure that a random number is seeded, before you rely on it to be used in other scripts.

2] The player won't already have inventory items which will muck up the code, which is based on what lifeforms are randomly placed into their inventory. If you run this code in a different star system, his existing inventory will affect the random number generation, and any lifeforms in his posession will be wiped out.
  #12  
Old November 15th, 2007, 08:17 PM
Fingers's Avatar

Fingers Fingers is offline
Sergeant
 
Join Date: Jun 2005
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
Fingers is on a distinguished road
Default Re: RANDOM GENERATOR PROTOTYPE

You can and should do this in a new quest file. Just set it up exactly like haven.ini and it'll be triggered at the same time (ie. when you first "arrive" at Hope). There's nothing hard-coded in the game to handle any particular quest differently from others.
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:03 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.