Lets say I have a value of value="test" as a name. Is there a way to make a new type like turf/value but instead of it being type turf/value it be the value of the var? So I would input water and it would be leading too the variable new_turf. Then setting the turf so it is turf/water and a whole new turf type is made.
Also I want this new type making to be done at run time so is this possible?
ID:267069
Nov 19 2002, 12:18 pm
|
|
In response to Garthor
|
|
hehehe Thanks for the english lessons.
And thanks for the info. Somthing how ever gives me the fealing that I can make new types. Hmm I will have to pounder this for a while. |
Green Lime wrote:
Lets say I have a value of value="test" as a name. Is there a way to make a new type like turf/value but instead of it being type turf/value it be the value of the var? So I would input water and it would be leading too the variable new_turf. Then setting the turf so it is turf/water and a whole new turf type is made. I don't much follow what you're saying here. Can you be a little clearer? Or a lot? One thing I can tell you: New types can't--as far as I know--be made at runtime, but you could certainly define your own "prototypes", whose values can be copied whenever you want to make a new version of them. It's not really the same thing and it uses more memory, but so it goes. Lummox JR |
In response to Garthor
|
|
Garthor wrote:
First of all, for any words ending in eing (like "makeing"), you remove the e before ing, so it becomes making. Bake - baking, shake - shaking. Okay then, now that we're done with the English lession =) |
In response to WizDragon
|
|
That is what we call a typo.
|
In response to Garthor
|
|
I know it's a typo, I just thought it was funny because you made a typo in your English Lesson.
|
No, there is not a way to do this, but there is an alternative.
mob
var/atom/buildType
verb
Change_Build_Type()
buildType = input() in typesof(/atom/)
Build()
new buildType(loc)
And that should do it.