SphereCommunity
Help! - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Help! (/Thread-Help--4833)

Pages: 1 2


Help! - an0n!m0use - 05-31-2016 03:06 AM

Hi Bye
Can you help me to make one script ...
So, if in one location for more than two players, in world has been written: <REGION.NAME> is attacked by players!


RE: Help! - an0n!m0use - 06-02-2016 03:26 AM

Guys, any idea ?


RE: Help! - Criminal - 06-02-2016 03:54 AM

region area
on enter
region.tag.players += 1

on exit
region.tag.players -= 1

a timer with

if region.tag.players > 1
blablalba..

if i don't explain well or need more help, just tell me


RE: Help! - an0n!m0use - 06-03-2016 03:29 PM

PHP Code:
[REGIONTYPE r_region_attack]
On=@Enter
 
IF (<SRC.IsPlayer>)
  IF !(<
REGION.TAG0.players>)
   
REGION.TAG.players 1
  
ELSE
   
REGION.TAG.players += 1
  
ENDIF
ENDIF

On=@Exit
    IF (<
SRC.IsPlayer>)
        
REGION.TAG.players -= 1
    
ENDIF 

REGION.TAGLIST is empty ... why don't add TAG to region ? Confused


RE: Help! - Criminal - 06-03-2016 03:44 PM

which sphere version are you using?


RE: Help! - an0n!m0use - 06-03-2016 06:43 PM

(06-03-2016 03:44 PM)Criminal Wrote:  which sphere version are you using?
Sphere 56b - 2011, internal build #1506 Rolleyes


RE: Help! - an0n!m0use - 06-07-2016 12:41 AM

Any idea ?


RE: Help! - an0n!m0use - 06-13-2016 03:54 AM

Up! Up! Up!


RE: Help! - Mad Gunther - 06-14-2016 03:26 AM

Use tag0 instead of tag in all lines, maybe it helps.


RE: Help! - an0n!m0use - 06-14-2016 06:09 AM

(06-14-2016 03:26 AM)Mad Gunther Wrote:  Use tag0 instead of tag in all lines, maybe it helps.
No Sad