| Blockland Forums > Help |
| help on events(again lol) |
| (1/3) > >> |
| chills58:
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. |
| Evar678:
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! |
| Evar678:
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! |
| Evar678:
--- Quote from: Evar678 on September 18, 2009, 09:31:36 PM ---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! --- End quote --- --- Quote from: Evar678 on September 18, 2009, 09:33:49 PM ---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! --- End quote --- LOL, By the way, you need to have Multi-Variables [i think they still apply] |
| chills58:
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? |
| Navigation |
| Message Index |
| Next page |