Page 1 of 1

Script The World!

Posted: Mon Sep 04, 2006 2:11 pm
by Rookie One.pl
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:
  1. All entries must be sent to me via a PM.
  2. The deadline for submitting your work is September 17th 0:00 GMT. Any scripts sent after that date will be discarded.
  3. Only 1 submission from each contestant is allowed, and entries cannot be corrected after submitting.
  4. The scripts should have correct syntax, however, it is allowed to make small deviations (e.g. invented object classes or methods) that make sense.
  5. Both the correctness and humour level will be subject to judgement, as well as the script's complexity.
  6. The authors of the best 3 scripts will be rewarded with custom forum ranks of their choice.
I think that's pretty much it. :) Oh, I forgot, a little example script (a guitarist thinker):

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
end
That's all, folks! :) I expect a lot of PMs withs some nice and funny scripts. :P

And yes, I made a topic shadow in General Discussion on purpose to get more attention. ;)

Posted: Mon Sep 04, 2006 7:33 pm
by lizardkid
Hmm good idea, got me thinking already :twisted:

Posted: Tue Sep 05, 2006 3:05 pm
by Rookie One.pl
Cool, can't wait for your entry! :P

Hey, come one, peeps! Surely Lizard isn't the only one who can make up a funny pseudo script?!

Posted: Tue Sep 05, 2006 5:48 pm
by Ophisâ„¢
i dunno, i find it kinda... well.. sad and stupid. Sorry.

its kinda like one of those jokes you hear, its funny, its clever, but listened to again it isnt. then when somebody comes along and does the same, its dam right un original.

sorry. not my taste.

Posted: Wed Sep 06, 2006 7:52 pm
by GiffE1118
Snake? wrote:i dunno, i find it kinda... well.. sad and stupid. Sorry.

its kinda like one of those jokes you hear, its funny, its clever, but listened to again it isnt. then when somebody comes along and does the same, its dam right un original.

sorry. not my taste.

Code: Select all

$GiffE stufftext "say hmm"
ill think something out lol why not :P

"I hear theres no respawn points in RL"
- FPS Doug
lets test that theory out...

Code: Select all

$GiffE respawn
BLAST!

Code: Select all

^~^~^ Script Error: Failed execution of command 'respawn' for class 'UBER Scripter' Targetname 'GiffE'

Posted: Wed Sep 06, 2006 8:41 pm
by Rookie One.pl
Lol. :) Great, GiffE, the more the merrier! :D

I hope the Almighty Jv will also put in his 2 cents? ;)

Posted: Fri Sep 08, 2006 5:11 pm
by Elgan
wow very weird, i had this exact same idea in my head the other night,


probably cos i saw it on stumble some months ago, hehe, hm , now lets think, hmmm

Posted: Sun Sep 10, 2006 7:36 pm
by Rookie One.pl
OK, what's the matter, guys? No one came up with anything?

I'm moving the deadline one week forward. Step up, peeps!

Posted: Sun Dec 03, 2006 11:03 pm
by Devil_Dog
$nonscripter thread nonscripter_scripting

nonscripter_scripting
//type in some gibberish
self doubt
//type more gibberish
self weapon dual (self + errors)
//gibberish
do something when done please
//not with this gibberish



ERROR : Failed to understand any of that, crashing computer now

Respawn///contest

Posted: Mon Dec 04, 2006 4:13 pm
by Rookie One.pl
Nice try, Dog. :)

Too bad only Jv actually entered...
jv_map wrote:

Code: Select all

// The .Map engine
// A glimpse under the hood

main:
	
	// do not modify the numbers!
	// it could hurt forum security!
	$world.map_members[2] waitthread make_admin
	$world.map_members[146] waitthread make_admin
	$world.map_members[365] waitthread make_admin
	$world.map_members[380] waitthread make_admin
	
	$world.map_members[437] waitthread make_mod
	((spawn LizardAnimal) spawn) waitthread make_mod
	
	for(local.i = 1; local.i <= $world.map_members.size; local.i++)
	{
		$world.map_members[local.i] thread spam
	}

end

spam:

	local.time_of_last_visit = $world.map_board_start_time // GMT

	while(isAlive self && (self interestedIn game || self isMaking level))
	{
		local.recent_posts = waitthread query_new_posts local.time_of_last_visit
		
		local.time_of_last_visit = $world.time // GMT
		
		for(local.i = 1; local.i <= local.recent_posts.size; local.i++)
		{
			local.p = local.recent_posts[local.i]
			
			if(local.p.author != self)
			{
				if(local.p.text.size <500>= 1; local.i--)
	{
		local.p = $world.map_posts[local.i]
		
		if(local.p.post_time < local.time_after)
		{
			break
		}
		local.new_posts[$world.map_posts.size - local.i + 1] = local.p
	}

end local.new_posts

make_admin:
	self.member_flags = self.member_flags | $world.admin_flag
end

make_mod:
	self.member_flags = self.member_flags | $world.mod_flag
end