Jump to content

Need Help with Variables


Usthvalia

Recommended Posts

Hope no-one finds these stupid questions but I've been hunting around and having a rough time getting the Answers.

 

I am busy creating a plugin to add some quests. So far no problem and where the standard classes are involved all's well 9mostly anyway) but there are a few thing that I would be gratefull if someone can help with these scripting issues

 

1) Does anyone know what the Variables are for Skill Advancement (i.e. I want to give a 5% advancement in Armorer as a reward) ?

 

2) Does anyone know how to determine Which are the Major and Minor skills on a character ?

 

Hope someone can help

Link to comment
Share on other sites

major and minor no

 

determaning skill levels and incrememnting them by 5% easy

begin Generic_Script

float temp_Var;to stor the atribute
set temp_Var to Player->Armorer;(sp?) if not please use corect spelling
if ( temp_Var >= 95 )
set temp_Var to 100 - temp_Var;in case this would push them over the limit of 100
;just cut a corner and give em the 100 (They earnd it)
else
set temp_Var to Temp_Var / 20;for 5%
endif
Player->ModAtmorer, Temp_Var; again use corect spelling for armorer if i have stuffed up

stopscript, Generic_Script
end

 

hope this helps

Link to comment
Share on other sites

Thanks a Lot but That I had figured ..... Sorry My post was not that clear.

 

What I was really looking for is the Variables for Skill Advancement ....

 

 

hmmm

 

Let me explain it like this. When you repair Armor you Armorer skill increases. (from 1 to 100 .. once it reaches 100 the Armorer skill increases by 1 point)

It is this I want to increase so Advance towards the next skill level.

 

What I have in mind is a horde of quests for you to complete.

 

as an Example a quest to collect 5 pieces for a great Armorer to make a special piece of armor. Total reward 1 point in Armorer. Each time a piece is picked up get a 20% increase I.E Armorer at start is 5 0/100 get one piece armomer now 5 20/100 (if you don't repair any armor inbetween)

 

Hope that makes more sense

Link to comment
Share on other sites

Ahhhh I see what your saying

 

well theoreticly it should be stored in the decimals of the float for the skill/atribute but it isent try

 

player->modArmorer, 0.05

and see if that works (just try it in the console)

Link to comment
Share on other sites

Ok Tried the Decimal Thing.

 

It does not Display in the Skill's Progress Bar (So it is not the Same Variable) However once the Decimals add up to 1 the Skill does increase. So it can be used as an alternate skill advancement method. But still not quite what I am looking for.

 

Again thanks for the help

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...