SphereCommunity
Undefined Symbol ' ' - Printable Version

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

Pages: 1 2


Undefined Symbol ' ' - Kyrbis - 07-26-2013 10:16 PM

And another time I don't get where this small error is coming from in this event :

EVENTS e_orkgesicht]
ON=@ItemTargOn_Char
IF (<I.ACT.TYPE>==t_scissors) && (<ARGO.TAG.RASSE.ORK>==1)
message Da gibt es nichts zum schneiden.
RETURN 1
ELSE
RETURN 0
ENDIF

ON=@ItemEquip
IF (<I.ACT.TYPE>==t_hair) && (<I.TAG.RASSE.ORK>==1)
message Du kannst keine Frisuren aendern.
RETURN 1
ELSE
RETURN 0
ENDIF


Error message is:ERROR:(rassenevents.scp,11)Undefined symbol ''

The script works though


RE: Undefined Symbol ' ' - Darkyhood - 07-26-2013 11:19 PM

http://forum.spherecommunity.net/Thread-Problem-with-Spellselect-trigger?pid=11802#pid11802
Same? or try TAG0.


RE: Undefined Symbol ' ' - Alaric - 07-26-2013 11:24 PM

I'm not sure what the script is for but... the tag might be problem, ain't it empty? And the I.ACT.TYPE... switch it just for ACT.TYPE==.

But if the scissors have this event, why are you checking whether they are scissors?


RE: Undefined Symbol ' ' - Kyrbis - 07-26-2013 11:31 PM

Damn, got it. it was the TAG, the script was checking someone who did not have this TAG at all. just did not think about that.
and the event does not go to scissors, its on the players.
thanks for all your help, really have to think all variables through


RE: Undefined Symbol ' ' - xwerswoodx - 07-27-2013 12:28 AM

(<I.TAG.RASSE.ORK>==1)

change with

(<DTAG.RASSE.ORK>==1)


RE: Undefined Symbol ' ' - darksun84 - 07-27-2013 02:37 AM

tags/local are already evaluated in if/loop constructs Big Grin


RE: Undefined Symbol ' ' - xwerswoodx - 07-27-2013 04:26 AM

However, this doesn't mean it will not give an error Smile)) On the other hand, this is only habit Big Grin


RE: Undefined Symbol ' ' - darksun84 - 07-27-2013 04:43 AM

bad habit :\


RE: Undefined Symbol ' ' - Alaric - 07-27-2013 04:46 AM

(07-27-2013 04:26 AM)xwerswoodx Wrote:  However, this doesn't mean it will not give an error Smile)) On the other hand, this is only habit Big Grin
I don't know but I like my scripts to be the simpliest as possible. That's the satisfaction. The more you complicate things, the more you're confused and in that point I'd rather delete it and rewrite it Tongue This was just a small example... Why dtag, when its not necessary Smile


RE: Undefined Symbol ' ' - Rattlehead - 07-27-2013 01:17 PM

like darky said

TAG.RASSE.ORK

should be

TAG0.RASSE.ORK

so in the case the tag doesnt exist it will eval to 0 and wont break the script