Difficulty: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (Removed overfluent content. Those functions are usually triggered by TVs, no need to call on func by another.)
m (link fix)
Line 3: Line 3:
With the developer mode switched on you can get the mode by typing ''difficulty'' into the console. The mode can only be read, not changed.
With the developer mode switched on you can get the mode by typing ''difficulty'' into the console. The mode can only be read, not changed.


Characters get more health and can also be replaced by a [[OBD_talk:ONCV|stronger version of themselves]] on hard mode.
Characters get more health and can also be replaced by a [[XML:ONCV|stronger version of themselves]] on hard mode.


You can use ''difficulty'' and if-statements to make the script more flexible.
You can use ''difficulty'' and if-statements to make the script more flexible.

Revision as of 17:49, 10 April 2013

Oni has three difficulty modes: easy(0), normal(1), and hard(2).

With the developer mode switched on you can get the mode by typing difficulty into the console. The mode can only be read, not changed.

Characters get more health and can also be replaced by a stronger version of themselves on hard mode.

You can use difficulty and if-statements to make the script more flexible.


func your_function_1
{
	# script code with no modifications (can be considered as the easy mode)
	# but if difficult is not easy you can tell the script to do this or that ...

	if (difficulty () eq 1)
	{
		# normal
		# give enemy a weapon, more health, etc
	}
	if (difficulty () eq 2)
	{
		# hard
		# spawn additional enemies
	}
}