View unanswered posts | View active topics It is currently Thu Jan 24, 2019 1:50 am

Reply to topic  [ 1 post ] 
 some function questions 
Author Message
Rank 6
Rank 6

Joined: Wed May 17, 2017 7:35 am
Posts: 25
I understand from this (in "init/std/base/char/brain/code/run/state.dat"):
// State:
// This will add new tasks and makes sure the story
// is processed
// the state_run is specific for the story and needs overide

loc.res = state_run();
[loc.res] return;

That the function definition "<*state_run>" in the character's run.dat would be the override. Is there any way to run the previous definition from within it? In this case the original function looks intended to be a placeholder, but it can be useful to have a standard collection of states that could be expanded in individual characters, or individual mains.

And what exactly is going on here? (in "init/std/base/char/brain/code/event/base_event.dat", <base_event_get_state_ref>):
[event.par != null] &<*>(event.par);
else                &<*>();
I get that is the string label of an event ref (ie "state.code.ref.base.chat_event"), and some part of that is converting it to an address for the ref. Or is it the whole &<*ref>? Does that or something like it work with any other data types?

Fri May 26, 2017 5:39 pm
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 0 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group.
Designed by X-Moon Productions.