I want to write some functions that Ork Framework will call to complete different tasks.

Function 1: Get a list of all combatants currently in the player's party.

Function 2: Remove specific combatants from the player's party based on the list from function 1

Function 3: Add specific combatants to the player's party

How should I go about writing these functions?
  • You can access the player group via:
    ORK.Game.ActiveGroup
    Which offers a lot of functionality for these kind of things.

    1)
    List<Combatant> list = ORK.Game.ActiveGroup.GetGroup();

    2)
    ORK.Game.ActiveGroup.Leave(combatant, true, true, true);

    3)
    ORK.Game.ActiveGroup.Join(combatant, true, true);
    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!
  • What do I use for the combatant parameters? The combatant's name or the combatant's index number?
  • An actual instance of the combatant you want to join (i.e. Combatant class). You can either create one via script or get one from it's game object.
    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!
Sign In or Register to comment.