|
GeneralStonewall Magician
Joined: 02 Feb 2004 Posts: 364 Location: USA
|
Posted: Sun Sep 05, 2010 3:08 am
[3.25] Script command to create a map zone? |
Is there a zscript command to create a zone? Looking through the documentation I only see commands and functions pertaining to existing zones. If not, I'd like to request it as a feature.
What I'm trying to do is this:
Code: |
$area = %proper(%gmcp.room.info.area)
#IF (%proper(%roomzone()) != $area) {
#IF (%zonenum($area) == -1) {
#CALL %zonecreate($area)
}
#CALL %roomzone(,%zonenum($area))
} |
|
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Mon Sep 06, 2010 5:04 am |
I would think would %zonename could do what you wanted, but it seems to be broken right now.
|
|
_________________ Asati di tempari! |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Sep 07, 2010 5:07 pm |
No, %zonename does not create a new zone. There currently is no way to do this via script. I'll add that to the wish-list for the future.
|
|
|
|
|
|