| Author |
Message |
|
Aerotech
Staff Sergeant
Joined: Fri May 29, 2009 3:42 pm Posts: 10
|
 Photon Scripts
I have been looking but can't find any info on getting a public script for attacking planets. I know there are variables but a general photon, land on planet.If there are none,can someone help me with writing one.
|
| Thu Jun 04, 2009 10:54 pm |
|
 |
|
Scrat
Chief Warrant Officer
Joined: Sun Jan 20, 2008 5:15 am Posts: 142
|
 Re: Photon Scripts
I'm guessing you're not finding one because most people just use a macro for that. Here's a generic photon, transport, move, land macro that I use:
cpy1111^Mqx 22^M ^M1111^M^M ^Ml 33^M ^M
Just replace 1111 with the sector number, 22 with the ship number (set to 0 if you aren't changing ships), and replace 33 with the planet number to land on (set to 0 if you aren't landing). If the photon duration is short (2 sec) then you'll need to optimize the macro by stripping out what you don't need.
|
| Fri Jun 05, 2009 4:57 am |
|
 |
|
LoneStar
Commander
Joined: Fri Jun 09, 2006 2:00 am Posts: 1401 Location: Canada
|
 Re: Photon Scripts
Code: setVar $ATTACK_SECTOR 1234 setVar $ATTACK_PLANET 10 getword CURRENTLINE $PROMPT 1 if ($PROMPT <> "Citadel") Echo "**Prompt Check**" halt end send "S* *" waiton "Warps to Sector(s)" waiton "Citadel" setVar $i 1 while (sector.warps[currentsector][$i] <> 0) if (sector.warps[currentsector][$i] = $ATTACK_SECTOR) goto :Continue end add $i 1 end Echo "**Attack Sector Is Not Adjacent**" halt :Continue send "/" waiton #179 & "Figs" getText CURRENTLINE $FIGS "Figs" #179 stripText $FIGS " " striptext $FIGS "," isnumber $tst $FIGS if ($tst = 0) setVar $FIGS 0 end if ($FIGS < 10000) Echo "*Not a whole lot of Figs*" halt end waiton #179 & "Phot" getText CURRENTLINE $PHOTONS "Phot" #179 stripText $PHOTONS " " isNumber $tst $PHOTONS if ($tst = 0) setVar $PHOTONS 0 end if ($PHOTONS = 0) echo "*no photons*" halt end #------------------------------- now we attack setVar $MAC "" setVar $MAC "CV0YN" & $ATTACK_SECTOR & "* P Y " & $ATTACK_SECTOR & "* Q Q Q " setVar $MAC ($MAC & "M Z" & $ATTACK_SECTOR & "* * * L Z" & #8 & $ATTACK_PLANET & "* * * " send $MAC
That's a basic, basic example of a script (off the top of my head). there are many options and senerios that this script doesn't take into consideration. so much so that you should really get proficient in scripting so that you can tweak your script(s) to handle different situations, like: using a xport ship, towing in a ship, sending N-waves, retreating and xporting out, popping planets, developing a planet to get a telepad available, furbing, and on and on..
_________________ ---------------------------- -= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time.
|
| Fri Jun 05, 2009 11:13 am |
|
 |
|
Admin 1
Site Admin
Joined: Sun Dec 24, 2000 3:00 am Posts: 1432 Location: USA
|
 Re: Photon Scripts
Aerotech wrote: I have been looking but can't find any info on getting a public script for attacking planets. I know there are variables but a general photon, land on planet.If there are none,can someone help me with writing one. the popular m0mbot has a photon land scipt built into it. PEL is the command.. i believe its bot name pel sector number planet number ..hope this helps m0m is available at grimey traders script bank
|
| Fri Jun 05, 2009 12:45 pm |
|
 |
|
LoneStar
Commander
Joined: Fri Jun 09, 2006 2:00 am Posts: 1401 Location: Canada
|
 Re: Photon Scripts
SG's right. M()MBot Commands:
PE - Photon Adj, Enter PXEX - Photon Adj, Xport to Moth Ship, Enter Sector, Export Out PELK - Photon Adj, Enter Sector, Land On Planet, Kill (send one wave) PXELK - Photon Adj, Xport to Moth, Enter Sector, Land On Planet, Kill (send one wave) PEX - Photon Adj, Enter Sector, Xport PEL - Photon Adj, Enter Sector, Land PED - Photon Adj, Enter Sector, Defend (Pop A Planet) PXED - Photon Adj, Xport To Moth Ship, Enter Sector, Defend
these are 'invasion' commands within the MOMBot.. Much Thanks to Mind Dagger for these
_________________ ---------------------------- -= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time.
|
| Fri Jun 05, 2009 1:33 pm |
|
 |
