Accueil Crush your enemies... and create an EMPIRE!!! Space Empires V -- BUY NOW!!!

Connexion utilisateur

  • Créer un nouveau compte
  • Demander un nouveau mot de passe

Navigation

  • news
    • archive
    • blogs
    • books
    • forums
    • recent posts
    • groups
  • image galleries
  • projects & downloads
  • search
  • create content
  • agrégateur de nouvelles

Rechercher

Qui est en ligne

Il y a actuellement 3 utilisateurs et 69 invités en ligne.

Utilisateurs en ligne

  • Brad
  • Faithful
  • Rilo57

Languages

  • English English
  • French French

Parcourir les archives

« December 2008  
Mo Tu We Th Fr Sa Su
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Accueil » news » forums » Support & Feedback » Scenarios & Mods » SE:V MODs

Random number generator?

Image de bearclaw
Soumis par bearclaw le Mer, 2006-11-08 19:26 SE:V MODs

Does anyone know if there is a value that can be used in formulas to generate a random number in a specific range? I looked through the MainStrings.txt but could have easily missed something.

‹ Weapon Mounts More racial/government modifiers ›
» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Options d'affichage des commentaires

Sélectionnez la méthode d'affichage des commentaires que vous préférez, puis cliquez sur "Sauvegarder les paramètres" pour activer vos changements.
Image de Rilbur

Hrm...

Soumis par Rilbur le Jeu, 2006-11-09 01:06

I don't think yo'ure going to find that. What do you want it for? Most places I can think of where it might be useful, the game isn't exactly set up very well to use it.

There are 10 types of people in the world:

Those that understand binary, and those that don't.

» Vous devez vous identifier ou créer un compte pour écrire des commentaires
Image de Kamog

Random number generation

Soumis par Kamog le Jeu, 2006-11-09 01:12

There is a Random(A, B) function that returns a random number between A and B. To see an example, take a look at Formulas.txt where it generates the values for a planet's gravity, temperature and radiation.

» Vous devez vous identifier ou créer un compte pour écrire des commentaires
Image de Rilbur

Careful

Soumis par Rilbur le Jeu, 2006-11-09 01:46

Just be careful where you use it, I don't think components/vehicle sizes are good places for example. (I'd love it if there were some way to incorporate it into weapon damage, but ATM it looks like the game processes the random command once and once only, probably during the game creation, and we know that it only reads and calculates formulas as save game load/game creation).

edit:

If what you need is a WEIGHTED random roll, just set it to a large range and give the higher weights more "values" with an iif statement.

There are 10 types of people in the world:

Those that understand binary, and those that don't.

» Vous devez vous identifier ou créer un compte pour écrire des commentaires
Image de bearclaw
Mod Designer

I'm trying out something

Soumis par bearclaw le Ven, 2006-11-10 13:34

I'm trying out something that I always wanted to create for SEIV but couldn't. I'm creating a mod where (hopfully, if the ability works) all warp points flucuate. all existing warp points close and open at random intervals. I'm also hoping to put in open/close events that create/destroy random warp points as well.

WarpEx Mod. I want to have random values so that you wouldn't know that X warp point opens every 2nd turn.

Actually, now that I think about it... I think I will have some warp points predictable. yeah, that's a good idea.

My hope is that there will be some warp points that will be random to the same locations, some that are predictable to the same locations and some totally random in their locations and durations.

Nick (bearclaw)

"You don't know the Power of the Dark Side. I must obey my Master"

» Vous devez vous identifier ou créer un compte pour écrire des commentaires
Image de Rilo57

I noticed that there is a

Soumis par Rilo57 le Lun, 2006-11-13 19:43

I noticed that there is a tonnage notation on the warp points, I haven't checked yet, but it seems to me that this indicates some warp points could have a max ship size it would let through. You might be able to have this max tonnage fluctuate also... cool.

» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Options d'affichage des commentaires

Sélectionnez la méthode d'affichage des commentaires que vous préférez, puis cliquez sur "Sauvegarder les paramètres" pour activer vos changements.

Now on STEAM

Now on STEAM!Space Empires V via STEAMSpace Empires IV via STEAMSTEAM online by Valve Corporation

Contenu populaire

Aujourd'hui :

  • Research By Percentage SUCKS
  • Is the Patch Process Dead, and Other Thoughts...
  • Known SE5 v1.74 Bugs
  • Space Empires V 1.74
  • Babylon 5 Wars SEV Mod Update

Depuis toujours :

  • Space Empires V and VI: Expansions and the Future: Tell the Company What's on Your Wish List
  • Space Empires V
  • Gritty Galaxy Fleet Clash
  • Damn Dirty Bugs/Annoyances
  • Space Empires V: General Thoughts, Observations, and Suggestions

Dernier accès :

  • Known SE5 v1.74 Bugs
  • Has anyone noticed that if you run in Windowed mode, it doesn't do flakey stuff near as often?
  • Tactical Combat graphics glitch
  • Need Help (like all the others)
  • How to use Weapon Mounts?
(c) Strategy First, Inc. All rights reserved.