DannyBuzzin
Member
I was working on a script that when in battle, the skill choice will be unique for each class e.g mage would have magic, thief would have steal etc... but it cant quite seem to get it to work. the closest I have is this part of the code but its still gives all the actors the same choice, im guessing the one that is last executed in the script :/ any help please ? some sort of loop maybe ?
edit: Also is there an else if statement in ruby scripting ?
Code:
@bcommands = ["Steal", "Magic", "Dragon", "Skill"]
s1 = $data_system.words.attack
if $data_classes[0]
s2 = @bcommands[3]
end
if $data_classes[1]
s2 = @bcommands[2]
end
if $data_classes[2]
s2 = @bcommands[1]
end
if $data_classes[3]
s2 = @bcommands[0]
end
edit: Also is there an else if statement in ruby scripting ?