Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: deltamatrix on Fri 06/04/2007 18:16:17

Title: VIEW names shouldn't match other script names
Post by: deltamatrix on Fri 06/04/2007 18:16:17

I had a VIEW name which was the same as a character script name. AGS wouldn't allow these two script names to match. This is odd coz surely these names shouldn't really be a match as the character script name is prefixed with a 'c'.
Title: Re: VIEW names shouldn't match other script names
Post by: Scorpiorus on Fri 06/04/2007 18:26:34
The thing is that cName is a character Script O-Name (script object name) which is generated from a character script name but it's not the same as script name:

Character script name: EGO
Then character script o-name: cEgo

And either of these will work the same:

cEgo.Walk(...);
character[ EGO ].Walk(...);

So having a view name EGO is impossible as it's already reserved by character.
Title: Re: VIEW names shouldn't match other script names
Post by: monkey0506 on Fri 06/04/2007 20:28:40
The way I work around this is appending a 'V' to my view names, i.e., Ego's default view would be VEGO.
Title: Re: VIEW names shouldn't match other script names
Post by: deltamatrix on Sat 07/04/2007 02:35:29
I've also just noticed that you can't use '_' in script names for dialogs and inventory, yet you can with characters ???

Please can '_''s be allowed for script names next time. I could certainly use them to have clearer script_names