Difference between revisions of "Tie Tutorial"

From WikiManual
Jump to: navigation, search
(More to come)
 
(Some more stuff + structure)
Line 37: Line 37:
 
  end
 
  end
  
We're going to be using him to demonstrate each of the things I show you.
+
We're going to be using him to demonstrate some cool things using ties.
  
 
== Ties ==
 
== Ties ==
  
Ties are connections between bots that can be fired by putting a positive number into [[.tie]]. The number that you put into .tie will be the tie's ID.  
+
Ties are connections between bots that can be fired by putting a positive number into [[.tie]].  
  
If you want to [[.deltie|detete]] a tie, [[.tieang|change]] or [[.fixang|fix]] it's angle, or [[.tielen|change]] or [[.fixang|fix]] it's length, you will need to use the tie's [[Tie ID|ID]]
+
== Tie ID ==
 +
 
 +
The number that you put into .tie will be the tie's ID.
 +
 
 +
If you want to [[.deltie|detete]] a tie, you will need to put the tie's ID into [[.deltie]]. If you want to [[.tieang|change]] or [[.fixang|fix]] the angle of a tie, or [[.tielen|change]] or [[.fixang|fix]] it's length, or if you want to feed through a tie or use it to alter another bot's memory values you will need to store the tie's [[Tie ID|ID]] into [[.tienum]].
 +
 
 +
=== Tiepres ===
 +
 
 +
You can readback the value of the last tie created by using [[.tiepres|*.tiepres]]. For example:
 +
 
 +
*.tiepres .tienum store
 +
 
 +
Will select the last tie created.
 +
 
 +
== Deleting ties ==
 +
 
 +
(Work in progress)
 +
 
 +
=== Deleting the Birth Tie ===
 +
 
 +
(Work in progress)
 +
 
 +
== Selecting a Tie ==
 +
 
 +
(Work in progress)
 +
 
 +
== Feeding through a tie ==
 +
 
 +
(Work in progress)
 +
 
 +
=== Leaching and Counter-Leaching ===
 +
 
 +
(Work in progress)
 +
 
 +
== Sharing ==
 +
 
 +
(Work in progress)
 +
 
 +
== Multibots ==
 +
 
 +
(Work in progress)
 +
 
 +
=== Batterybots ===
 +
 
 +
(Work in progress)
 +
 
 +
== Changing the Angle and Length of Your Tie ==
 +
 
 +
(Work in progress)
 +
 
 +
== The Tie-Reference Variables ==
 +
 
 +
(Work in progress)

Revision as of 10:09, 19 February 2006

Meet Animal Minimalis

This is Animal Minimalis: (He's been slightly modified to produce offspring with more energy, but otherwise he's the same)

'Animal Minimalis
'by Nums

cond
 *.eye5 0 >
 *.refeye *.myeye !=
start
 *.refveldx .dx store
 *.refvelup 30 add .up store
stop

cond
 *.eye5 50 >
 *.refeye *.myeye !=
start
-1 .shoot store
 *.refvelup .up store
stop

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

cond
 *.nrg 15000 >
start
 30 .repro store
stop
end

We're going to be using him to demonstrate some cool things using ties.

Ties

Ties are connections between bots that can be fired by putting a positive number into .tie.

Tie ID

The number that you put into .tie will be the tie's ID.

If you want to detete a tie, you will need to put the tie's ID into .deltie. If you want to change or fix the angle of a tie, or change or fix it's length, or if you want to feed through a tie or use it to alter another bot's memory values you will need to store the tie's ID into .tienum.

Tiepres

You can readback the value of the last tie created by using *.tiepres. For example:

*.tiepres .tienum store

Will select the last tie created.

Deleting ties

(Work in progress)

Deleting the Birth Tie

(Work in progress)

Selecting a Tie

(Work in progress)

Feeding through a tie

(Work in progress)

Leaching and Counter-Leaching

(Work in progress)

Sharing

(Work in progress)

Multibots

(Work in progress)

Batterybots

(Work in progress)

Changing the Angle and Length of Your Tie

(Work in progress)

The Tie-Reference Variables

(Work in progress)