Removing actors with variables?

● ARCHIVED · READ-ONLY
Started by Ryoshu 3 posts View original ↗
  1. im running into an issue here and i hope someone can help me on this.

    im trying to implement a system where u can dismiss a character by choice.

    initially i tried to set a character to a variable but im not sure how to script call to remove an actor attached to a variable. im pretty sure this is possible since ive seen it done on ace but im just not sure how to pull it off.

    my project has a system of recruiting a variety of party members and dismissing them when you no longer want them or want to make room for a new party member.

    hope someone can shed some light on this issue
    thanks in advance!
  2. :kaohi: If you have the actor's ID stored in variable #1, I think this ought to work:
    Code:
    $gameParty.removeActor($gameVariables.value(1));
    Just change the 1 to whatever number's appropriate for you~
  3. caethyril said:
    :kaohi: If you have the actor's ID stored in variable #1, I think this ought to work:
    Code:
    $gameParty.removeActor($gameVariables.value(1));
    Just change the 1 to whatever number's appropriate for you~
    thanks a bunch it worked perfectly