"Code" Content type example

Yorlik's picture

Today created the "code" content type for Drupal which now allows us to share highlighted code in an easy way.

Below is a little Lua example provided for us by the awesome Logrus ,  Lead Systems Designer at Citadel Studios upcoming baby Shards Online. Lua is the scripting language of Shards online. Somehow the code reminds me of a certain cannibalistic bug in the game where you could cook the chopped off head of an enemy in a Shards Online playtest, because it was derived from droppable meat from deers. wink

I feel so honored !

Cheers

~Yorlik

 
if (stealTarget:IsMobile()) then
  this:SystemMessage("This is the stealing ability, not kidnapping.")
  return false
end
 
Half an Hour Dev
So no kidnapping yet? :)

So no kidnapping yet? :)

Looks good!

Add new comment

Plain text

  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • No HTML tags allowed.
  • You can enable syntax highlighting of source code with the following tags: [blockquote], [c], [cpp], [cs], [css], [drupal5], [drupal6], [html5], [java], [javascript], [lua], [gnumake], [php], [python], [ruby], [xml].
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.