Value

All topics about ZGameEditor goes here.

Moderator: Moderators

Post Reply
User avatar
y offs et
Posts: 418
Joined: Wed Apr 22, 2009 4:26 pm
Location: BC, Canada

Value

Post by y offs et »

Just asking for a clarification of the word "Value".

FileMoveData doc refers to FileDemo, where TileId.Value is used.

Yet Value doesn't show up with code completion, and I can't find any description of it anywhere. It works as displayed, but this question will come up again without some doc somewhere.
User avatar
VilleK
Site Admin
Posts: 2382
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post by VilleK »

"DefineVariable" component has a property called "Value". But since you don't want to use "X.Value" etc the expression editor allow you to type just "X".

When property is a reference to another property, such as AnimatorSimple.Target, you need to type the full "componentname.propertyname" syntax to specify the property.

The "Value" and "IntValue" properties are documented here: http://www.zgameeditor.org/index.php/Co ... neVariable
User avatar
y offs et
Posts: 418
Joined: Wed Apr 22, 2009 4:26 pm
Location: BC, Canada

Post by y offs et »

So how does -

Writing Expressions
.Global properties
..Value
..IntValue

seem to you?
User avatar
VilleK
Site Admin
Posts: 2382
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post by VilleK »

You mean as an alternative structure for the documentation for writing expressions? I'm not sure how important it is to learn about more Value/IntValue, I'd rather see it as a technical detail. However, they should appear in code-completion, so I will change the code so that all the properties are visible.
Post Reply