Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Region or room underground
Author Message
artexd
Apprentice
*

Posts: 22
Likes Given: 6
Likes Received: 0 in 0 posts
Joined: Sep 2014
Reputation: 0



Post: #1
Region or room underground
How to define a room or region that is underground ( -25 )?
I don't want events and region types trigger on the ground ( 0 ) just underground (-25).
09-19-2014 04:08 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,140
Likes Given: 217
Likes Received: 89 in 76 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #2
RE: Region or room underground
Add "region_flag_underground" to room/region events.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
09-19-2014 06:39 AM
Find all posts by this user Like Post Quote this message in a reply
artexd
Apprentice
*

Posts: 22
Likes Given: 6
Likes Received: 0 in 0 posts
Joined: Sep 2014
Reputation: 0



Post: #3
RE: Region or room underground
But I want weather on the ground. When I make a room with flag UNDERGROUND then all the Z positions have the flag.
What I mean is, I want in the same X,Y location have 2 rooms. One above Z=0 and one below Z=-5.
09-19-2014 09:03 PM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #4
RE: Region or room underground
on sphere it's not possible create 2 AREADEF / ROOMDEF at the same spot with different Z

but if you really want stop the weather effect, try using a workaround that will set FLAGS |= statf_indoors on the player when it goes underground, players with this flag will not have weather effects. It's a horrible solution but maybe it will help. Something like this
Code:
[ITEMDEF i_floor_noweather]
ID=i_floor_marble
NAME=Floor to stop weather effects

ON=@Create
ATTR=attr_invis|attr_move_never  //this will make it invisible to players

ON=@Step
IF (<SRC.FLAGS> & statf_indoors)
  SRC.FLAGS &= ~statf_indoors
  SRC.EVENTS -e_floor_noweather
ELSE
  SRC.FLAGS |= statf_indoors
  SRC.EVENTS +e_floor_noweather
ENDIF

[EVENTS e_floor_noweather]  //this event will remove the flag if the player leave the region using teleport/recall/gate/etc without step again on the workaround floor to unset the flag
ON=@RegionLeave
SRC.FLAGS &= ~statf_indoors
SRC.EVENTS -e_floor_noweather
09-20-2014 02:01 AM
Find all posts by this user Like Post Quote this message in a reply
artexd
Apprentice
*

Posts: 22
Likes Given: 6
Likes Received: 0 in 0 posts
Joined: Sep 2014
Reputation: 0



Post: #5
RE: Region or room underground
OK, Thanks Smile
09-20-2014 03:20 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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