Referring to a specific actor

Rgss3 noob here.

Long question short:

How do I make that just the actor[001] give 4 actions_times instead of just one?

Look at the attached picture:

I need to do that the actor[001] performs just "4" actions and everyone else just do the "normal" action_times

Action_times.png
Just try to add this line

Code:
return 4 if actor? && id == 4
Thanks.

The line of code didn't actually worked in that specific script. But I arranged it and worked perfectly. I just wanted to know how to reffer to a specific actor and you just showed me so thanks. 👍
You don't use 001 - you just use 1 in a script.


Any reason why you're doing this in script instead of just adding a feature to the actor?
Any reason why you're doing this in script instead of just adding a feature to the actor?
Just because that actor needs to do 4 actions at all. Other Equipment/State that inscrease action_times must not affect him and should be dedicated for the rest of the party.

I modified TheoAllen's code to do just like that and it looks like this:

def make_action_times if actor? && id == 1   action_plus_set.inject(4) {|r, p| 0 }  else    action_plus_set.inject(1) {|r, p| rand < p ? r + 1 : r }  endendThat solved the problem...

I just only need to do that the actor 1 do specific actions in each turn... but that's another post I made here if someone want to take a look:

http://forums.rpgmakerweb.com/index.php?/topic/25559-one-character-command-chain/
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/referring-to-a-specific-actor.25812/