Welcome to the Builder Academy

Question Using Variables in skillset?

More
10 Mar 2015 21:42 #5248 by Papaya Pete
So I'm trying to make a script that can allow a skill to go up through use. The problem is, skillset doesn't really like me using variables for some reason! I can use a set value, such as 10, but I can't do something like this...
Code:
set current %actor.skill(Climbing)% %echo% Current Climbing: %current% eval newskill %current% + 1 %echo% New Climbing Skill: %newskill% %actor.skillset("Climb" newskill)% return 0

Am I just doing something wrong? Or is this just a (crippling to me) limitation to the code?

Please Log in or Create an account to join the conversation.

More
10 Mar 2015 22:05 #5249 by thomas
Replied by thomas on topic Using Variables in skillset?
Have you tried it with %actor.skillset("Climb" %newskill%)% ?

That should work...
The following user(s) said Thank You: Papaya Pete

Please Log in or Create an account to join the conversation.

More
10 Mar 2015 23:49 #5250 by Papaya Pete
... Yeah, that did it. I'm an idiot, hah!

Having to have the % around a variables and such threw me off a bit. Thanks a million!

Please Log in or Create an account to join the conversation.

Time to create page: 0.169 seconds