The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regiontype
Author Message
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #1
Regiontype
hey people!
im in moonglow now. its easy to define region (.where, .region show.name).
But how to write correct region name in script?
Code:
[regiontype a_townmoonglow]
on=@enter
src.events +e_myevent

doesnt work!
02-08-2013 07:03 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Regiontype
Not entirely sure I am following you but I will try and explain region events....


Code:
[REGIONTYPE r_region_event]
ON=@Enter
src.events +e_myplayer_event

And to add the region event to the region inside your sphere_map0.scp:

Code:
[AREADEF a_townMoonglow]
EVENTS=r_default,r_default_rock,r_default_water,r_default_tree,r_default_grass  // <---- here are your REGIONAL events add r_region_event to this line.
NAME=Moonglow
GROUP=Moonglow
FLAGS=REGION_FLAG_NOBUILDING|REGION_FLAG_GLOBALNAME|REGION_FLAG_GUARDED
P=4442,1172,0,0
RECT=4379,1045,4439,1176,0
RECT=4383,1021,4430,1045,0
RECT=4439,1048,4497,1142,0
RECT=4379,1176,4399,1181,0
RECT=4439,1142,4489,1176,0
RECT=4459,1176,4485,1184,0
TAG.GUARDOWNER=the town

[Image: 2nis46r.jpg]
(This post was last modified: 02-08-2013 07:14 AM by Mordaunt.)
02-08-2013 07:09 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #3
RE: Regiontype
did you attached that regiontype to an areadef ?
02-08-2013 07:12 AM
Find all posts by this user Like Post Quote this message in a reply
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #4
RE: Regiontype
thanx, but AREA its not regiontype! For example r_ohoho

how to define regiontype of Moonglow?
(This post was last modified: 02-08-2013 07:46 AM by mrkarlo.)
02-08-2013 07:45 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #5
RE: Regiontype
r_ohohoh is the name of a regional event
you have to add it to the region for it to work, which is why it goes under an areadef or roomdef in sphere_map

you can temporarily add it ingame with .region.events +r_yaddayadda but to do it via script you need to do it as i showed.

[Image: 2nis46r.jpg]
02-08-2013 07:50 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
mrkarlo
Journeyman
*

Posts: 160
Likes Given: 3
Likes Received: 6 in 5 posts
Joined: Mar 2012
Reputation: 1



Post: #6
RE: Regiontype
yes, thanks guys!
Code:
[AREADEF a_townMoonglow]
EVENTS=r_default,r_beachforboys

Code:
[regiontype r_beachforboys]
on=@enter
src.events +e_nocombat
thanx!
02-08-2013 08:07 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)