In my upcoming script, I am making two locations to walk to. How would I make the script walk to one of them randomly?
(Ex: Player A walks to spot 1, but on second trip goes to spot two).
In my upcoming script, I am making two locations to walk to. How would I make the script walk to one of them randomly?
(Ex: Player A walks to spot 1, but on second trip goes to spot two).
Starting to merchant, if you know of any good clans, PM me please.
first you need to get good with walking functions then use a case or something to randomise it
eg
Hope this helpsCode:case for random(2) to begin 1: procedure to walk to a 2: procedure to walk to b. end;
If it's symbol based you can use FindSymbolIn.
With using the small procedure, would I make the walking procedures functions or just leave them as procedures?
Starting to merchant, if you know of any good clans, PM me please.
Actually Its
You should only change a procedure to funct if its nessary, functions are only diffrent to procedures because they can return things...SCAR Code:case for random(1) to
begin
0: procedure toWalkToA;
1: procedure toWalkToB;
end;
K thanks all! Now I can finally start finishing my script!![]()
Starting to merchant, if you know of any good clans, PM me please.
There are currently 1 users browsing this thread. (0 members and 1 guests)