Skip to content

Latest commit

 

History

History
56 lines (45 loc) · 1.21 KB

File metadata and controls

56 lines (45 loc) · 1.21 KB

GetStorySuffix

Description

Returns the suffix of the indicated Story.

FUNCTION GetStorySuffix(story : HANDLE): STRING;
def vs.GetStorySuffix(story):
    return STRING

Parameters

Name Type Description
story HANDLE The Story whose suffix is desired.

Examples

{ Find the story we are currently working on }
hStory := GetStoryBelow( NIL );
storySuffix := GetStorySuffix( hStory );
WHILE (( storySuffix  <> TmpLayerSuffix ) AND ( hStory <> NIL ) ) DO BEGIN
	hStory := GetStoryAbove( hStory );
	if ( hStory <> NIL ) THEN BEGIN
		storySuffix := GetStorySuffix( hStory );

3: BEGIN
	story := GetStoryBelow(NIL);
	WHILE story <> NIL DO BEGIN
		AddChoice(dialogID, 10, GetStorySuffix(story), 0);
		story := GetStoryAbove(story);
	END;
import vs

# Returns the suffix of the indicated Story.
story = vs.FSActLayer()  # handle to the first selected object on the active layer

text = vs.GetStorySuffix(story)
vs.Message('GetStorySuffix returned: ' + str(text))

See Also

VS Functions: GetStoryElevation | SetStorySuffix

Version

Availability: from Vectorworks 2012

Category