Store current actor ID into variable

Discussion in 'Javascript/Plugin Support' started by styx92, Aug 26, 2016.

  1. styx92

    styx92 Veteran Veteran

    Messages:
    310
    Likes Received:
    38
    First Language:
    German
    Hey guys.


    I have mabye a simple question.


    I need to know a scriptcall or somethinh to check the current actor in battle. The id from the actor, who is on turn actually. 


    Example:


    current actor id = variable 


    Please help :/
     
    #1
  2. mrcopra

    mrcopra Veteran Veteran

    Messages:
    448
    Likes Received:
    140
    Location:
    Your Heart
    First Language:
    Not English
    Primarily Uses:
    N/A
    BattleManager.actor().actorId()
     
    #2
    styx92 likes this.
  3. styx92

    styx92 Veteran Veteran

    Messages:
    310
    Likes Received:
    38
    First Language:
    German
    Many thanks, but this happend.


    Where is the mistake?

    Unbenannt.PNG


    Unbenannt2.PNG
     
    #3
  4. mrcopra

    mrcopra Veteran Veteran

    Messages:
    448
    Likes Received:
    140
    Location:
    Your Heart
    First Language:
    Not English
    Primarily Uses:
    N/A
    hmmm,


    when you put it that way it means you trying to get enemy's ID
     
    #4
    styx92 likes this.
  5. styx92

    styx92 Veteran Veteran

    Messages:
    310
    Likes Received:
    38
    First Language:
    German
    And how i use it to get the actor? :D
    Enemy is unimportant.
    Should i do it in a skill or a common event?


    I want to check every turn, which actor is on turn.
     
    #5
  6. mrcopra

    mrcopra Veteran Veteran

    Messages:
    448
    Likes Received:
    140
    Location:
    Your Heart
    First Language:
    Not English
    Primarily Uses:
    N/A


    Btw, your way will check once in the battle unless you have plugin to check every turn.


    I love complicated way to get what i want, so if you want i can make plugin for check every turn or wait for anyone have a way to check


    without plugin
     
    #6
    styx92 likes this.
  7. styx92

    styx92 Veteran Veteran

    Messages:
    310
    Likes Received:
    38
    First Language:
    German
    Sounds pretty :D What do you want for your work?
     


    Mabye you want some background:

    Look here:






    I want to check every actor to check his TP and other conditions and if its true, then i will blend a picture with "Overdrive" or something. Like in the link.


    I dont want only to lock a new stype window. Thats to standard. I want that the player press Q or something to open a specific stype window and choose his overlimit skills.
    An every actor have of course his own skills. I want to create the skill window with yanflys common event menu, because i dont know the scriptcall to open stype windows in battle. Hope you understand what i mean :D


    And the overdrive window should be apear if the conditions met. But i need to check the specific actor, because i dont want, that actor 3 have 100Tp and its actor1's turn and he can access the overdrive menu.
     
    #7
  8. mrcopra

    mrcopra Veteran Veteran

    Messages:
    448
    Likes Received:
    140
    Location:
    Your Heart
    First Language:
    Not English
    Primarily Uses:
    N/A
  9. styx92

    styx92 Veteran Veteran

    Messages:
    310
    Likes Received:
    38
    First Language:
    German
    Works pretty *.* many thanks for this!


    Do have an idea how i create an event before the actor turn? I have to check the variable from your script at the beginning of the actor action. The maker only allow to execute an event at the


    end of each turn.


    Edit:


    Maybe you can include an common event call in your script, every time when it checks the current actor?


    That would be awesome :D
     
     
    Last edited by a moderator: Aug 27, 2016
    #9
  10. styx92

    styx92 Veteran Veteran

    Messages:
    310
    Likes Received:
    38
    First Language:
    German
    Bump! :)
     
    #10
  11. mrcopra

    mrcopra Veteran Veteran

    Messages:
    448
    Likes Received:
    140
    Location:
    Your Heart
    First Language:
    Not English
    Primarily Uses:
    N/A
    Sorry I wasn't forgot about you


    But I faced hard time to make it work before actor's turn 
     
    #11
  12. styx92

    styx92 Veteran Veteran

    Messages:
    310
    Likes Received:
    38
    First Language:
    German
    Oh i'm sorry. I don't want to get on your nerves.


    I thought you only have to write on line like:

    Code:
    $gameTemp.reserveCommonEvent
     
    #12
  13. styx92

    styx92 Veteran Veteran

    Messages:
    310
    Likes Received:
    38
    First Language:
    German
    Oh i'm sorry. I don't want to get on your nerves.


    I thought you only have to write on line like:

    Code:
    $gameTemp.reserveCommonEvent
     
    #13
  14. styx92

    styx92 Veteran Veteran

    Messages:
    310
    Likes Received:
    38
    First Language:
    German
    Oh i'm sorry. I don't want to get on your nerves.


    I thought you only have to write on line like:


    $gameTemp.reserveCommonEvent(ID)


    But no problem, i would find a way :)
    I thank you very much for your trouble :D
     
    #14
  15. mrcopra

    mrcopra Veteran Veteran

    Messages:
    448
    Likes Received:
    140
    Location:
    Your Heart
    First Language:
    Not English
    Primarily Uses:
    N/A


    I know that script


    but i couldn't make it execute in the begin of actor's turn with actor's id


    I think there is plugin can execute common event anytime in battle but i am not sure 
     
    #15
  16. styx92

    styx92 Veteran Veteran

    Messages:
    310
    Likes Received:
    38
    First Language:
    German
    I watched everywhere but i dont find any plugin for that. I would not ask you, if i found some plugin for that
     
    #16

Share This Page