| Blockland Forums > Help |
| Scripting Help (PLEASE HELP) |
| (1/5) > >> |
| bluemcblox:
I need help with some scripting. I am trying to create a ore. I just need help with how to exactly make it. I am planning to make it inside the special section in bricks, containing copper, tin, iron, coal, and a few others. Right now, I want it to be something like --- Code: ---$health = 20; (insert someway to detect a hit from a pickaxe) if ($pickaxe) = 1; // (copper) $health - 1 if ($pickaxe) = 2; // (iron) $health - 2 --- End code --- And so on... Also, I want it to have a 2x2 round brick. (to make it easier) I already have pickaxes that work, but I will have to add the script that follows along with the ores. --- Code: ---$pickaxe = 1 --- End code --- Mind if someone could help me? Also, if you think that this is pointless, stupid, and I shouldn't do this, fine. Haters gonna hate. |
| FFSO:
Coding Help.... |
| SgtDaemon:
--- Quote from: bluemcblox on June 12, 2012, 11:02:19 AM ---Haters gonna hate. --- End quote --- Mostly because people cannot see the "coding help" section. |
| Mold:
What Your first failure: $Pickaxe |
| Port:
--- Quote from: Mold on June 12, 2012, 12:05:07 PM ---What Your first failure: $Pickaxe --- End quote --- That's a valid variable name. |
| Navigation |
| Message Index |
| Next page |