Author Topic: HELP ME WITH VARIABLES!  (Read 1220 times)

I REALLY NEED A TUTORIAL ON VARIABLES IM MAKING AN RPG AND I HAVE NO CLUE HOW TO MAKE TRADING,SELLING,BUYING AND GATHERING WITH VARIABLES SO PLZ PLZ PLZ HELP!

OKAY!
You don't have to use all caps.

Variables are rather simple once you get the hang of it, but it's a very long thing to explain. What thing are you trying to do, exactly? My knowledge of variables is a little limited, but I can still help you with the basics.

OKAY!
You don't have to use all caps.

Variables are rather simple once you get the hang of it, but it's a very long thing to explain. What thing are you trying to do, exactly? My knowledge of variables is a little limited, but I can still help you with the basics.
i am trying to make an RPG. mostly buying,selling and gathering.

Well, For example, This is how to make a mining place...
OnActivate - Self - FakeKillBrick - [  ][  ][  ] [10]
OnActivate - Client - Bottom Print - <color:993300>You have gained one (ore here) ore!
OnActivate - Client - AddVariable - [(ore here)] [1]


I can send you a save that has selling, mining, Woodcutting, farming, and a store, oh, and a place to check all your stuff.

And now I know how to make a random one, like for fishing... I am making a zelda kinda RP with variables... Its ganna be so cool!

If you want a resource that takes multiple clicks to earn its a bit harder
OnActivate->Self->If Random-> # # equals
Variable True...add variable
Variable True..etc
Variable Flase You fail to mine, harvest, chop resource

Or Have each click add a cuts variable to it self then when cuts is greater or equal, player add variable.  (I like first one Better)

Also add a Display variable, rember varialbe must be the same
Already finished my own Spartan RPG

If you want a resource that takes multiple clicks to earn its a bit harder
OnActivate->Self->If Random-> # # equals
Variable True...add variable
Variable True..etc
Variable Flase You fail to mine, harvest, chop resource

Or Have each click add a cuts variable to it self then when cuts is greater or equal, player add variable.  (I like first one Better)

Also add a Display variable, rember varialbe must be the same
Already finished my own Spartan RPG
? TOO CONUFUSING (SORRY CAPS)

Ok, ok, no need for caps, I am very good with variables and i can help, for trees, go into events and click
OnActivate>Player>AddVariable>[treetypehere][1]
OnActivate>Self>Disappear
OnActivate>Client>CenterPrint>[You have gained 1 Treetypehere

Crap i accidentaly hit post, if you want some more, then please pm me.

I REALLY NEED A TUTORIAL ON VARIABLES IM MAKING AN RPG AND I HAVE NO CLUE HOW TO MAKE TRADING,SELLING,BUYING AND GATHERING WITH VARIABLES SO PLZ PLZ PLZ HELP!

Even if you know variables your RPG is gonna suck... You can't build for stuff.

You dont know that. When I'm not trying, I build like Blockhead1111111111 But when I try, I can build really well, just because you have seen him not trying, doesn't mean that he can't build.

Well, For example, This is how to make a mining place...
OnActivate - Self - FakeKillBrick - [  ][  ][  ] [10]
OnActivate - Client - Bottom Print - <color:993300>You have gained one (ore here) ore!
OnActivate - Client - AddVariable - [(ore here)] [1]


I can send you a save that has selling, mining, Woodcutting, farming, and a store, oh, and a place to check all your stuff.

And now I know how to make a random one, like for fishing... I am making a zelda kinda RP with variables... Its ganna be so cool!

i would take the save



fun turret:
onactivate>player>setvariable[pushbroom][5]
onactiavate>self>firerelay
onrelay>self>ifvariable(player)[pushbroom](equals)[5]
onvariabletrue>self>firerelay
onvariabletrue>player>spawnprojectile(pushbroom)[100][15][15][15]

good for on CityRP servers, and you are like a cop and don't want to get demerits but want to kill, and you don't have to stay on a brick which is useful, just Self Delete to stop it too

fun turret:
onactivate>player>setvariable[pushbroom][5]
onactiavate>self>firerelay
onrelay>self>ifvariable(player)[pushbroom](equals)[5]
onvariabletrue>self>firerelay
onvariabletrue>player>spawnprojectile(pushbroom)[100][15][15][15]

good for on CityRP servers, and you are like a cop and don't want to get demerits but want to kill, and you don't have to stay on a brick which is useful, just Self Delete to stop it too
what does it do? can you do it with a gun or spear?