Building & Scripting > Scripting Board
Trigedit Help Requested
Kvetch:
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.
--- Code: ---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
--- End code ---
Script 2 (this is trying to check to make sure the subskill has been set)
--- Code: ---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
--- End code ---
Mordecai:
--- Quote from: Kvetch on May 07, 2008, 07:09:24 pm ---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
--- End quote ---
It looks fine.
I mean, super abusable but fine.
So if someone says the 'phrase hidden for mortals don't see it' 100 times, you realise every time it will do the:
--- Code: ---nop %actor.subincrease(DragonMastery)%
--- End code ---
And put them at 100% of Dragonmastery.
Kvetch:
The second script currently is just checking to make sure its actually putting the subskill on the player. Once I know it's working, I'm going to make sure that they don't already have dragonmastery when they say the phrase. Just right now the second script isn't doing anything, which I'm taking as the first script isn't putting the subskill on. So, if my phrasing and scripting is right... why not? Are the subskills there to be put on players?
Diandra:
Instead of:
if %actor.sub(dragonmastery)%
try this:
if %actor.subskill(dragonmastery)%
Maybe that will do the trick.
Kvetch:
Everyone keeps saying that, so I'll write my answer here.
I tried that first. the actor.sub thingy was the second thing Mord had suggested that night. Though, the way my luck runs, I'll probably change it back and it'll work. *mutters as she begins looking for the script Mord's put in so she can't do scripts right the first time*
Navigation
[0] Message Index
[#] Next page
Go to full version