NCDS
2010-09-14 02:24:36
This thread is meant to educate everyone on how to use MSI's PriorityAutoing feature.
What is it?
With PriorityAutoing MSI now gives users the ability to give certain objects a priority over others, so they may be found first the majority of the time.
How it works:
If you wish to use the PriorityAutoing feature you will need to assign a numerical value to each Object declared in the Objects array in DeclarePlayers.
Example:
If the user chooses not to fill out the 'Priorities' array, or fills it out incorrectly, then the 'Objects' array will just be searched through randomly.
Hopefully that's understandable, it's quite late :yawn:
What is it?
With PriorityAutoing MSI now gives users the ability to give certain objects a priority over others, so they may be found first the majority of the time.
How it works:
If you wish to use the PriorityAutoing feature you will need to assign a numerical value to each Object declared in the Objects array in DeclarePlayers.
with MSI_Players[1] do
begin
Name := '';
Pass := '';
Nick := '';
Pin := '';
Active := True;
Member := False;
Location := ;
Scripts := [];
Objects := [[]];
Priority := [[]]; //Here
Loads[0] := ;
Loads[1] := ;
end;
As you can see, the 'Priority' array is a multidimensional array just like the 'Objects' array. Example:
Objects := [[OBJ_TREE, OBJ_OAK, OBJ_YEW]];
Priority := [[20, 20, 60]];
As you can see in the above example, the sum of all the values in the 'Priority' array add up to 100. Therefore, in this example 'OBJ_YEW' will have a 60% chance of being first in the array, while 'OBJ_TREE' and 'OBJ_OAK' both would have a 20% chance.If the user chooses not to fill out the 'Priorities' array, or fills it out incorrectly, then the 'Objects' array will just be searched through randomly.
Hopefully that's understandable, it's quite late :yawn: