ID:168422
 
all I need is a basic set of build verbs and a way to limit
the editing abilites (perhaps a pop-up for editing [HTML
perhaps?]) I can do the rest but trying to work with this
for 4 hours racking my brain (newbie coder=meh) I have only
been able to do the base code of the game and get it
operational and create the icons I want to use for building.
All I am asking for is a way to make certain spots on the
maps non-editable and allow users to build what they want
with the icons provided through the game using iconstates
inside of Icon packs I have made. i.e. indoor_furniture.dmi
outdoor_furniture.dmi home_building.dmi etc. etc.
so basically all I want and am concluding to is,

1. a basic-build verb that players can use
2. a basic verb for the object
3. a way to prevent editing of everything on the object and
just certain parts through a pop-up that displays upon
right-clicking the object then clicking a "edit" command.

Well thats about all I'm askin about. As usual with me a
extension to the credits of the game (viewable in-game)
your name will be added to the credits like all the rest of
the people that have contributed through demo or Library or
just by helping out period.

We will pay the price and count our loss
Though hope is gone the war is not lost!
/dev/null Industries
Building Things

For the other thing(s), learn to manipulate variables. As in, if the variable is 1 for instance, they can't build. Try using if statements for that. Look it up for more of a explanation.
In response to Mecha Destroyer JD
Mecha Destroyer JD wrote:
Building Things

For the other thing(s), learn to manipulate variables. As in, if the avriable is 1 for instance, they can't build. Try using if statements for that. Look it up for more of a explanation.

"if the avriable is..." this I am not fully comprehending though your trying to be helpful some of this I'm not grasping.
I used to code in C++ all the time but now My MU* is as polished up as its going to get so I have moved that source code onto someone more deserving.

I have tried many of the icon demos and build demos. But they are so shoddy and hurriedly written that the understandablity of some of them make them worthless...

In one PUBLISHED building demo I found a mass of GOTO statements.... >.<

So If somebody could just make a tutuorial (a person who knows what they are doing.[short and sweet]) on it, that would be useful.
In response to Kator
If you don't know how to manipulate variables, read the DM guide. That's completely basic.

mob/var/A
mob/verb/Change_Var()
A=!A
src<<"Your \"A\" variable is now set to [A]!"
In response to Artemio
and yet nobody gets it, the first reply was so mis-typed I couldn't understand what he was saying. And your reply is way off the topic that I am trying to stick to.

I am asking only for a BASIC version of a build verb. I learn through others... not some damn book. Its how I learned how to code in C and C++

So please learn how to understand the question before you attempt to answer it.
In response to Kator
I learn through others... not some damn book.

That's the main problem right there.

Now, when you say Mecha's reply was horribly mis-typed, it wasn't. He made a couple spelling errors which generally wouldn't effect anyone's understanding of the word. In fact, it took me awhile to understand your post.

Look up Entered() and variables for building prevention.
Look up <font color=blue>new</font> pathtype(loc) for building things.

"3. a way to prevent editing of everything on the object and
just certain parts through a pop-up that displays upon
right-clicking the object then clicking a "edit" command."

A way to prevent it? Don't give the person the option to. You don't automatically have an "edit" verb that allows you to edit every aspect of an object.
In response to Artemio
Artemio wrote:
I learn through others... not some damn book.

That's the main problem right there.

Now, when you say Mecha's reply was horribly mis-typed, it wasn't. He made a couple spelling errors which generally wouldn't effect anyone's understanding of the word.

Look up Entered() and variables for building prevention.
Look up <font color=blue>new</font> pathtype(loc) for building things.

Ok, I should of mentioned that I already corrected that issue and figured it out. I really hate "documentation books" Normally they aren't written for the average or new user and are cryptic and down-nose at best. unless I have someone to quiz me on items learned my ability to hold such information dwindles unless I am being directly challenged to remember these items...

(Bi-Polar, hyper-active and, Autistic... its a sucky life)

one of the reasons why I always need my intellect challenged for information retention purposes.

[EDIT]

