Difference between revisions of "Template:Event"
From Dragon Age Toolset Wiki
BryanDerksen (Talk | contribs) (so's pre. Sigh.) |
BryanDerksen (Talk | contribs) (faking the preformatting style) |
||
Line 22: | Line 22: | ||
'''Example script:''' | '''Example script:''' | ||
− | <div class="dascript" style="font-family:monospace;"> | + | <div class="dascript" style="font-family:monospace; background-color:#F9F9F9; border: 1px dashed #2F6FAB; line-height: 1.1em; padding: 1em;"> |
− | + | int {{{int0name}}} = GetEventInteger(ev, 0); // {{{int0desc}}}<br/> | |
− | + | int {{{int1name}}} = GetEventInteger(ev, 1); // {{{int1desc}}}<br/> | |
− | + | int {{{int2name}}} = GetEventInteger(ev, 2); // {{{int2desc}}}<br/> | |
− | + | float {{{float0name}}} = GetEventFloat(ev, 0); // {{{float0desc}}}<br/> | |
− | + | float {{{float1name}}} = GetEventFloat(ev, 1); // {{{float1desc}}}<br/> | |
− | + | float {{{float2name}}} = GetEventFloat(ev, 2); // {{{float2desc}}}<br/> | |
− | + | string {{{string0name}}} = GetEventString(ev, 0); // {{{string0desc}}}<br/> | |
− | + | string {{{string1name}}} = GetEventString(ev, 1); // {{{string1desc}}}<br/> | |
− | + | string {{{string2name}}} = GetEventString(ev, 2); // {{{string2desc}}}<br/> | |
− | + | object {{{object0name}}} = GetEventObject(ev, 0); // {{{object0desc}}}<br/> | |
</div> | </div> |
Revision as of 18:44, 23 July 2009
- Sent when:
- {{{when}}}
- Sent to:
- {{{to}}}
- Sent from:
- {{{from}}}
- Parameters:
-
- Creator: {{{creator}}}
- Integer 0: {{{int0desc}}}
- Integer 1: {{{int1desc}}}
- Integer 2: {{{int2desc}}}
- Float 0: {{{float0desc}}}
- Float 1: {{{float1desc}}}
- Float 2: {{{float2desc}}}
- String 0: {{{string0desc}}}
- String 1: {{{string1desc}}}
- String 2: {{{string2desc}}}
- Object 0: {{{object0desc}}}
Example script:
int {{{int0name}}} = GetEventInteger(ev, 0); // {{{int0desc}}}
int {{{int1name}}} = GetEventInteger(ev, 1); // {{{int1desc}}}
int {{{int2name}}} = GetEventInteger(ev, 2); // {{{int2desc}}}
float {{{float0name}}} = GetEventFloat(ev, 0); // {{{float0desc}}}
float {{{float1name}}} = GetEventFloat(ev, 1); // {{{float1desc}}}
float {{{float2name}}} = GetEventFloat(ev, 2); // {{{float2desc}}}
string {{{string0name}}} = GetEventString(ev, 0); // {{{string0desc}}}
string {{{string1name}}} = GetEventString(ev, 1); // {{{string1desc}}}
string {{{string2name}}} = GetEventString(ev, 2); // {{{string2desc}}}
object {{{object0name}}} = GetEventObject(ev, 0); // {{{object0desc}}}