Ok, I've got the following script and don't know if it's working. Either it is and I can't figure out how to make the script to check the subskill or it isn't setting the subskill. Would appreciate help. (yes, I know this isn't the full script. The if's before this elseif are other speech's.) Or, I suppose another option could be that the skill I'm trying to set isn't actually set up as a skill.
Script 1 (this should set the subskill of dragonmastery)
Name: 'Ask Viden', VNum: [ 4496], RNum: [ 1075]
Trigger Intended Assignment: Mobiles
Trigger Type: Speech, Numeric Arg: 100, Arg list: *
Commands:
<edited for content>
elseif %speech.contains(<edited so players don't know the phrase>)%
%send% %actor% Viden looks at you and smirks. 'So, you want to be a Dragon Master, do you?' he asks.
wait 5 s
%send% %actor% Viden sizes you up from head to toe.
%echoaround% %actor% Viden sizes %actor.name% up from head to toe.
wait 2 s
%send% %actor% Viden asks you, 'Are you sure you have what it takes?'
wait 5 s
%send% %actor% 'There are 7 dragons in the world that need help,' Viden tells you.
wait 3s
%send% %actor% 'You must find these dragons and help them,' he continues.
%send% %actor% 'In return, they will teach you the skills you need to become a Dragon Master.'
nop %actor.subincrease(dragonmastery)%
wait 10s
%send% %actor% 'If you ever forget where you are in your lessons, please come and see me.'
smile %actor%
end
Script 2 (this is trying to check to make sure the subskill has been set)
Name: 'Dragon Master Enter', VNum: [ 4451], RNum: [ 1067]
Trigger Intended Assignment: Mobiles
Trigger Type: Entry, Numeric Arg: 100, Arg list: None
Commands:
if %actor.sub(dragonmastery)%
say Welcome, Dragon Master Trainee.
else
say what can I do for you?
end