Problem description:
So in my game, I want to incorporate a hacking system.
I want all laptops and computers to give off some sort of signal that reaches a specific reach of oview.
If you have a laptop, and you're in range of another laptop, you can pick up on that network.
How would I go about coding this?
ID:948271
|
|
lol No no not a real network.
I want the laptop in game, to give off a "signal" that reaches, say, 8 tiles away. If your user is in range of those 8 tiles, It shows you a list. You can choose from that list to either view that person info or you can attempt to hack them in game. (Not real) |
Ok i get it, the way you said it in your 1st post sounded like you wanted to hack a player's connection.xD
Didn't test but,try something like this? obj |
It's working, the only problem is an indentation error which I'm getting no matter where I put it.
Here's what my code looks like. laptop obj.dm:266:error: inconsistent indentation EDIT Hahaha it worked. I just had to take the "S" out of "Laptops". Thank you so much, man |
You should try set src in view(8,src) instead of obj/laptops/L in oview(8).
And the errors you recieved are as they say, indentation errors. Just go over and re-indent everything to ensure it's correct. |
The indentation errors went away after I took the "s" out of "Laptops" which is incredibly weird.
|
Yeah since your object wasnt called "laptops" it was called "laptop" =D. Since no object in your codes was called "laptops" it was searching for an object that doesn't exist!
Have a nice day! |
Keep in mind when you get indentation errors, that they are most of the time mistakes in the object/mob or turf you're calling. Its case sensitive,a capital letter or a spelling mistake can cause this!
No prob! =D |
In response to NNAAAAHH
|
|
Lucky you,you got the best answer vote.
-_-' |
aw shucks guis. Stop it.
As a general question, to stay on topic, is it possible to assign a key combination, or open up a small window where the user has to type something specific in? Well, it's stupid to say Impossible. I guess I'm asking if you've got any ideas as to what the best way to approach that would be. It sounds relatively easy. |
In response to Raivu
|
|
It would've been better for you to open up another topic asking for help on that matter. You can make a key combination using rand() or pick() and a list of text, numbers, and symbols.
var/list/usable=list("a","b","c") Then calling a prompt for them to enter displayed text. mob/var/displayedtext @Kidpaddle45 - I'm not helping out to get points to be one of the 'most helpful' users. It's just something I do to help. |
Points? O.o
Does it calculate? or is it just a way to make it easier to find the best answer in a long topic??? |
http://www.byond.com/forum/?forum=8
See Most Helpful Users above the forum posts. It makes finding the solution in a large thread easier, but also adds up a total and show them on the page. Some people are crazy about it others not so cray cray. I voted your answer NNAAAAHH. |
In response to A.T.H.K
|
|
Lol, everytime I get drawn back to this, there's a random change in what's voted up.
|
or network as a var in your game? O.O
Cuz if you're talking about real internet connection,you will not get any help to do this.