Auto-translated
I suggest we post the most useful scripts here. Let me state upfront that this discussion is for useful scripts. So, share what you know. This will be a very helpful topic for beginner mapmakers. :smile02:
Added 5 minutes later
Here's the first very useful script: SetRegionBlocked (" desired region ",true,player number) - this script blocks a region on the map for a specifically designated player.
Script Example - SetRegionBlocked ("kamilla",true,1)
Added 7 minutes later
Here's the second script: GiveExp( "hero script name", specified amount of experience ) - This script gives the specified amount of experience to the specified hero at the beginning of the mission. :smile03:
Added 9 minutes later
Here's the third script: SetObjectEnabled(“object script name”, false) - this script removes the object's core function. This script is useful when you want to assign a script function to an object, but you want the core function not to interfere with the script (not mechanically, but conceptually).
Example: if you enter this script for a lumber mill, it will stop producing wood.
Added 4 minutes later
This script assigns a message to an object: Trigger(OBJECT_TOUCH_TRIGGER,"object script name","file name in Unicode format embedded in the created map")
Script Example: Trigger(OBJECT_TOUCH_TRIGGER,"kamilla","kamillaF")
Added 5 minutes later
Here's the first very useful script: SetRegionBlocked (" desired region ",true,player number) - this script blocks a region on the map for a specifically designated player.
Script Example - SetRegionBlocked ("kamilla",true,1)
Added 7 minutes later
Here's the second script: GiveExp( "hero script name", specified amount of experience ) - This script gives the specified amount of experience to the specified hero at the beginning of the mission. :smile03:
Added 9 minutes later
Here's the third script: SetObjectEnabled(“object script name”, false) - this script removes the object's core function. This script is useful when you want to assign a script function to an object, but you want the core function not to interfere with the script (not mechanically, but conceptually).
Example: if you enter this script for a lumber mill, it will stop producing wood.
Added 4 minutes later
This script assigns a message to an object: Trigger(OBJECT_TOUCH_TRIGGER,"object script name","file name in Unicode format embedded in the created map")
Script Example: Trigger(OBJECT_TOUCH_TRIGGER,"kamilla","kamillaF")