Conditional branch by script call

CaliburnAltais

Kamen Rider Altais
Member
Joined
Oct 25, 2012
Messages
18
Reaction score
2
First Language
Portuguese
Primarily Uses
....

I try make a event that haves a condition of if the leader haves a skill or a specific set of skills the event will begin deleted, like a bush that will burn if the leader haves a fire spell or cutting skill.

i have try put "$game_party[0]==$game_skill[29]", "$game_party[0].skills.include?($data_skills[29])==true" but all they don't work, always gives the condition as true and deletes the event even if the skill is not learned

I try to do a event that burn when the leader haves the skill 20,21,22 or 23 and a event that burn if haves 24 and 25 at same time

Some one can say who is the exact script call to use in the conditional branch? plz
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
Please post a screenshot of your event, that will help a lot.

There are several ways to have an event disappear on certain conditions, and it depends on the timing and/or triggering of the event what would be the best solution.
 

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
863
First Language
German
Primarily Uses
This doesn't need a script. In your event you can do a conditional branch with (Page 2) "Actor -> Skill learned".

Also, the script call you are looking for is

Code:
$game_party.leader.skill_learn?($data_skills[<skill id>])
 
Last edited by a moderator:

CaliburnAltais

Kamen Rider Altais
Member
Joined
Oct 25, 2012
Messages
18
Reaction score
2
First Language
Portuguese
Primarily Uses
Thanks lavra it really helps

Then if i put: 

$game_party.leader.skill_learn?($data_skills[29])||$game_party.leader.skill_learn?($data_skills[30])the condition will only be true if the leader haves the skill 29 and 30

if i put:

$game_party.leader.skill_learn?($data_skills[29])&&$game_party.leader.skill_learn?($data_skills[30])will only begin true if the leader haves both

Right?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
the condition will only be true if the leader haves the skill 29 and 30


Right?
You mistyped. The first variant is true if the leader has skill 29 OR skill 30, not and.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,062
Members
137,575
Latest member
akekaphol101
Top