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,756
Reaction score
7,862
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,756
Reaction score
7,862
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 Posts

Latest Profile Posts

The second draft of my script is almost done, and I don't think I'm going to write a third draft. I'll make changes to dialogue here and there, but I'm happy with the series of events the way they are.
How you feel about font and dialogue box changing for every main character while the minor cast and regular npc get their own styles? Too much?
Just found an obviously custom effect (i.e. edited by me) in my resources>sounds folder called "rip jaw off". Dear Lord what is wrong with me as a person that at some point I needed a sound *specifically* for THAT??
(...rhetorical question.)
so like with the whole 'familiarity breeds contempt thingy', how are you supposed to tell if your title screen/battle music gets really tedious after a few dozen plays or if you're just personally hella sick of it?

Forum statistics

Threads
107,523
Messages
1,030,242
Members
139,648
Latest member
Heis
Top