Author Topic: Wrench GUI push & Brick Height Detection  (Read 1578 times)

canvas.PushDialog(-wrench gui-);
What would I replace -wrench gui- with to indicate that I want it to force my last wrench GUI?
« Last Edit: May 23, 2009, 01:00:20 AM by cucumberdude »


Does it really matter? I private, client-side mod, if you insist.

Also, on a totally different subject, how can I find out the brick height onPlant?
Like, %col.getDatablock().height?
So then I could do something like
 if(%height>=20)
{
echo("The height is more than twenty studs, or something like dat.
}

%brick.getDatablock().bricksizez;

%brick.getDatablock().bricksizez;
Is that supposed to be a "z"? I'm not sure, but did you means for an "s"?

Is that supposed to be a "z"? I'm not sure, but did you means for an "s"?
z as in z axis, I think.
Also, wouldn't that get me the height of the brick? I want something that tells me the height of the brick relative to the ground. So that people can't build higher than a certain point.
« Last Edit: May 23, 2009, 09:15:59 AM by cucumberdude »

Is that supposed to be a "z"? I'm not sure, but did you means for an "s"?

What is the point in people like you posting in Coding Help if you don't know anything about Coding? It just confuses people ... its absurd.

z as in z axis, I think.
Also, wouldn't that get me the height of the brick? I want something that tells me the height of the brick relative to the ground. So that people can't build higher than a certain point.

You can't do that using a Client-side mod.

Sorry, I should have explained better. These are for two seperate things. Also, I hate to add YET another question, but when making some kind of 'money' mod, I want to specify the amount of money using a certain variable throughout ALL my functions. Should I use $client.cash or %client.cash?

I'm thinking you're making another RP-server mod like CityRP. I definitely won't be helping put another one of those into circulation.

Sorry, I should have explained better. These are for two seperate things. Also, I hate to add YET another question, but when making some kind of 'money' mod, I want to specify the amount of money using a certain variable throughout ALL my functions. Should I use $client.cash or %client.cash?
I think this is a wee to advanced for you if you don't even know how object IDs work.
And if it's a city rp mod:
won't be helping
« Last Edit: May 23, 2009, 10:04:00 AM by Destiny/Zack0Wack0 »

Possibly. However, it's not going to be the 'get a job' and 'wait for ticks' deal, I'm thinking more along the lines of place a brick, lose some money. Go mine blocks, gain money. Something simple like that, mostly just for learning purposes. I need to start somewhere, and this seems like a relattively simple place to begin, so long as I stick to the basics. Also, Ephi, I have no plans whatsoever to release this. In fact, I probably won't even use it, seeing as M's Cashmod is probably going to be better for this kind of gameplay anyways.

Possibly. However, it's not going to be the 'get a job' and 'wait for ticks' deal, I'm thinking more along the lines of place a brick, lose some money. Go mine blocks, gain money. Something simple like that, mostly just for learning purposes. I need to start somewhere, and this seems like a relattively simple place to begin, so long as I stick to the basics. Also, Ephi, I have no plans whatsoever to release this. In fact, I probably won't even use it, seeing as M's Cashmod is probably going to be better for this kind of gameplay anyways.

You will find that all the makers of all the CityRP mods also intended never to release it - and look what happened.

Let's put it this way: it isn't even gonna be worth releasing. Look, I would love some help with the problem, and if you really are worried about me releasing some stuffty RP, trust me, it won't released, so far, of my twenty or so lil' scripts (most of em flashy and useless), only one, the invisibily script, has been released. And as I said before, it wouldn't be worth downloading even if somone did get their hands on it. I mean, really, what I've got planned is M's cash mod, but even simpler. Plus, if I did somehow manage to make a good mod, I would want to keep it all for myself. I'm not too stupid, look what happened to CityRP after it was released, it became the stuffs. Anyway, I'm going to go test out that %client.blah and $client.blah stuff. I don't really know how local and global variables will apply to a client, and if I'm even doing it right :/ Help is appreciated.

Given that the CityRP source code is available, I'd say it was a pretty logical place to start for what you're trying to do.