Why does MOHAA scripting have to be so difficult?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
m4rine
Major General
Posts: 714
Joined: Fri Apr 11, 2003 5:28 pm
Location: UK

Why does MOHAA scripting have to be so difficult?

Post by m4rine »

Why does it? I know the game is on a weird engine (like Quake 3 + modifications + modifications + modifications) but why can't it be like PHP? That would so much easier (even i would be able to do it). If you wanted to print a message when a player walks through a door in PHP it would be like this:

Code: Select all

if ( $player_walk_through == $door )
{
print "You walked through the door!";
}
simple. but with MOHAA scripting it would be like, well i don't actually have a clue, but i have seen it done and while i understood the logic in it, the syntax was a load of bollocks. I am going to attempt to learn how to moh script - but i cant find a simple down-to-earth tutorial on how to get started - like a MOHAA scripting in easy steps sort of tut.
"We must become the change we want to see in the world" (Mahatma Gandhi)
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

No script

Post by tltrude »

You don't need scripting for that. Just place a trigger_multiple in the opening and set the following key/value.

Key: message
Value: You walked through the door!

Key: wait
Value: 5

The wait is to keep it from blinking.
Tom Trude,

Image
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

um, even i knew that, and im an idiot. MoHAA scripting can be learned mostly by common sense. its the syntax thats hard, but even thats not to difficult. as far as a tut bjarne has a great one, but i forgot the site hehe. i bet he will post it here though.
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

Try here : http://www.planetmedalofhonor.com/rjuka ... guage.html

Also look through the documentaion that comes with the MoHRadiant there's some handy stuff in there too.
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

omniscient wrote:um, even i knew that, and im an idiot. MoHAA scripting can be learned mostly by common sense. its the syntax thats hard, but even thats not to difficult. as far as a tut bjarne has a great one, but i forgot the site hehe. i bet he will post it here though.
Its actually here on .MAP as well. In the reference tutorial section.
Admin .MAP Forums
Image
Head above heels.
m4rine
Major General
Posts: 714
Joined: Fri Apr 11, 2003 5:28 pm
Location: UK

Post by m4rine »

:oops: :oops: i never knew that oh well i'm thick but which tut is it in i've got 36 of the .map tuts saved on my pc so i do read them (i have to or i'd be completely without a clue :wink: )
omniscient wrote:its the syntax thats hard
m4rine wrote:i understood the logic in it, the syntax was a load of bollocks
exactly what i said :wink:
"We must become the change we want to see in the world" (Mahatma Gandhi)
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

It's this one:
/t.php?id=82
...with these 3 appendixes:
/t.php?id=83
/t.php?id=84
/t.php?id=85
Admin .MAP Forums
Image
Head above heels.
m4rine
Major General
Posts: 714
Joined: Fri Apr 11, 2003 5:28 pm
Location: UK

Post by m4rine »

:oops: :oops: :oops: :oops: :oops:

it was really stupid me posting this topic. I read your tut Bjarne and it is awesome (i actually had it saved on my pc from quite a while ago, for when i was going to learn to script) now i see how thick i've been. The if statements and for, whil loops work excatly like PHP (which i'm quite good at) and actually it is reletively similar to PHP. I actually think it is quite simple, and as i know PHP it will prob be quite easy to learn. I sound like a right dumbass. But really i should have thought before i opened my mouth. I'm not thick honest!

:oops: :oops: :oops: :oops: :oops:
"We must become the change we want to see in the world" (Mahatma Gandhi)
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

lol :) good luck scripting :) make sure to enjoy :).
Image
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

m4rine wrote:I actually think it is quite simple, and as i know PHP it will prob be quite easy to learn.
He he, well sometimes you just need a little pointer and all works out great. Looking forward to some wicked scripting from U in the future then M8 :D
Admin .MAP Forums
Image
Head above heels.
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

it also has a relation to an old old OLD language, GWBaisic, when u do the math type functions.
Post Reply