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:
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)
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.
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.
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 )
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
"We must become the change we want to see in the world" (Mahatma Gandhi)
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!
"We must become the change we want to see in the world" (Mahatma Gandhi)