![]() |
| |||||||
| Custom Gates For all your custom wiremod gates. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Inactive Join Date: Dec 2008
Posts: 13
![]() | Okay forgive me if my code is a bit messy with EXP2. Im new to this, and this is something I just recently wrote up out of boredom for a Stargate RP-Like-Setting. The point of it is to "spam" a target stargate so that there is always an incomming wormhole like seen in a few episodes of stargate SG-1. Code: ##Created By JonLeon in
##Another random 2:00AM(EST) Morning.
##Wire SG to Stargate -> Cheveron (my choice)
##Wire Button to a Button (I used a toggled one >=] )
##Wire from Stargate -> Dial to output Dial on Exp2
##Enjoy =]
@name Gate Dialer
@inputs Button SG
@outputs Dial
@persist C
if (Button == 1) {On = 1}
if (On == 1 & SG == 0 ) {
interval(10) #Initial pause between Addresses
C = C+1 #Dials next Chev.
if (C == 1) { Dial = 119 } #W
if (C == 2) { Dial = 97 } #A
if (C == 3) { Dial = 116 } #T
if (C == 4) { Dial = 101 } #E
if (C == 5) { Dial = 114 } #R
if (C == 6) { Dial = 115 } #S
if (C == 7) { Dial = 13} #<ENTER>Dont Change
if (C == 8) {Dial = 0, C = 0, interval(1000)
}
#Added an interval at 8 so that it can take a pause
#For the wormhole to establish before running
#The Circuit Again.
}
#Here is the alphabet by Letter:Number
#These are really lowercase but stargate loves them
# A:97 B:98 C:99 D:100 E:101
# F:102 G:103 H:104 I:105 J:106
# K:107 L:108 M:109 N:110 O:111
# P:112 Q:113 R:114 S:115 T:116
# U:117 V:118 W:119 X:120
# Y:121 Z:122 <ENTER>:13
have multi lines here */ ) Any Feedback would be nice. I just thought I would share this.
__________________ zearm.bounceme.net Join in my server some time. =] Teach and possibly be taught. GCOMBAT08, Stargate, Spacebuild Model Pack, PHX3 SVN. Recommended. |
| | |
| | #3 (permalink) | ||||||||
| Wirererer ![]()
Join Date: Oct 2008 Location: Somewhere between Mars and Venus.
Posts: 141
![]() | I have given up on stargate. Stupid spammers and stupid ability to randomly lag the place.
__________________ Oh noes, I just realized I have an addiction to "Scotch Finger Biscuits". ಠ_ಠ Wiremod.com web ranking! | ||||||||
| | |
| | #4 (permalink) | |
| Inactive Join Date: Dec 2008
Posts: 13
![]() | Quote:
I use the Stargat overcharger.....basicly turns the targets stargate into a NUKE! >=]
__________________ zearm.bounceme.net Join in my server some time. =] Teach and possibly be taught. GCOMBAT08, Stargate, Spacebuild Model Pack, PHX3 SVN. Recommended. | |
| | |
| | #6 (permalink) | ||||||||
| Wirererer ![]()
Join Date: Dec 2008
Posts: 227
![]() | Im not to sure but would this work? @name Gate Dialer @inputs Button SG @outputs Dial @persist C if (Button) {On} if (On & !SG) { interval(10) C += 1 if (C == 1) { Dial = toByte("") } if (C == 2) { Dial = toByte("") } if (C == 3) { Dial = toByte("") } if (C == 4) { Dial = toByte("") } if (C == 5) { Dial = toByte("") } if (C == 6) { Dial = toByte("") } if (C == 7) { Dial = 13} if (C == 8) {Dial = 0, C = 0, interval(1000)} } | ||||||||
| | |
| | #7 (permalink) | ||||||||
| Wirererer ![]()
Join Date: Dec 2008
Posts: 227
![]() | @name @inputs Stargate:wirelink @outputs @persist X Y @trigger all runOnChat(1) chatClk(owner()) interval(10) if(lastSaid():explode(" "):string(1):upper() == "DIAL" & Y == 1) { Lastsaid=owner():lastSaid() S1 = toByte(Lastsaid,6) S2 = toByte(Lastsaid,7) S3 = toByte(Lastsaid,8) S4 = toByte(Lastsaid,9) S5 = toByte(Lastsaid,10) S6 = toByte(Lastsaid,11) if (X <= 7) {X += 1} } if (X == 1) {Stargate:setNumber("Dial Address",S1)} if (X == 2) {Stargate:setNumber("Dial Address",S2)} if (X == 3) {Stargate:setNumber("Dial Address",S3)} if (X == 4) {Stargate:setNumber("Dial Address",S4)} if (X == 5) {Stargate:setNumber("Dial Address",S5)} if (X == 6) {Stargate:setNumber("Dial Address",S6)} if (X == 7) {Stargate:setNumber("Dial Address",13)} if (X == 8) {X = -1 Y = 0} if (chatClk()) {Y = 1 Stargate:setNumber("Close",0)} if (Stargate:number("Active") == 1 & owner():lastSaid():upper() == "CLOSE") {Stargate:setNumber("Close",1)} ^my code for chat activated dialing. uses wirelink, and for some reason, if you say somthing after 'Dial ADRESS', it randomly closes. | ||||||||
| | |
![]() |
| Bookmarks |
| Tags |
| stargate auto dailer |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Stargate Auto Dialer Change Values | meeces2911 | Advanced Gates | 4 | 01-08-2008 03:48 AM |
| Stargate Expression Dialer | Brian4120 | Advanced Gates | 4 | 11-20-2007 03:05 PM |
| Auto-Targeting, Auto-Firing Cruise missile launcher Tutorial. | Irish_Cereal | Wiremod Tutorials | 18 | 07-12-2007 12:51 PM |
| Auto-targeting, Auto-firing Cruise Missile Launcher Video | Irish_Cereal | Contraptions & Saves | 12 | 05-14-2007 06:09 AM |
| Auto-targeting, Auto-firing Cruise Missile Launcher. :p | Irish_Cereal | Wiremod General Chat | 5 | 05-10-2007 03:26 PM |