Author Topic: help on events(again lol)  (Read 701 times)

ok this is what i'm working on, you work in a mine with gold,coal,iron,ect.... so you go into town(its the middle ages) try to buy a weapon and heres my problem, i only can use varibles not the vce thing so could someone tell me how i would make it to where i buy a weapon and if i dont have enough coins i cant buy it. i figured how to do it but it lets me buy as many of that weapon as i want and lets me go into the negatives.

then i want it to where it takes 2coal+1iron to make 1steel bar and how do i make just a plain iron bar, then i would just figure the rest out.

then i need to know how you use that 5steel bars to make a sword, and how to use lets say logs for bow/spear


if i find i need more help on events i'll add some for you to help me on.

For if you don't have enough coins to buy it:
OnActivate > Self > IfVariable > Coins > Equals > 20
VariableTrue > Player > AddItem > [Weapon here]
                OR
VariableTrue > Self > SpawnItem > [Weapon here] 0 0 0

VariableTrue > Client > There's your weapon!
[optional]

VariableFalse > Client > Not enough coins




If you want it to take 2coal+1iron to make a steel bar, these are your events:
OnActivate > Self > IfVariable > Coal > Greater > 1
VariableTrue > Self > IfVariable2 > Iron > Greater  > 2
VariableTrue2 > Player > AddVariable > Steel > 1
VariableFalse > Client > Not Enough Coal!
VariableFalse2 > Client > Not Enough Iron!
VariableTrue > Player > AddVariable > Coal > -2
VariableTrue2 > Player > AddVariable > Iron > -1


For the sword:
OnActivate > Self > IfVariable > Steel > Greater > 4
VariableTrue > Self > SpawnItem > Sword
VariableTrue > Client > You Made A Sword!
VariableTrue > Player > AddVariable > Steel -1
VariableFalse > Client > Not Enough Steel!

For the Spear [You need another button]
OnActivate > Self > IfVariable > Wood > Greater > 0
VariableTrue > Self > IfVariable2 > Steel > Greater > 0
VariableTrue2 > Self > SpawnItem > Spear
VariableTrue2 > Client > You Made a Spear!
VariableFalse > Client > Not Enough Wood!
VariableFalse2 > Client > Not Enough Steel!

For if you don't have enough coins to buy it:
OnActivate > Self > IfVariable > Coins > Equals > 20
VariableTrue > Player > AddItem > [Weapon here]
                OR
VariableTrue > Self > SpawnItem > [Weapon here] 0 0 0

VariableTrue > Client > There's your weapon!
[optional]

VariableFalse > Client > Not enough coins




If you want it to take 2coal+1iron to make a steel bar, these are your events:
OnActivate > Self > IfVariable > Coal > Greater > 1
VariableTrue > Self > IfVariable2 > Iron > Greater  > 2
VariableTrue2 > Player > AddVariable > Steel > 1
VariableFalse > Client > Not Enough Coal!
VariableFalse2 > Client > Not Enough Iron!
VariableTrue > Player > AddVariable > Coal > -2
VariableTrue2 > Player > AddVariable > Iron > -1


For the sword:
OnActivate > Self > IfVariable > Steel > Greater > 4
VariableTrue > Self > SpawnItem > Sword
VariableTrue > Client > You Made A Sword!
VariableTrue > Player > AddVariable > Steel -1
VariableFalse > Client > Not Enough Steel!
For the Spear [You need another button]
OnActivate > Self > IfVariable > Wood > Greater > 0
VariableTrue > Self > IfVariable2 > Steel > Greater > 0
VariableTrue2 > Self > SpawnItem > Spear
VariableTrue2 > Client > You Made a Spear!
VariableFalse > Client > Not Enough Wood!
VariableFalse2 > Client > Not Enough Steel!


LOL, By the way, you need to have Multi-Variables [i think they still apply]

evar i mean this in the most nongayest way ever, i love you! can i add you as a friend since you seem to know how to do events? could you also help me on how would you buy horse and other vehicles?

evar i mean this in the most nongayest way ever, i love you! can i add you as a friend since you seem to know how to do events? could you also help me on how would you buy horse and other vehicles?
ahahaha, there's much better ways to do that... you don't even need the multi variables, which are pointless with relays and toggling events, and with v5 VCE it's easier to do everything, and more organized, and if you arn't using varibles, what ARE you using?!

is variables vce? i just know a little about variables, unless i had someone right next to me teaching how to use it i'd never get it, so what he said i printed and i'm using it lol. just need to know how to buy horses now and also how would i make it to lets say this, what i have so far is a market,mine forrest sortof, i plan to make this i plan to make a area thats just crops so i want it to where you teleport there for idk 100coins, then there will be the place you make weapons costing idk 10k coins, then there will be a place where you can fight zombies for idk 100kcoins, so how would i make a tele system where it costs money?

is variables vce? i just know a little about variables, unless i had someone right next to me teaching how to use it i'd never get it, so what he said i printed and i'm using it lol. just need to know how to buy horses now and also how would i make it to lets say this, what i have so far is a market,mine forrest sortof, i plan to make this i plan to make a area thats just crops so i want it to where you teleport there for idk 100coins, then there will be the place you make weapons costing idk 10k coins, then there will be a place where you can fight zombies for idk 100kcoins, so how would i make a tele system where it costs money?
he gave you the basic events brillient one... now just edit it, you don't need to be spoonfed it like a little baby, do you?

well it took me 4hrs to do elevators the hardest way possible so what do you think? i'll give it a try

well i now have a teleport thing working, but you can scam it =/. if you have 1coin you can teleport and the fact i dont want you able to do that so can you help me on that please? and it costs 1k-100k to teleport

well it took me 4hrs to do elevators the hardest way possible so what do you think? i'll give it a try
wow...
well i now have a teleport thing working, but you can scam it =/. if you have 1coin you can teleport and the fact i dont want you able to do that so can you help me on that please? and it costs 1k-100k to teleport
get up a server and i'll set up a few things for you? and i can show you how to use some things in v5 variables, they're useful

evar i mean this in the most nongayest way ever, i love you! can i add you as a friend since you seem to know how to do events? could you also help me on how would you buy horse and other vehicles?
Sure!

well i now have a teleport thing working, but you can scam it =/. if you have 1coin you can teleport and the fact i dont want you able to do that so can you help me on that please? and it costs 1k-100k to teleport
I can help you also!