Difference between revisions of "Talk:Humilis"

From WikiManual
Jump to: navigation, search
m
m
Line 1: Line 1:
 
I think doing 7 rnd for both the refvar and myvar part will produce numbers unlikely to be the same.  If you want to test the same refavr to myvar combination, you'll need to save that 7 rnd to a memory location to use later.  Or come up with something incredibly ingenious.  Or use dup.  Whichever you want ;)  --[[User:Numsgil|Numsgil]] 09:42, 28 Oct 2005 (MST)
 
I think doing 7 rnd for both the refvar and myvar part will produce numbers unlikely to be the same.  If you want to test the same refavr to myvar combination, you'll need to save that 7 rnd to a memory location to use later.  Or come up with something incredibly ingenious.  Or use dup.  Whichever you want ;)  --[[User:Numsgil|Numsgil]] 09:42, 28 Oct 2005 (MST)
 +
 +
----
 +
 +
use NewMove
 +
 +
:Is this use NewMove part of the bot code?
 +
:and something that can be added to older bots for use in 2.4x?
 +
:and if so ... will they still work in pre 2.4x versions?
 +
:how does this work? Is there a subroutine/function "NewMove" in 2.4x then that
 +
:somehow shunts the 'multiplication' of the accerations in old bots?
 +
:please share your thinking so we aren't left out in the cold, eh. ;) {{User:Griz/sig}} 09:26, 5 Nov 2005 (MST)
 +
 +
'Humilis
 +
 +
cond
 +
start
 +
'Naval Cord Removal
 +
.tie *.robage sgn 1 sub -1 mult mult
 +
.deltie *.robage 1 sub sgn 1 sub -1 mult mult
 +
add inc
 +
'this should do the trick to allow both tie and deltie to use same inc
 +
stop
 +
 +
cond
 +
*.robage 20 mod 0 =
 +
'Finally figured out how to use mod handily :)
 +
start
 +
7 rnd 50 store
 +
stop
 +
 +
cond
 +
'Gene should allow bot to test amongst 8 different refs randomly
 +
.refup *50 add * .myup *50 add * !=
 +
*.eye5 37 >
 +
start
 +
'Cheap shots :)
 +
.shoot dec
 +
stop
 +
 +
cond
 +
*.nrg 5000 >
 +
start
 +
200 .aimdx store 'i had to put some iflamma consepts in there -bau
 +
50 .repro store
 +
stop
 +
 +
cond
 +
*.eye5 0 >
 +
*.refeye *.myeye = and
 +
*.eye5 0 = or
 +
start
 +
314 rnd .aimdx store
 +
stop
 +
 +
cond
 +
*.eye5 0 >
 +
*.vel 20 <
 +
start
 +
20 *.vel sub
 +
2 div
 +
*.body mult 1000 div
 +
.up store
 +
stop
 +
end

Revision as of 11:26, 5 November 2005

I think doing 7 rnd for both the refvar and myvar part will produce numbers unlikely to be the same. If you want to test the same refavr to myvar combination, you'll need to save that 7 rnd to a memory location to use later. Or come up with something incredibly ingenious. Or use dup. Whichever you want ;) --Numsgil 09:42, 28 Oct 2005 (MST)


use NewMove
Is this use NewMove part of the bot code?
and something that can be added to older bots for use in 2.4x?
and if so ... will they still work in pre 2.4x versions?
how does this work? Is there a subroutine/function "NewMove" in 2.4x then that
somehow shunts the 'multiplication' of the accerations in old bots?
please share your thinking so we aren't left out in the cold, eh. ;) Griztalk 09:26, 5 Nov 2005 (MST)
'Humilis

cond
start
'Naval Cord Removal
.tie *.robage sgn 1 sub -1 mult mult
.deltie *.robage 1 sub sgn 1 sub -1 mult mult
add inc
'this should do the trick to allow both tie and deltie to use same inc
stop

cond
*.robage 20 mod 0 =
'Finally figured out how to use mod handily :)
start
7 rnd 50 store
stop

cond
'Gene should allow bot to test amongst 8 different refs randomly
.refup *50 add * .myup *50 add * !=
*.eye5 37 >
start
'Cheap shots :)
.shoot dec
stop

cond
*.nrg 5000 >
start
200 .aimdx store 'i had to put some iflamma consepts in there -bau
50 .repro store
stop

cond
*.eye5 0 >
*.refeye *.myeye = and
*.eye5 0 = or
start
314 rnd .aimdx store
stop

cond
*.eye5 0 >
*.vel 20 <
start
20 *.vel sub
2 div
*.body mult 1000 div
.up store
stop
end