Blockland Forums > Suggestions & Requests
Bot Events - Weapon Randomizing
Kamutog:
--- Quote from: The Resonte! on August 31, 2013, 01:26:39 PM ---Yeah you can't assign it to certain weapons.
the only other way is to make a randomization system with events to toggle different kinds of
OnBotSpawn -- Bot -- setWeapon
--- End quote ---
I tried doing that, I can't get my head around doing it I just can't keep track of what each enable/disable event is even doing.
The Resonte!:
--- Quote from: Kamutog on August 31, 2013, 01:27:23 PM ---I tried doing that, I can't get my head around doing it I just can't keep track of what each enable/disable event is even doing.
--- End quote ---
what's your events
Kamutog:
--- Quote from: The Resonte! on August 31, 2013, 01:48:15 PM ---what's your events
--- End quote ---
I cleared them after giving up, but I think it was something like....
[ ][0] OnBotSpawn--Bot--SetWeapon [ Gun A]
[ ][1] OnBotSpawn--Bot--SetWeapon [ Gun B]
[ ][2] OnBotSpawn--Bot--SetWeapon [ Gun C]
[Enabled] [5] OnBotDeath--Self--setEventEnabled [0 1 2] [ Disable ]
[Enabled] [4] OnBotSpawn--Self--SetEventEnabled[6 7]
[ ] [6] OnBotSpawn--Self--SetEventEnabled [ 0 ] [Enable]
[ ] [7] OnBotSpawn--Self--SetEventEnabled [6 7] [Disable]
That is about when I gave up.
The Resonte!:
--- Quote from: Kamutog on August 31, 2013, 01:58:26 PM ---I cleared them after giving up, but I think it was something like....
-stuff-
That is about when I gave up.
--- End quote ---
try making a stack of plates like...
--- Quote ---88888888
[8x8 plate. OnRelay -- Self -- spawnProjectile 0 0 -1 [projectile, doesn't really matter. sends it downwards
to the 33322333]
33322333
[3x8, 2x8, and 3x8 plates. Each of these should contain OnProjectileHit -- [Botspawnbrick] -- SetEventEnabled [blah blah blah. the numbers should be different for each brick
to enable only 1 of your 3 weapons and disable the rest]
--- End quote ---
sending a relay to the 8x8 plate spawns a projectile from a random place in the 8x8 plate,
hitting one of the 3 bricks, and enabling and disabling certain events.
this might work so good luck
it's pretty complicated
Evar678:
You know this is easily done with VCE, right?