Script The World!
Posted: Mon Sep 04, 2006 2:11 pm
That's right, fellows, we're holding a scripting competition! Yes, you read right - scripting! 
But, you don't have to be a scripting guru to be able to attend. No, really. Because...
The point is, to describe something in real world in the MoHAA scripting language.
It can be anything - from running a person's emotions to crane cargo loading to a falling snowflake. The more humorous, the better. 
The rules are quite simple:
Oh, I forgot, a little example script (a guitarist thinker):
That's all, folks!
I expect a lot of PMs withs some nice and funny scripts. 
And yes, I made a topic shadow in General Discussion on purpose to get more attention.
But, you don't have to be a scripting guru to be able to attend. No, really. Because...
The point is, to describe something in real world in the MoHAA scripting language.
The rules are quite simple:
- All entries must be sent to me via a PM.
- The deadline for submitting your work is September 17th 0:00 GMT. Any scripts sent after that date will be discarded.
- Only 1 submission from each contestant is allowed, and entries cannot be corrected after submitting.
- The scripts should have correct syntax, however, it is allowed to make small deviations (e.g. invented object classes or methods) that make sense.
- Both the correctness and humour level will be subject to judgement, as well as the script's complexity.
- The authors of the best 3 scripts will be rewarded with custom forum ranks of their choice.
Code: Select all
$guitarist thread guitarist_thinker
guitarist_thinker:
// pull out our instrument...
self useweaponclass guitar
// ...and get a hang of it...
self weaponcommand dual targetname ("guitar" + self.entnum)
local.guitar = $("guitar" + self.entnum)
local.guitar targetname ""
// ...as well as of its parts
local.guitar.fretboard_head = spawn script_origin
local.guitar.fretboard_head attach local.guitar "fretboard"
local.fret = spawn script_origin
local.fretindex = 0
// make some scenic movement
self animloop headbang
// play the song to the rhythm
while (self canhear $drums) {
// press the next fret and pull the string
local.fret.origin = local.guitar.fretboard_head.origin + (angles_toforward local.guitar.angles) * (level.FRETLENGTH * self.memory.song.frets[local.fretindex]) * -1
self setaimtarget local.fret
self fire
local.fretindex++
waitframe
}
// rest a bit
self animloop unarmed_idle
endAnd yes, I made a topic shadow in General Discussion on purpose to get more attention.