VIEW names shouldn't match other script names

Started by deltamatrix, Fri 06/04/2007 18:16:17

Previous topic - Next topic

deltamatrix


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'.
BAD WOLF - TORCHWOOD - MR SAXON - THE BEES ARE DISAPPEARING - PANDORICA - RIVER SONG

Scorpiorus

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.

monkey0506

The way I work around this is appending a 'V' to my view names, i.e., Ego's default view would be VEGO.

deltamatrix

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
BAD WOLF - TORCHWOOD - MR SAXON - THE BEES ARE DISAPPEARING - PANDORICA - RIVER SONG

SMF spam blocked by CleanTalk