Author Topic: is scripting like eventing?  (Read 840 times)

is scripting like eventing or is it like server scripting

Er, no. If it were to be like that, there wouldn't be all those fancy gamemodes and add-ons you find today. Eventing is a Blockland-exclusive feature, which does look like a programming language and has some challenge into it, but is not like other programming languages you see.

Yes, Eventing is indeed considered a programming language, but it's not really a "professional" one.

You know what computer programming languages look like, right?
« Last Edit: February 09, 2016, 04:38:05 PM by Marios »

Not really no. You could in theory make a comparison between the two, but in general programming is used to do much more complex things than events are. If you tried to do programming stuff in events, you'd have a tough time. As well if you tried to emulate exactly, events in coding, you'd have a bit of a tough time as well. Not as much of a tough time as the reverse, but still at least a bit tougher.

This is programming:
function Factorial(%n)
{
    return %n <= 1 ? 1 : %n * Factorial(%n - 1);
}


This is eventing:
onProjectileHit -> Self -> setColor -> Red
« Last Edit: February 09, 2016, 04:38:42 PM by Ipquarx »

The concept is similar, although it's a lot more hands-on. Like, you're able to define your own functions and variables rather than only using the preset eventing ones.
Also the formatting is a lot different.

where do i start to program

This was a good starter tutorial for me.


@venting is like Pseudo scripting

Scripting isn't like eventing.
But seeing how events are scripted, the reverse is somewhat true.
Eventing is kind of like scripting. Or is at least a big shortcut to scripting. But very limited.