Unknown_Hero Mage
Messages : 780 Quality Points : 78 Registration Date : 2015-09-06
| Subject: [Script System][Suggestions] SetLocationState(type, x, y, state) 2017-03-09, 07:54 | |
| Currently, there is no way to disable or enable an original event for a specific location.
*
SetLocationState(type, x, y, state) type: the ID of the location to select (see section "Locations"). x: X coordinate on the world map. y: Y coordinate on the world map. state: can be set to "0" or "1". - "0" the original event of the location is not activated when a hero moves to the active square of the location. - "1" the original event of the location is activated when a hero moves to the active square of the location.
Disables or enables the event for the specified location.
Examples of use:
SetLocationState(LOCATION_RUINS, 6, 3, 0);
The original event of the Ruins is not activated when a hero moves to the active square of the Ruins. So, nothing happens.
Using values of "-1", the events of all Ruins on the map can be disabled at the same time.
SetLocationState(LOCATION_RUINS, -1, -1, 0);
The original event of the Ruins is not activated when a hero moves to the active square of the Ruins. So, nothing happens. This is applied to all Ruins on the map simultaneously. | |
|
Darmani Master Modder
Messages : 289 Quality Points : 47 Registration Date : 2014-12-27
| Subject: Re: [Script System][Suggestions] SetLocationState(type, x, y, state) 2017-03-13, 07:50 | |
| This would be subsumed by a more general custom location system. | |
|