Hello everybody.
I am planning to make a "Learning skill through items" common event,
the step is like:
1. use a"Fire ball scroll" to one of actors of party
2. he got a state named "Learning skill " (Id=0150)
3. common event detected "which actorID" is affected by "Learning skill " state.
4. then the actor learned "Fire ball" skill.
now ,I'm stuck at step 3
this is my script inside the common event :
IF : Script : $gameActors.actor($gameVariables.value(7)).isStateAffected(150)
It's not work and got error
When I use the following script :
IF : Script : $gameActors.actor(1).isStateAffected(150)
It's work fine but only for actor1 !
I want to use variable No.7 to alter actorID,for example:
Harold :$gameVariables.value(7) =1
Therese : $gameVariables.value(7) =2
Marsha : $gameVariables.value(7) =3
.... etc.
Sorry for poor english , can anyone please help me?
I am planning to make a "Learning skill through items" common event,
the step is like:
1. use a"Fire ball scroll" to one of actors of party
2. he got a state named "Learning skill " (Id=0150)
3. common event detected "which actorID" is affected by "Learning skill " state.
4. then the actor learned "Fire ball" skill.
now ,I'm stuck at step 3
this is my script inside the common event :
IF : Script : $gameActors.actor($gameVariables.value(7)).isStateAffected(150)
It's not work and got error
When I use the following script :
IF : Script : $gameActors.actor(1).isStateAffected(150)
It's work fine but only for actor1 !
I want to use variable No.7 to alter actorID,for example:
Harold :$gameVariables.value(7) =1
Therese : $gameVariables.value(7) =2
Marsha : $gameVariables.value(7) =3
.... etc.
Sorry for poor english , can anyone please help me?