Sorry, I was away from the computer until just a few minutes ago.
The only way I can really think of to do with Events (I am terrible with scripting) is like this:
The DHD item calls a Common Event. You will have to break up the 7 digit number to input 1 at a time.
So,
@Input Number: [001], 1 digit(s)
@Input Number: [002], 1 digit(s)
@Input Number: [003], 1 digit(s)
@Input Number: [004], 1 digit(s)
@Input Number: [005], 1 digit(s)
@Input Number: [006], 1 digit(s)
Now, to combine them into workable variables. Multiply the first digit variables by 10.
@Control Variable: [001] *= 10
@Control Variable: [003] *= 10
@Control Variable: [005] *= 10
Now add the variables to make a two digit number:
@Control Variable: [002] += Variable [001]
@Control Variable: [004] += Variable [003]
@Control Variable: [006] += Variable [005]
So if you input 1, 2, 3, 4, 5, 6 it will give you 12, 34 and 56 as your Map ID, Map X and Map Y (however you want set it up).
Now comes the long part. Make a Conditional Branch for each of your Stargates, starting with Map ID.
So, if you know that you have Stargates on Map IDs 1, 5, 7 and 15, you will make Conditional Branches for each.
Conditional Branch: Variable [002] == 1
@
Else:
@
End Branch
Conditional Branch: Variable [002] == 5
@
Else:
@
End Branch
Etc. Now , under each branch you want to compare them to the Map X and Map Y of each Stargate per map.
The Stargate on Map 1 has a Map X of 12 and a Map Y of 57 (for example).
Conditional Branch: Variable [002] == 1
@Conditional Branch: Variable [004] == 12
...@Conditional Branch: Variable [006] == 57
...@Transfer Player: Variable[002][004][006]
Else:
@Text: Not a valid input code
@Exit Event Processing
Else:
@Text: Not a valid input code
@Exit Event Processing
Else:
@Text: Not a valid input code
@Exit Event Processing
End Branch
End Branch
End Branch
Not too much work, though. Even if you have 20 Stargates, you will only have to make branches for 20 of them!