|
Aerotech
Staff Sergeant
Joined: Fri May 29, 2009 3:42 pm Posts: 10
|
 Re: Photon Scripts
ok, I was trying to find one for reference to figure out how to write one.The macro solution would work,but I might still try a script.The M()M Bot I d/l but can't figure how to get it to work and use it.Is it beneficial for a single player?
|
| Sat Jun 06, 2009 12:25 am |
|
 |
|
LoneStar
Commander
Joined: Fri Jun 09, 2006 2:00 am Posts: 1401 Location: Canada
|
 Re: Photon Scripts
When you unzip the Zip file, make sure the folder structure looks something like:
C:\TWX\Scripts\Mombot C:\TWX\Scripts\Mombot\botincludes C:\TWX\Scripts\Mombot\Commands C:\TWX\Scripts\Mombot\Daemons C:\TWX\Scripts\Mombot\Help C:\TWX\Scripts\Mombot\Modes C:\TWX\Scripts\Mombot\Modules
find the mom_bot3_1032.ts script and run it from TWX, when at cmd prompt.
_________________ ---------------------------- -= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time.
|
| Sat Jun 06, 2009 10:12 am |
|
 |
|
Aerotech
Staff Sergeant
Joined: Fri May 29, 2009 3:42 pm Posts: 10
|
 Re: Photon Scripts
I will have a look at it later today. Thanks Lonestar
|
| Thu Jun 11, 2009 3:04 pm |
|
 |
|
Aerotech
Staff Sergeant
Joined: Fri May 29, 2009 3:42 pm Posts: 10
|
 Re: Photon Scripts
Lonestar I am using Swath and can't seem to get the commands to work on the MomBot
|
| Wed Jun 17, 2009 3:29 pm |
|
 |
|
LoneStar
Commander
Joined: Fri Jun 09, 2006 2:00 am Posts: 1401 Location: Canada
|
 Re: Photon Scripts
You need to be running TWX PRoxy, and connect to TWX from Swath. The bot commands (or modules), are only accessable via: SubSpace cmds ('aero holo) or from the bots command prompt (press >holo).
_________________ ---------------------------- -= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time.
|
| Wed Jun 17, 2009 4:11 pm |
|
 |
|
Aerotech
Staff Sergeant
Joined: Fri May 29, 2009 3:42 pm Posts: 10
|
 Re: Photon Scripts
I am new to using scripts,and especially bots.I can access the menu by > but I don't know the commands. I can't seem to access the menu from subspace. When I press the ? and the menu screen shows up I can't access anything.
|
| Sat Jun 20, 2009 1:14 am |
|
 |
|
motrax
1st Sergeant
Joined: Fri Sep 13, 2002 2:00 am Posts: 38 Location: New Zealand
|
 Re: Photon Scripts
Lonestar...pardon my ignorance but what does " waiton #179 & "Figs" " do.....more precicely what does #179 do??
_________________ "Let slip the carrion dogs of war"
|
| Thu Jul 02, 2009 10:13 pm |
|
 |
|
Big D
Veteran Op
Joined: Tue Nov 28, 2006 4:04 pm Posts: 5025
|
 Re: Photon Scripts
motrax wrote: Lonestar...pardon my ignorance but what does " waiton #179 & "Figs" " do.....more precicely what does #179 do?? That is the character code for the symbol between each statistic in the quick stats display I believe.
|
| Thu Jul 02, 2009 10:28 pm |
|
 |
|
LoneStar
Commander
Joined: Fri Jun 09, 2006 2:00 am Posts: 1401 Location: Canada
|
 Re: Photon Scripts
BigD's right. the seperator in the 'quickstats' (viewed when / is pressed in game), which is part of the Extended ASCII character set. Code: Sect 1│Turns 1,526│Creds 50,000│Figs 99│Shlds 0│Hlds 50│Ore 0│Org 0│Equ 0 Col 0│Phot 0│Armd 0│Lmpt 0│GTorp 0│TWarp No│Clks 0│Beacns 0│AtmDt 0│Crbo 0
_________________ ---------------------------- -= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time.
|
| Thu Jul 02, 2009 11:07 pm |
|
 |
|