is it possible to add stuff to an ExpStore?

Forum for plugin, effect and behavior programmers. Please use the Help & Support forum for help using Construct.

Post » Tue Sep 29, 2009 12:48 am

if so, how would I go about that?

also
do triggered conditions trigger within the calling function or at the end of the current ace element:


[code:12b1wv6z]long ExtObject::aExampleAction(LPVAL params)
{
// ExtObject::CString Answer;
Answer="The event triggered immediately.";
TriggerEvent(1);

Answer="The event triggered after the calling function returned";

return 0;
}

[/code:12b1wv6z]
if OnEvent(1), you retrieved the value Answer, what would it be?
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Tue Sep 29, 2009 8:59 am

Triggers run and complete inside the function call.

What do you mean by adding to an ExpStore? Why on earth would you want to do that? I'm almost certain you're thinking down the wrong lines. ExpStore is not meant to be modified, at all, period. You should stop trying to hijack the engine :P
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Tue Sep 29, 2009 2:04 pm

sorry ash
I'm really not trying to do completely nuts things anymore
also I found a way so I don't need this anyway, but I'm still curious how it would work

I got arrays working for me (there really wasn't any reasonable alternative)
so let's say
[code:2rwuesvh]MyFunc({"Array","goes","here"})[/code:2rwuesvh]

I wanted to make an expression MyArrayRetExp that returns an array value, and I thought arrays were ExpStores

so I wanted to do something like:
[code:2rwuesvh]MyFunc(MyArrayRetExp)[/code:2rwuesvh]

know what I mean?
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461


Return to Construct engineering

Who is online

Users browsing this forum: No registered users and 0 guests