Script The World!

This forum houses the mapping and/or scripting competitions open to all the .MAP members.

Moderators: Moderators, Competition Moderators

Post Reply
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Script The World!

Post 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. ;)
Last edited by Rookie One.pl on Sun Sep 10, 2006 7:36 pm, edited 1 time in total.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

Hmm good idea, got me thinking already :twisted:
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post 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?!
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Ophisâ„¢
Colonel
Posts: 461
Joined: Sun Mar 12, 2006 2:30 pm
Location: England, Manchester
Contact:

Post 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.
Image[ Formerly Known As Snakeâ„¢ ]
GiffE1118
Warrant Officer
Posts: 137
Joined: Fri Aug 05, 2005 12:14 am
Contact:

Post 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'
www.95thDivision.com
Image

BOTTOM 125th Poster! lol
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Lol. :) Great, GiffE, the more the merrier! :D

I hope the Almighty Jv will also put in his 2 cents? ;)
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Elgan
Lieutenant General
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post 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
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post 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!
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Devil_Dog
Warrant Officer
Posts: 140
Joined: Fri Feb 17, 2006 2:59 pm

Post 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
Computers hate me!!!!!
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post 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
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Post Reply