IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Tsithlis
post Mar 7 2010, 08:18 PM
Post #1


Target
*

Group: Members
Posts: 92
Joined: 28-August 08
Member No.: 16,286



So here are some scripts I've been writing up for my nodes and IC

Script 1 (Node script)
Line1:
Do until global.Active_Alert = 1
Icon_Scantime.getlowerbound(0)
scan.icon
If icon.unauthorized = true then
global.Active_Alert = 1
Exit Do
Else
Icon_Scantime(icon, time)
Loop

If global.Active_Alert = 1 then
Security_Node.logoff
security.notify
Terminate icon.unauthorized
else goto Line1

Script 2 (Attack IC Script)
Line1:
Do until global.Active_Alert = 1
Icon_Scantime.getlowerbound(0)
scan.icon
If icon.unauthorized = true then
global.Active_Alert = 1
Exit Do
Else
Icon_Scantime(icon, time)
Loop

If global.Active_Alert = 1 then
Attack(icon.unauthorized)
else goto Line1

Script 3 (Support IC script)
Line1:
Do until global.Active_Alert = 1
If icon.new then
scan.icon
Else
Icon_Scantime.getlowerbound(0)
scan.icon
If icon.unauthorized = true then
global.Active_Alert = 1
Exit Do
Else
Icon_Scantime(icon, time)
Loop

If global.Active_Alert = 1 then
Do until global.Active_Alert = 0
If Old_Man1.active = false then
Old_Man1.activate
Elseif Old_Man2.active = false then
Old_Man2.activate
Else
Encrypt(access.log)
Loop
else goto Line1
Go to the top of the page
 
+Quote Post
Muspellsheimr
post Mar 7 2010, 09:44 PM
Post #2


Neophyte Runner
*****

Group: Members
Posts: 2,336
Joined: 24-February 08
From: Albuquerque, New Mexico
Member No.: 15,706



Nice. I like.
Go to the top of the page
 
+Quote Post
Xahn Borealis
post Mar 7 2010, 09:57 PM
Post #3


Shooting Target
****

Group: Members
Posts: 1,717
Joined: 23-March 09
From: Weymouth, UK
Member No.: 17,007



What exactly is this?
Go to the top of the page
 
+Quote Post
Fatum
post Mar 7 2010, 10:33 PM
Post #4


Runner
******

Group: Dumpshocked
Posts: 2,801
Joined: 2-September 09
From: Moscow, Russia
Member No.: 17,589



Why bother with writing something looking like real code when even the example in Unwired is in pseudocode anyway, and pseudocode is times easier to read?
Or do you intend to actually use something to run your code and have the hacker have his fun without GM participation? That'd be cool, I guess, especially if you prepare a bunch of templates for the hacker in advance, thus allowing you to skip the usual "wait while the guy is in VR" step.
Go to the top of the page
 
+Quote Post
Tsithlis
post Mar 8 2010, 11:11 AM
Post #5


Target
*

Group: Members
Posts: 92
Joined: 28-August 08
Member No.: 16,286



QUOTE
What exactly is this?

Its just some object oriented code scripting. Its simplified of course but I was just trying to make the scripts written for nodes and IC look a bit more like scripts. My DM is also a script kiddie so its cool.

Quick breakdown
Script 3 (Support IC script)
Line1:
Do until global.Active_Alert = 1 "check for and active alert and do all of this until there is an active alert"
If icon.new then "If a new icon logs on..."
scan.icon "Scan it"
Else "Otherwise"
Icon_Scantime.getlowerbound(0) "search for the icon that was scanned the longest time ago"
scan.icon "Scan it"
If icon.unauthorized = true then "If the icon is unauthorized"
global.Active_Alert = 1 "Issue an active alert"
Exit Do "Exit this loop and execute the rest of the script below"
Else "Otherwise"
Icon_Scantime(icon, time) "enter the scantime of the icon that was just scanned"
Loop "Do it again"

If global.Active_Alert = 1 then "once there is an active alert"
Do until global.Active_Alert = 0 "do this until there is not an active alert"
If Old_Man1.active = false then "check to see if IC 1 has been crashed"
Old_Man1.activate "if it is crashed then activate it"
Elseif Old_Man2.active = false then "otherwise check to see if IC 2 has been crashed"
Old_Man2.activate "if it has been then activate it"
Else "otherwise"
Encrypt(access.log) "dynamically encrypt the access log"
Loop "do all of this again"
else goto Line1 "once the above script terminates go back to the first script"

QUOTE
Why bother with writing something looking like real code when even the example in Unwired is in pseudocode anyway, and pseudocode is times easier to read?

Because I like a little essence with my shadowrun (IMG:style_emoticons/default/wink.gif) anyway like I said above my DM is a keyboard jockey as well so were good
Go to the top of the page
 
+Quote Post
Xahn Borealis
post Mar 8 2010, 10:25 PM
Post #6


Shooting Target
****

Group: Members
Posts: 1,717
Joined: 23-March 09
From: Weymouth, UK
Member No.: 17,007



QUOTE (Fatum @ Mar 7 2010, 10:33 PM) *
the example in Unwired is in pseudocode



What page is this?
Go to the top of the page
 
+Quote Post
Udoshi
post Mar 9 2010, 01:31 AM
Post #7


Runner
******

Group: Members
Posts: 2,782
Joined: 28-August 09
Member No.: 17,566



QUOTE (Xahn Borealis @ Mar 8 2010, 03:25 PM) *
What page is this?


sidebar, 69.

Something like this would be rather handy to have printed off in notecards at a gametable, really.

Minor annoyance: scan.icon should really be Analyze.Icon. If you keep your fluff names consistent with program names you need to do stuff, it helps prevent rules fuckups.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 

RSS Lo-Fi Version Time is now: 27th July 2025 - 01:20 AM

Topps, Inc has sole ownership of the names, logo, artwork, marks, photographs, sounds, audio, video and/or any proprietary material used in connection with the game Shadowrun. Topps, Inc has granted permission to the Dumpshock Forums to use such names, logos, artwork, marks and/or any proprietary materials for promotional and informational purposes on its website but does not endorse, and is not affiliated with the Dumpshock Forums in any official capacity whatsoever.