The below scripts/conditional branches are examples of what I have tryed (the text was just for testing) What I'm really trying to do is make it so that when (the hero/actor) has no weapon equiped, it will make a weapon called fists equip in its place untill a weapon is put in its place. I am looking for this because my battle system I'm using needs you to have a weapon equipped or it won't work. I've been having trouble with getting that result and I really want to avoid making a conditional branch for each weapon to do a check and see if it works. So thanks in advance for any help.
This is there error I keep getting, it happens right after I press start (or after I click where the event is):
The error: [SyntaxError occurred while running script.]
Ok, I've tryed several things:
Note: Each conditional branch is used seperatly and they are all not active at the same time. Also, the text was just a test to see if they would give the "Worked!" result. These are also working on Parallel Process
Conditional Branch: Script: If @actor[1].weapon_id == 0
@>Text: Worked!
@>
Else
@>Text: Didn't Work...
@>
Branch End
Conditional Branch: Script: If @actor.weapon_id == 0
@>Text: Worked!
@>
Else
@>Text: Didn't Work...
@>
Branch End
Conditional Branch: Script: If @actor[1].weapon_id == nil
@>Text: Worked!
@>
Else
@>Text: Didn't Work...
@>
Branch End
Conditional Branch: Script: If @actor.weapon_id == nil
@>Text: Worked!
@>
Else
@>Text: Didn't Work...
@>
Branch End
I have the above running on Parallel Process (tested seperatly and turned off all but the one I'm testing)
Then when ever I press start I will get this error: [SyntaxError occurred while running script.]
This is there error I keep getting, it happens right after I press start (or after I click where the event is):
The error: [SyntaxError occurred while running script.]
Ok, I've tryed several things:
Code:
if @actor[1].weapon_id == 0 then
@actor[1].weapon_id == 1
Note: Each conditional branch is used seperatly and they are all not active at the same time. Also, the text was just a test to see if they would give the "Worked!" result. These are also working on Parallel Process
Conditional Branch: Script: If @actor[1].weapon_id == 0
@>Text: Worked!
@>
Else
@>Text: Didn't Work...
@>
Branch End
Conditional Branch: Script: If @actor.weapon_id == 0
@>Text: Worked!
@>
Else
@>Text: Didn't Work...
@>
Branch End
Conditional Branch: Script: If @actor[1].weapon_id == nil
@>Text: Worked!
@>
Else
@>Text: Didn't Work...
@>
Branch End
Conditional Branch: Script: If @actor.weapon_id == nil
@>Text: Worked!
@>
Else
@>Text: Didn't Work...
@>
Branch End
I have the above running on Parallel Process (tested seperatly and turned off all but the one I'm testing)
Then when ever I press start I will get this error: [SyntaxError occurred while running script.]