Nexus Modding > Scripting

Scripting Issues

<< < (13/25) > >>

The Old Dragon:
Use two single quotation marks to mimic the character. It may not look quite right in the actual dialog.ini file, but in the game you'd never tell it's two singles.

Mularac:
A simple question whose answer I'm already fearing: Is it possible to keep missiles on route to their target to not be vaporized when their mothership is destroyed/wrecked (can't really remember which one is it...)?

Mularac:
hey, do you know if it is possible to determine a ship's relative size?
and on other factor, how does the "weight" variables work?

Arparso:

--- Quote ---hey, do you know if it is possible to determine a ship's relative size?
--- End quote ---
I only know the radius variable, which gives the radius of an invisible sphere enclosing the whole ship... it's a good approximation for the overall size of the ship, if the ship's design isn't too exotic.


--- Quote ---and on other factor, how does the "weight" variables work?
--- End quote ---
Which weight variables?  ?(

Mularac:

--- Quote --->   Choose(weight1, command1, weight2, command2, …., weightN, commandN);
It chooses randomly from N pieces of possibilities, according to the weight (’weight1’ .. ’weightN’). If every weight is 0, than it doesn’t do anything; implicitly, if only one weight is bigger than 0, than it will choose that line – with this you can virtually implement the SWITCH-CASE command that is known from C. ’Command’ here and everywhere else can contain several script commands that are separated by semicolons.

--- End quote ---


--- Quote --->   SelWeightMul(list, mul, condition);
Where the ’condition’ returns with 1, it multiplies their weight by ’mul’.

--- End quote ---

etc...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version