Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
statlock problem
|
Author |
Message |
ograso
Journeyman
Posts: 135
Likes Given: 10
Likes Received: 2 in 2 posts
Joined: May 2014
Reputation: 0
|
statlock problem
Hey all,
I receive an errors on console as follow. Statchange using in player event.
Code:
ERROR:(e_player.scp,131)Can't resolve <STATLOCK[3]>
ERROR:(e_player.scp,131)Undefined symbol ''
ERROR:(e_player.scp,134)Can't resolve <STATLOCK[3]>
ERROR:(e_player.scp,134)Undefined symbol ''
Any idea?
Code:
ON=@StatChange
IF (<TAG0.OVERRIDE.STATSUM>)
LOCAL.STATSUM=<TAG0.OVERRIDE.STATSUM>
ELSE
LOCAL.STATSUM=<SERV.SKILLCLASS.0.STATSUM>
ENDIF
LOCAL.STATS=<EVAL <OSTR>+<ODEX>+<OINT>>
IF (<LOCAL.STATS> == <LOCAL.STATSUM>)
IF (<STATLOCK[<ARGN1>]> == lock_locked) // Line 131
RETURN 1
ENDIF
IF (<STATLOCK[<ARGN1>]> == lock_up) // Line 134
FOR 0 2
IF (<LOCAL._FOR> != <ARGN1>)
IF (<STATLOCK[<dLOCAL._FOR>]> == lock_down)
IF (<LOCAL._FOR> == 0)
IF (<EVAL <OSTR>-1> > 0)
OSTR --
MAXHITS --
IF (<ARGN1> == 0)
MAXHITS += <EVAL <ARGN2>-<OSTR>>
ELIF (<ARGN1> == 1)
MAXMANA += <EVAL <ARGN2>-<OINT>>
ELIF (<ARGN1> == 2)
MAXSTAM += <EVAL <ARGN2>-<ODEX>>
ENDIF
RETURN 0
ENDIF
ELIF (<LOCAL._FOR> == 1)
IF (<EVAL <OINT>-1> > 0)
OINT --
MAXMANA --
IF (<ARGN1> == 0)
MAXHITS += <EVAL <ARGN2>-<OSTR>>
ELIF (<ARGN1> == 1)
MAXMANA += <EVAL <ARGN2>-<OINT>>
ELIF (<ARGN1> == 2)
MAXSTAM += <EVAL <ARGN2>-<ODEX>>
ENDIF
RETURN 0
ENDIF
ELIF (<LOCAL._FOR> == 2)
IF (<EVAL <ODEX>-1> > 0)
ODEX --
MAXSTAM --
IF (<ARGN1> == 0)
MAXHITS += <EVAL <ARGN2>-<OSTR>>
ELIF (<ARGN1> == 1)
MAXMANA += <EVAL <ARGN2>-<OINT>>
ELIF (<ARGN1> == 2)
MAXSTAM += <EVAL <ARGN2>-<ODEX>>
ENDIF
RETURN 0
ENDIF
ENDIF
RETURN 1
ENDIF
ENDIF
ENDFOR
RETURN 1
ENDIF
ELIF (<LOCAL.STATS> < <LOCAL.STATSUM>)
IF (<ARGN1> == 0)
MAXHITS += <EVAL <ARGN2>-<OSTR>>
ELIF (<ARGN1> == 1)
MAXMANA += <EVAL <ARGN2>-<OINT>>
ELIF (<ARGN1> == 2)
MAXSTAM += <EVAL <ARGN2>-<ODEX>>
ENDIF
ENDIF
|
|
03-23-2015 12:04 AM |
|
|
Messages In This Thread |
statlock problem - ograso - 03-23-2015 12:04 AM
|
User(s) browsing this thread: 2 Guest(s)