Thread

random build (Bots)

random build // Bots

1  |  

swe

Oct 27, 2001, 10:09am
Hey yall,its me, AGAIN! god its like i never shut up! :)

well anyway,i was wondering if anyone knows how i can have a bot put a
certain object randomly between a bunch of coords i give it,like say i have
the coords 2s 2e,3s 3e 4s 4e, etc and it randomly chooses one of those
coords and places the object there. thanks to those who help me, and screw
you to those who think im dumb and ask too much questions(even though its
true) :)

lanezeri

Oct 27, 2001, 2:01pm
First, it's not good to say "screw you to those who think im dumb and ask
too much questions" because then people don't respond to you..

Dim X As Integer
Dim Z As Integer
Do Until X <> 1 And Z <> 1
X = Int(Rnd * 4) + 1
Y = Int(Rnd * 4) + 1
Loop

That gives a random number that is either 2, 3, or 4. To change it, if you
don't care how LOW the number goes remove the Do, Loop statement; if you
want it higher than 4 change the 4 in the Int(Rnd * 4) + 1 statement.
--

Thanks,
Ricky Lipe

Degtur Solutions at http://www.degtur.com
Stuff-X at http://aw.stuff-x.com


[View Quote]

swe

Oct 27, 2001, 3:08pm
its alright,i got the code thing,know im tring to put it together :)
thanks anyway :)

SWE(327320)
[View Quote]

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn