| Blockland Forums > Modification Help |
| Brick++ (Brick Language) |
| << < (2/8) > >> |
| xxxxkill:
Albeit the fact that this would be more expansive than events, it also makes it much more complex and only accounts for what syntaxes you think of. I think keeping the wrench and "Brickmodder" seperate would be a good idea. |
| jes00:
--- Quote from: Brian Smithers on February 08, 2012, 07:05:58 PM ---self.activate(brick,player) [ var name, blid name = player.name blid = player.bl_id player.centerPrint("You are " > name < " BLID " > blid < "\n"-3) ] --- End quote --- Would it not look more like this? --- Code: ---BrickNameData::onActivate(%brick, %player) { %name = %player.name; %blid = %player.bl_id; %player.centerPrint("You are " @ %name @ " BLID " @ %blid @ "\n"-3); } --- End code --- |
| HellsHero:
--- Quote from: jes00 on February 08, 2012, 07:55:23 PM ---Would it not look more like this? --- Code: ---BrickNameData::onActivate(%brick, %player) { %name = %player.name; %blid = %player.bl_id; %player.centerPrint("You are " @ %name @ " BLID " @ %blid @ "\n"-3); } --- End code --- --- End quote --- It's not TorqueScript, what he's proposing is a ish new programming language for beginners, etc. |
| otto-san:
--- Code: ---class OttosBrick [ public: player.killYou(); private: player.dontKillMe(); self.onPlayerTouch(player); ] player.OttosBrick::killYou() [ kill(); messageClient(client, '', "\c6lol!"); ] player.OttosBrick::dontKillMe() [ messageClient(client, '', "\c6ok no problem bro"); ] self.OttosBrick::onPlayerTouch(player) [ player.killYou(); ] --- End code --- :cookieMonster: |
| cciamlazy:
--- Quote from: otto-san on February 08, 2012, 08:21:50 PM --- --- Code: ----snip- --- End code --- --- End quote --- :D |
| Navigation |
| Message Index |
| Next page |
| Previous page |