Btw, mods. lock this if you would to keep it from jumping to the top... I have figured this out by having somebody challenge me on the way to create a object through a 'build' type verb and a proc to run it.
In response to Kator
If you're autistic, you're the smartest autistic person ever. Autistic people can barely speak (very few can talk in full sentences, can't use big fancy words) and probably wouldn't know a programming language.
In response to Hell Ramen
Your confusing Autisim with down syndrome.
being Autistic entails the following.
retrieved from http://www.mentalhealth.com/dis1/p21-ch06.html
from this list I am a 1-a, 1-b, 1,c 1-d, 2-d, 3-A(3-A is my un-natural focus with my computer work)
Diagnostic Criteria
A total of six (or more) items from (1), (2), and (3), with at least two from (1), and one each from (2) and (3):
(1.)qualitative impairment in social interaction, as manifested by at least two of the following:
(a)marked impairment in the use of multiple nonverbal behaviors such as eye-to-eye gaze, facial expression, body postures, and gestures to regulate social interaction
(b)failure to develop peer relationships appropriate to developmental level
(c)a lack of spontaneous seeking to share enjoyment, interests, or achievements with other people (e.g., by a (c)lack of showing, bringing, or pointing out objects of interest)
(d)lack of social or emotional reciprocity
(2.)qualitative impairments in communication as manifested by at least one of the following:
(a)delay in, or total lack of, the development of spoken language (not accompanied by an attempt to compensate through alternative modes of communication such as gesture or mime)
(b)in individuals with adequate speech, marked impairment in the ability to initiate or sustain a conversation with others
(c)stereotyped and repetitive use of language or idiosyncratic language
(d)lack of varied, spontaneous make-believe play or social imitative play appropriate to developmental level
(3.)restricted repetitive and stereotyped patterns of behavior, interests, and activities, as manifested by at least one of the following:
(a)encompassing preoccupation with one or more stereotyped and restricted patterns of interest that is abnormal either in intensity or focus
(b)apparently inflexible adherence to specific, nonfunctional routines or rituals
(c)stereotyped and repetitive motor mannerisms (e.g., hand or finger flapping or twisting, or complex whole-body movements)
(d)persistent preoccupation with parts of objects
(B.)Delays or abnormal functioning in at least one of the following areas, with onset prior to age 3 years: (1) social interaction, (2) language as used in social communication, or (3) symbolic or imaginative play.
(C.)The disturbance is not better accounted for by Rett's Disorder or Childhood Disintegrative Disorder.
----------------------------------------------------------
So before you try to make yourself out to be a psychologist please do a little bit of research.
In response to Kator
Oh wait, I think if any of those fit you...you wouldn't be posting here.
As for the whole not allowed to build thing. Have you tried running the verb from an area type?

area
editable = 0
public_grass
editable = 1
private_grass


mob/verb/build(T as turf|area)
if (T:editable)
DoStuff()
else
usr << "Not allowed to build here"


Not sure if thats any help, only just started learning myself (upto chapter 13 of the guide, Whoo!)
In response to Hell Ramen
two words should be more than enough.

Stop Trolling.
In response to Ireus
Ireus wrote:
As for the whole not allowed to build thing. Have you tried running the verb from an area type?

area
editable = 0
public_grass
editable = 1
private_grass


mob/verb/build(T as turf|area)
if (T:editable)
DoStuff()
else
usr << "Not allowed to build here"


Not sure if thats any help, only just started learning myself (upto chapter 13 of the guide, Whoo!)

Awesome, thats all I really needed. Thank you very much.
In response to Kator
Yeah? Hehe, just popped into my head from my notes.
Glad to help... though sarcasm is hard to smell online >.>;
In response to Ireus
Ireus wrote:
Yeah? Hehe, just popped into my head from my notes.
Glad to help... though sarcasm is hard to smell online >.>;

lol, no sarcasm... I really am thankful... if you check everything that everybody else has said, the whole lot of it wasn't very helpful.
In response to Kator
Glad I could be of service!
Theres some brainy people here... but some arrogance to.

Anyway! Case closed, happy to help.
In response to Kator
Look it, I'm just saying.
You're not autistic, I know autistic people, you're lucky if you can even talk to them. Plus there's a famous autistic person who can talk in near complete sentences and have a conversation. It seems you can do more, at an even younger age too. Call somebody and get on TV.
In response to Hell Ramen
Hell Ramen wrote:
Look it, I'm just saying.
You're not autistic, I know autistic people,
you're lucky if you can even talk to them. Plus there's a
famous autistic person who can talk in near complete
sentences and have a conversation. It seems you can do
more, at an even younger age too. Call somebody and get
on TV.

Ok, seems all you know are the Stereotypical types of Autistic people.

marked impairment in the use of multiple nonverbal behaviors such as eye-to-eye gaze, facial expression, body postures, and gestures to regulate social interaction
I don't look at people when I talk to them, (I hate it
for some reason) body posture and gestures non-
existant as well as facial expressions.

failure to develop peer relationships appropriate to developmental level
I cannot get along with adults as well as I can with
people at least 5 years younger than I am (my mind-set
is more that of a teenager than a mature adult)

a lack of spontaneous seeking to share enjoyment, interests, or achievements with other people (e.g., by a (c)lack of showing, bringing, or pointing out objects of interest)
I could care less about such things as this. even my
own birthday is just another day on the calendar. I
don't understand why people make such a fuss about it.

lack of social or emotional reciprocity
again, I could care less what you think about my
issues. Or what anybody else thinks. I am a
emotional cripple. I've had my best friend die on me
from being hit by a car (note, this was a friend of 10
years). And all I could think of was, "Crap happens."

lack of varied, spontaneous make-believe play or social imitative play appropriate to developmental level
Imagination... kinda hard to use for anything in my
younger years. The only imagination I have is what is
listed below.

encompassing preoccupation with one or more stereotyped and restricted patterns of interest that is abnormal either in intensity or focus
My computer or coding work. Graphic design, Website
design. Anything that has circuits and wires
concerning me is greater than God. (restricted
patterns of interest i.e. Computer)

So as I said, you are NOT a psychologist so stop trying to be one. Let the licenced practicioners do thier job and you stop lurking around the forums looking for trouble.
In response to Kator
i made my own build thing, it makes owners etc...
In response to Nathan2022001
Nathan2022001 wrote:
i made my own build thing, it makes owners etc...

area/build_area
Entered(atom/A) //A entered this area
if (ismob(A)) //Is A a mob?
usr.can_build = 1

Exited(atom/A) //A exited this area
if (ismob(A)) //Is A a mob?
usr.can_build = 0


mob/verb
Throne()
set category = "Build"
if(src.usr_build_banned == 1)
src << "You are banned form building!"
else
if(src.can_build == 1)
var/obj/building_objs/sign/o = new/obj/building_objs/throne(usr.loc)
o.owner = "[usr]"
else
src <<"Can't build here."
Page: 1 2