Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Dark zone script help

Author
Message
The masters
14
Years of Service
User Offline
Joined: 18th Aug 2010
Location:
Posted: 2nd Sep 2010 23:09
Hello I need script for dark or night zone.
This script is good, but when I have got more floors, this script is used only one. When I insert more trigger zone with this script, works only one.
Excuse my English and thank you for answer!

Dark script here:


;Artificial Intelligence Script
; by xplosys

;You should set the ambiance settings in the first "state=0"
;line to whatever your game settings are, or just let the
;trigger zone set the levels ambiance.

;Goes dark when player steps in zone. Change the numbers to suite.

;Header

desc = Dark in Zone

;Triggers

:state=0,plrwithinzone=0:ambience=250,ambiencered=250,ambienceblue=250,ambiencegreen=250
:state=0,plrwithinzone=1:ambience=25,ambiencered=25,ambienceblue=25,ambiencegreen=25

;End of Script
Nbt
15
Years of Service
User Offline
Joined: 11th Oct 2009
Location: Behind you!!
Posted: 3rd Sep 2010 04:25
Can you not just make the zone cover all layers - i.e. hold down shift key and roll back on your mouse wheel, so the trigger zone goes from layer 0 - your top most layer ??

Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 3rd Sep 2010 06:11 Edited at: 3rd Sep 2010 06:17
The problem is that the zone you left (and any other zone) is performing its...
Quote: ":state=0,plrwithinzone=0:ambience=250,ambiencered=250,ambienceblue=250,ambiencegreen=250"


While the new zone is trying to ...

Quote: ":state=0,plrwithinzone=1:ambience=25,ambiencered=25,ambienceblue=25,ambiencegreen=25"


...which overrides it.

Try moving to another state once they leave it so it only performs the change once, instead of continually looping forever.

Like so...



I haven't tested it yet, but it should work, so give it a try.

Quote: "Can you not just make the zone cover all layers - i.e. hold down shift key and roll back on your mouse wheel, so the trigger zone goes from layer 0 - your top most layer ??"

He could do that easily if all of the zones are the same size and directly above one another.
However, that won't work if they are different sizes in various points of the map.

   Conjured Entertainment

 WARNING: Intense Madness

Login to post a reply

Server time is: 2024-11-24 20:07:08
Your offset time is: 2024-11-24 20:07:08