# Script Event Data

### ScriptEventData Class

Result of a [ScriptBase.PostScriptEvent(ScriptId, string, Reflective)](https://help.sansar.com/hc/en-us/articles/115003549048#M:Sansar.Script.ScriptBase.PostScriptEvent\(Sansar.Script.ScriptId,System.String,Sansar.Script.Reflective\)) call.

### Syntax

public class **ScriptEventData** : [EventData](https://help.sansar.com/hc/en-us/articles/115003548788)

### Member Details

#### Data Property

> #### Syntax
>
> **Value**
>
> > May be null.
>
> #### Remarks
>
> #### Requirements
>
> **Namespace:** Sansar.Script\
> **Assembly:** Sansar.Script (in Sansar.Script.dll)\
> **Assembly Versions:** 1.0.0.0
>
> ***

#### Message Property

> The message the event was created with.
>
> #### Syntax
>
> public [string](http://www.go-mono.com/docs/monodoc.ashx?link=T:System.String) **Message** { get; }
>
> **Value**
>
> > This string should always match the corresponding [ScriptBase.SubscribeToScriptEvent(string, Action\<Sansar.Script.ScriptEventData>,System.Boolean)](https://help.sansar.com/hc/en-us/articles/115003549048#M:Sansar.Script.ScriptBase.SubscribeToScriptEvent\(System.String,System.Action{Sansar.Script.ScriptEventData},System.Boolean\)) call.
>
> #### Remarks
>
> #### Requirements
>
> **Namespace:** Sansar.Script\
> **Assembly:** Sansar.Script (in Sansar.Script.dll)\
> **Assembly Versions:** 1.0.0.0
>
> ***

#### SourceScriptId Property

> The id of the script which generated the event.
>
> #### Syntax
>
> public [ScriptId](/latest/script-api-docs/sansar-script-namespace/scriptid.md) **SourceScriptId** { get; }
>
> **Value**
>
> #### Remarks
>
> #### Requirements
>
> **Namespace:** Sansar.Script\
> **Assembly:** Sansar.Script (in Sansar.Script.dll)\
> **Assembly Versions:** 1.0.0.0
>
> ***

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sansar.com/latest/script-api-docs/sansar-script-namespace/script-event-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
