Hi, GIL
As a additional way to implement my game logic is a good way yet. It let me feel free

Now , ORK event node system is awesome , But I think Organization logic use C# code is good way yet, (like playmaker, seem is good, but no more program really develop game with it. )
Base on current ORK feature, Can full c# code replace event node, Just use a custom event step, implement my logic in the custom step, Then use the custom step to one event assert file, It is work,
As a additional way to implement my game logic is a good way.

Now my question is :
Can add a function in the event Node editor , When I select a node( or whole event file, some nodes ) , I can get the c# code in a dialog or below section, so I can copy the fragment code to c# code file , I don't know the effect about funtion, just a advice,
The Tutorial startEvent.assert, my try code is

public class StartEventStep : BaseEventStep{
public override void Execute(BaseEvent baseEvent){
// INFO: this code will perform if this step is executed.
JoinActiveGroupStep joinActiveGroupStep= new JoinActiveGroupStep();
joinActiveGroupStep.id = 1;
joinActiveGroupStep.Execute(baseEvent);

SpawnPlayerStep spawnPlayerStep = new SpawnPlayerStep();
spawnPlayerStep.target = ORKFramework.PlayerSpawnTarget.SpawnPoint;
spawnPlayerStep.id = 0;
spawnPlayerStep.Execute(baseEvent);

LearnLogTextStep learnLogTextStep = new LearnLogTextStep();
learnLogTextStep.id = 0;
learnLogTextStep.Execute(baseEvent);

LearnRecipeStep learnRecipeStep = new LearnRecipeStep();
learnRecipeStep.id = 0;
learnRecipeStep.id2 = 0;
learnRecipeStep.showNotification = true;
learnRecipeStep.showNotification = true;
learnRecipeStep.Execute(baseEvent);


LearnRecipeStep learnRecipeStep2 = new LearnRecipeStep();
learnRecipeStep2.id = 0;
learnRecipeStep2.id2 = 1;
learnRecipeStep2.showNotification = true;
learnRecipeStep2.showNotification = true;
learnRecipeStep2.Execute(baseEvent);
}

}
  • No, that's not possible and also not a good way of doing it - each (built-in) event step's Execute will tell the running event which step to use next.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • @gamingislove
    Thanks your advice.
Sign In or Register to comment.