Differences

This shows you the differences between the selected revision and the current version of the page.

de:topics:a_detailed_sample_for_the_robot_control 2008/11/27 18:59 de:topics:a_detailed_sample_for_the_robot_control 2009/05/08 19:49 current
Line 1: Line 1:
-====== Predefined behavior with ROBOT.txt ====== +====== Vordefiniertes Verhalten mit ROBOT.txt ====== 
-See also: "[[:documentation:all_commands_premium#robot_0_1|robot]]" \\ +Siehe auch: "[[:de:documentation:all_commands_premium#robot_0_1|robot]]" \\ 
--> [[:documentation:all_robot-commands|All Robot-Commands]] \\+-> [[:de:documentation:all_robot-commands|Alle Roboter-Kommandos]] \\
-File c:\...\PikkuBot\config\**Botfirstname_Botlastname-ROBOT.txt**:+Datei c:\...\PikkuBot\config\**Bot_Name-ROBOT.txt**:
-** Create this file in the \PikkuBot\config\ directory. This file has to contain one Robot command in each line. Parameters follow in the same line separated by a [Tab]. ** \\+** In diese Datei wird pro Zeile ein Roboter-Befehl eingetragen. \\ Parameter folgen in der selben Zeile, vom Kommando per [TAB] getrennt. ** \\
-===== A detailed sample for the Robot control =====+===== Einfaches Roboter-Beispiel ===== 
 + 
 +<code> 
 +# einfaches Robot - Script 
 +# Du kannst Kommentare mit einem "#" als ersten Charakter setzen 
 + 
 +sit    58f9545f-2f66-2cf1-cfcc-666c7bdcb9ad 
 +pause    720 
 +stand 
 +say    Ok, battery's loaded again 
 + 
 +move    39,234,21 
 +pause    5 
 + 
 +# ich bevorzuge "move" anstatt "position" da in diesem Fall die Koordiante nicht exakt  
 +# erreicht werden muss, sondern der Bot ein Zeitfenster (durch "pause") erhält, in dem  
 +# er ankommen sollte, sonst zum nächsten Kommando weiterspringt. 
 + 
 +move    34,217,21 
 +pause    10 
 + 
 +move    57,207,21 
 +pause    15 
 + 
 +# ... 
 + 
 +</code> 
 +\\ 
 +~~UP~~ 
 +---- 
 + 
 + 
 +===== Ausführliches Roboter-Beispiel =====
<code> <code>
Line 13: Line 45:
# Special Bot-Script - [c] 2007 Eves Sinister # Special Bot-Script - [c] 2007 Eves Sinister
# #
-# define the start point+# Hier wird der Startpunkt definiert
# #
-start SIM,220,44,22+start [START_SIM],220,44,22
# #
-# walk a bit around+# Sprungmarke setzen
# #
-position 237,72,22+rem SPRUNG1
# #
-# the bot goes to a definite position+# Ein wenig rumlaufen
# #
-position 227,70,22+position 237,72,22
# #
-# and waits 21 seconds for another avatar +# Der Bot geht zu einer bestimmten Position
# #
-timeout 21+position 227,70,22
# #
-# if the search for a customer was unsuccessfully, skip next 4 stations W +# Ich rufe, um Kunden anzulocken
-+
-skip 0 +
-+
-# bot says somthing to attract customers+
# #
say Who wants to party with me? say Who wants to party with me?
# #
-# bot is waiting for customers in a range of 15m +# Und wartet dann 21 Sekunden auf einen anderen Avatar
# #
-customer 16+timeout 21
# #
-# if someone get´s in range say somthing +# Wenn die Suche nach einem Kunden 21 Sekunden erfolglos war, dann überspringe 4 Stationen
-say Hey Baby look for my IM and have fun with me :-)+
# #
-# wait a short while+false SPRUNG1 
 +true SPRUNG2
# #
-sleep 3 +# Ich warte jetzt auf Kundschaft, diese darf 15m entfernt sein
-# +
-# ask a question via IM +
-+
-im If you want to have fun with me, answer my IM with "yes" otherwise answer "no" +
-+
-# dfine a  Timeout/Skip before waiting to the response +
-+
-timeout 30 +
-skip 0 +
-+
-# waiting for an IM  from the customer +
-+
-waitfor yes +
-+
-# if the answer is correct then continue here +
# #
 +customer 16
 +
 +say nix
 +
 +rem SPRUNG2
 +say Hier gehts weiter
 +im foo
 +true SPRUNG3
 +false SPRUNG1
 +timeout 60
 +waitforim yes
 +say fuck
 +rem SPRUNG3
 +say jetzt bin ich hier
say Ok, then follow me my dear say Ok, then follow me my dear
# #
-# raise range if customer isn´t so fast ^^+# Range hochsetzen, falls der Kunde nicht hinterher kommt, lahmer Sack *g*
# #
-range 50+range 40
# #
-#where to go now? +# Jetzt wo hin gehen
# #
toward 205,34,21 toward 205,34,21
Line 76: Line 103:
toward 195,28,20 toward 195,28,20
# #
-# give the customer an advice waht to do +# Jetzt noch was sagen, damit der Mensch weiss was er tun soll
# #
-im you have to right mouse click and then choose "sit"  +im Du musst einfach mit der rechten Maustaste auf X druecken und dann "Sit
-sleep +pause
-im don´t hesitate it´s easy ;O)  +im Trau dich einfach, es ist nicht schwer *bussi* 
-sleep 5+pause 5
sit 51af9046-0278-c064-be11-e6d9b06ac22c sit 51af9046-0278-c064-be11-e6d9b06ac22c
-sleep 120+pause 120
stand stand
-im Thank you so much for your attention! bye ;O)  +im Danke fuer deine Aufwerksamkeit, bye!a 
-sleep 10+pause 10
reload reload
</code> </code>
de/topics/a_detailed_sample_for_the_robot_control.1227808789.txt.gz · Last modified: 2008/11/27 18:59 by rebekka
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0