Difference between revisions of "GetSkillRank"

From NWN Lexicon
Jump to: navigation, search
(chenyingying20171109)
(Undo revision 33779 by 209.160.115.183 (talk))
Line 1: Line 1:
chenyingying20171109
+
 
http://www.wwwuggaustralia.co.uk
+
 
http://www.oakleysunglassess.us.org
+
 
http://www.poloralph--lauren.us.com
+
 
http://www.pandoracharmsjewelry.ca
+
=GetSkillRank(int, object, int)=
http://www.northfaceclearance.us.com
+
 
http://www.moncleroutlet.us.org
+
Determines a creature's rank in particular skill.
http://www.cheap-uggs.com.co
+
 
http://www.adidasoutletclearance.com
+
<nwscript>
http://www.michaelkorsoutletoff.us.com
+
int GetSkillRank(
http://www.poloralphlaurenoutletstores.us.com
+
    int nSkill,
http://www.adidasfootballboots.org.uk
+
    object oTarget = OBJECT_SELF,
http://www.monclerjackenschweiz.ch
+
    int nBaseSkillRank = FALSE
http://www.canadagoosejacket.me.uk
+
);
http://www.uggsitalia.it
+
</nwscript>
http://www.truereligionjeans-outlet.us.com
+
 
http://www.uggclearancesale.us.com
+
====Parameters====
http://www.nikeairmaxschweiz.ch
+
 
http://www.poloralphlaurenpascher.fr
+
''nSkill''
http://www.adidasjeremyscott.in.net
+
 
http://www.uggukboots.org.uk
+
[[ skill | SKILL_* ]]
http://dior.sunglassescheap.us.com
+
 
http://www.uggaustraliaboots.in.net
+
''oTarget''
http://www.montblancpenofficials.us.com
+
 
http://www.michaelkorsoutlet70off.us.com
+
The creature to check what rank they have in nSkill. (Default: OBJECT_SELF)
http://www.cheaplouboutinshoesuk.org.uk
+
 
http://www.uggoutletstore.net.co
+
''nBaseSkillRank''
http://www.coachoutletfactoryon.com
+
 
http://www.nikeblazers.us
+
If set to TRUE returns the number of base skill ranks oTarget has. (Default: FALSE)
http://www.cheapnhljerseysshop.us.com
+
 
http://www.redbottoms.org.uk
+
<br />
http://www.pandorajewelry.com.au
+
 
http://www.longchamp-handbags.us.org
+
====Description====
http://www.uggbootsforwomen.com.co
+
 
http://www.air-jordanpascher.fr
+
Returns the number of ranks that oTarget has in nSkill. If you want the number of base ranks put in on level up, set nBaseSkillRank to be TRUE. Otherwise the total returned will include bonuses from things like ability scores, feats, etc. <br /><br /> If nSkill is untrained this function returns 0, and -1 if oTarget doesn't have nSkill. See known bugs for why it might never return -1.
http://www.outletcanadagoose.ca
+
 
http://www.uggonsale.in.net
+
<br /><br />
http://www.fitflopsoutlet.us.com
+
 
http://www.jordanretro.us
+
====Remarks====
http://www.thenorthfaceuk.co.uk
+
 
http://prada.sunglassescheap.us.com
+
Use GetHasSkill to see if they have the skill and can use it, for example, to check if they have a useable Animal Empathy in a conversation. This mearly returns the value of ranks they have - therefore, it normally does return at least 0, you can't make yourself have negative ranks! <br /><br /> The fact that it returns the ranks may mean it never returns -1, as noted below, even though the description says it. <br /><br /> The ranks of a skill (with nBaseSkillRank = FALSE) is what is on the character sheet - thusly, it includes all bonuses (items, spells, area-affecting, etc) and penalties, into one number. Obviously, this might be why it returns 0 for untrained skills, or even negative numbers if, I guess.
http://www.ugg-italia.it
+
 
http://www.uggoutlets.com.co
+
<br />
http://www.louisvuittonoutlet.nom.co
+
 
http://www.ugg-outlets.com.co
+
====Known Bugs====
http://www.uggsclassicboots.us.com
+
 
http://www.burberryoutlet-canada.ca
+
Its been remarked that it appears to be returning 0, not -1, if a PC does not have any ranks in a skill and it it one that requires training. <br /><br /> This is reported to not include synergy bonuses from skills that work together - for example, Set Trap and Disarm Trap.
http://www.baseballjerseys.us.com
+
 
http://www.usboots.us.com
+
<br />
http://www.bottesuggs.fr
+
 
http://www.vibramfivefingerssale.com
+
====Version====
http://www.mulberrybagsuk.me.uk
+
 
http://www.doudoune-canadagoose.fr
+
1.67
http://www.uggbootsoutletclearance.us.com
+
 
http://www.ralphlaurenskjorte.dk
+
====Example====
http://www.doudounecanada-goose.fr
+
 
http://www.cheapjordansshoes.in.net
+
<nwscript>
http://www.outletlongchamp.us.org
+
// This script would be placed in a conversation
http://www.uggsaustraliaboots.us.com
+
// where the player challenges the Master Bard to
http://www.niketrainers.org.uk
+
// a performance duel.
http://www.nbajerseysshop.us.com
+
 
http://www.uggbootsclearance.net.co
+
void main()
http://www.uggfactoryoutlet.in.net
+
{
http://www.discountnike.us.com
+
    // Initialize Objects
http://www.mlbjerseys.org
+
    object oPlayer = GetPCSpeaker();
http://www.longchampsacsoldes.fr
+
    // Determine skill checks
http://www.cheapraybansunglass.co.uk
+
    int iPPerCheck = d20(1) + GetSkillRank(SKILL_PERFORM, oPlayer);
http://www.michaelkorstotehandbags.us.com
+
    int iMPerCheck = d20(1) + GetSkillRank(SKILL_PERFORM, OBJECT_SELF);
http://www.nikehuarache.net
+
    // Compare the two skill checks
http://www.cheapmichaelkorshandbags.us.org
+
    if (iPPerCheck > iMPerCheck)
http://www.oakleysunglassesofficialsite.us.com
+
    {
http://www.cheap-mlb-jerseys.us.com
+
        // Player wins perform duel
http://www.salvatoreferragamo.in.net
+
        // Place reward code here
http://www.newcoachoutlet.us.com
+
    }
http://www.montblanc.com.co
+
    else
http://www.nikerunningshoes.co.uk
+
    {
http://www.goedkope-uggs.be
+
        //Player loses perform duel
http://www.converseshoesoutlet.us.com
+
        //Place failure code here
http://www.uggboots.com.co
+
    }
http://www.ralphlauren-outletstores.us.com
+
}
http://www.timberlandoutlet.name
+
</nwscript>
http://www.coachoutletonlineshopping.us.org
+
 
http://www.northfaceoutlet70off.us.com
+
====See Also====
http://www.moncler.eu.com
+
 
http://www.tory-burchoutletonline.us.com
+
{| class="seealso"
http://www.nike.me.uk
+
| width="1px" align="right" valign="top" | <font color="gray">functions: </font>
http://www.uggsoutletstore.org
+
|
http://www.nikejordans.co.uk
+
[[ActionUseSkill | ActionUseSkill ]]
http://www.truereligionsale.com.co
+
|-
http://www.manchesterunitedjersey.org.uk
+
|-
http://www.nike-factoryoutlet.us.com
+
| width="1px" align="right" valign="top" | <font color="gray">constants: </font>
http://www.katespadehandbagssale.us.com
+
|
http://www.monclerjassen.be
+
[[ skill | SKILL_* Constants  ]]
http://www.converse-outletstore.com
+
|}
http://www.birkenstockoutlet.us.org
+
 
http://www.tommyhilfigercanada.ca
+
<br />
http://www.coachoutlet-factory.us.com
+
----
http://www.jordans-fusion.com
+
<font color="gray">  author: Tom Cassiotis, editor: Jasperre, Mistress, additional contributor(s): Jasperre, John Baker</font><br /><br />  <br />
http://www.adidasshoesforsale.in.net
+
[[Category:Functions]]
http://www.uggsaustralia.net.co
+
[[Category:Talents_Skills_Feats_Functions]]
http://www.supremeuk.co.uk
 
http://www.truereligionoutletjeans.us
 
http://www.uggbootsoutlets.org
 
http://www.adidaswings.name
 
http://www.officialuggoutlet.us.com
 
http://www.michaelkors--outlet.us.org
 
http://www.officialugg.us.com
 
http://www.cheapralphlaurensale.co.uk
 
http://www.nikeairjordans.co.uk
 
http://www.vibramfivefingers.in.net
 
http://www.originalsadidas.co.uk
 
http://www.raybansunglassesforwomen.us.com
 
http://www.longchamp-outletstore.us.com
 
http://www.pandora-jewelry.name
 
http://www.giuseppe-zanotti.us.com
 
http://www.ferragamooutlet.us.com
 
http://www.superdry.me.uk
 
http://www.ukuggboots.co.uk
 
http://www.michaelkorsoutlet75off.us.com
 
http://www.sunglassesoakleycheap.us.com
 
http://www.jordans.in.net
 
http://www.thenorthfaceoutletjackets.us.com
 
http://www.cheapreplicawatches.us.com
 
http://www.ugg.eu.com
 
http://www.vansshoesoutlet-store.com
 
http://versace.sunglassescheap.us.com
 
http://www.newmichaelkorsoutlet.us.com
 
http://www.burberryscarf.com.co
 
http://www.monclerdoudounepascher.fr
 
http://www.uggbootsonsale75off.in.net
 
http://www.nikeoff.com
 
http://armani.sunglassescheap.us.com
 
http://www.ralphlaurenpolo.in.net
 
http://www.ralphlauren-poloshirts.co.uk
 
http://www.canadagoosecanada.com.co
 
http://www.fitflopssaleclearance.us.org
 
http://www.uggbootsclassic.ca
 
http://www.canadagooseclearance.us.com
 
http://www.cheap-jordan-shoes.us.com
 
http://www.ferragamoshoesoutlet.us.com
 
http://www.oakleysunglassescanada.ca
 
http://www.fitflops.org
 
http://www.michael-korsoutletstores.us.org
 
http://www.coachfactoryoutletonlinesale.us.com
 
http://www.adidasstansmith.co.uk
 
http://www.hermesoutlets.us.com
 
http://www.christianlouboutinoutletuk.org.uk
 
http://www.ralphlaurenoutletofficial.us.com
 
http://www.thenorthfaceclearance.us.com
 
http://www.uggsale.com.co
 
http://www.uggsoutletstores.in.net
 
http://www.monclersitoufficiale.it
 
http://www.coachfactoryoutlet-online.eu.com
 
http://www.hermesbags.me.uk
 
http://www.nikeairmax90s.co.uk
 
http://www.coachoutletonline.nom.co
 
http://www.hollisterclothing.us.org
 
http://www.uggbootssale70off.org
 
http://www.fitflops.us.org
 
http://cartier.sunglassescheap.us.com
 
http://www.scarpehoganoutlet.it
 
http://www.nikeairforce1.net
 
http://www.toryburchhandbagsoutlet.us.com
 
http://www.nikeairmaxshoes.us.com
 
http://www.coachoutletonline70off.us.com
 
http://www.ray-bansunglassesoutlet.com.co
 
http://www.ugg.com.co
 
http://www.pololaurenralphlauren.us.com
 
http://www.uggboots70off.in.net
 
http://www.oakleysunglassesoutletstore.us.org
 
http://www.christianlouboutindown.com
 
http://www.monclerdunjacka.se
 
http://www.wholesale-nfl-jerseys.us
 
http://www.uggaustraliastore.ca
 
http://www.nikefootballbootsuk.org.uk
 
http://www.longchampoutlet-online.com
 
http://www.uggbootsonsale70off.net.co
 
http://www.juicycoutureoutlet.us.com
 
http://www.toryburchoutletoff.us.com
 
http://www.christianlouboutinoutletusa.us.com
 
http://www.uggslipperssale.us.com
 
http://www.cheapnfljerseysshop.us.com
 
http://www.burberryscarfsale.in.net
 
http://www.outlet-moncler.us
 
http://www.nikeair-max.nl
 
http://www.oakleyssunglassescheap.com
 
http://www.coachoutlet-online.eu.com
 
http://www.outletuggstores.us.com
 
http://carrera.sunglassescheap.us.com
 
http://www.coachhandbagsfactoryoutletonline.us.com
 
http://www.katespadeoutletsale.us.com
 
http://www.mbt.us.com
 
http://www.hermesbeltoutlet.com
 
http://www.canadagoosesale.com.co
 
http://www.salomon-shoes.in.net
 
http://www.cheap-uggboots.com.co
 
http://www.michaelkorscom.us.com
 
http://www.adidasshoesoutletstore.us.com
 
http://www.ray-banssunglasses.org.uk
 
http://www.uggbootsaustralia.in.net
 
http://www.outletuggs.us.org
 
http://www.uggsoutlet.nom.co
 
http://www.prada.us.org
 
http://www.officialcoachfactoryoutletonline.us.com
 
http://www.michael--korshandbags.us.com
 
http://www.oakley-sunglassesonsale.us.com
 
http://www.outletthenorthface.us.com
 
http://www.michaelkorsuk.com.co
 
http://www.uggboots70off.us.com
 
http://www.christianlouboutinsale.co.uk
 
http://www.uknorthface.org.uk
 
http://www.coachcom.us.com
 
http://www.northfacejackets.us.org
 
http://www.katespade-outlet.in.net
 
http://www.nike-air-huarache.org.uk
 
http://www.thenorthfacecanada.ca
 
http://www.coach-bags.us.org
 
http://www.nikefactoryoutletstores.us.com
 
http://www.adidasshoessale.in.net
 
http://www.ray-ban-sunglasses.com.au
 
http://www.ralphlaurenonlineoutlet.us.com
 
http://www.uggoutlet70off.in.net
 
http://www.ugg.ind.in
 
http://www.hollistercooutlet.us.com
 
http://rayban.sunglassescheap.us.com
 
http://www.outletcanadagoose.com.co
 
http://www.louboutinoutlets.us.com
 
http://www.uggsonsale.net.in
 
http://www.canada-goose-jackets.co.uk
 
http://www.canadagoosecanada.name
 
http://www.moncler-jackets.us.org
 
http://www.nikeairmaxsko.dk
 
http://www.beatsbydreheadphones.in.net
 
http://www.adidastore.co.uk
 
http://www.fitflops.us.com
 
http://www.christianlouboutin.name
 
http://www.oakleysungalsses.nom.co
 
http://www.louisvuitonnoutlet.com
 
http://www.raybanpascher.fr
 
http://www.pandoracharmjewelry.us.com
 
http://www.wholesale-nfljerseys.us.com
 
http://www.underarmouroutletclearance.com
 
http://www.airjordan-14.us
 
http://www.uggbootsstores.us.com
 
http://www.nfljerseysfromchina.us.com
 
http://www.poloralphlaurenoutletoff.us.com
 
http://www.uggoutletofficialsite.us.com
 
http://www.mbtscarpe.it
 
http://www.nikefactory-outlet.us.com
 
http://www.ray-bansunglassessales.us.com
 
http://www.northfaceoutlet.ca
 
http://www.longchamp-outlet.us.org
 
http://www.rayban-sunglassesonsale.us.com
 
http://www.christianlouboutinoutletclearance.us.com
 
http://www.michaeljordan-shoes.com
 
http://www.uggbootsclearance.net.co
 
http://www.montblanc-pens.name
 
http://www.ugg.co.nl
 
http://www.katespadestoreoutlet.us.com
 
http://www.uggbootsoutlets.in.net
 
http://www.suprashoesclearance.us.com
 
http://www.louisvuittonhandbags.nom.co
 
http://www.uggoutlet70off.com.co
 
http://www.coachwallets.us.com
 
http://www.uggbootsoutletcanada.ca
 
http://www.canadagoose.com.co
 
http://www.uggsonline.in.net
 
http://www.stansmithadidas.us.com
 
http://www.supremeclothing.us.com
 
http://www.michael--kors.us.org
 
http://www.coach-factoryoutletonlines.com
 
http://www.coachfactory-outletonline.org
 
http://www.canada-goosejacka.se
 
http://www.ray-bansunglassesoutlets.us.com
 
http://www.cheapnfljerseyswholesale.us.com
 
http://www.coachoutletstoreonlineofficial.us.com
 
http://www.coachfactoryoutlet-onlinestore.us.com
 
http://www.monclernederland.nl
 
http://www.northfacejakke.dk
 
http://www.swarovski-jewelry.name
 
http://www.truereligion-jeans.com.co
 
http://www.cheaprolexwatches.us.com
 
http://www.oakleysunglasses-vault.us.com
 
http://www.ralphlaurencom.us.com
 
http://www.uggbootsonsale70off.us.org
 
http://www.ugg-australia.com.co
 
http://www.northfaceoutletstore.us.org
 
http://www.coachoutletsclearance.us.com
 
http://www.pandora-rings.net
 
http://www.burberryoutletoff.us.com
 
http://www.saleuggboots.co.uk
 
http://www.moncler-outletonline.us.com
 
http://www.botasuggs.es
 
http://www.truereligion-outletjeans.us.com
 
http://www.cheapraybans.ca
 
http://www.coach-factoryonline.us.org
 
http://www.michaelkors--outlet.us.com
 
http://www.uggfed.com
 
http://www.nikerosherunsale.co.uk
 
http://dolceandgabbana.sunglassescheap.us.com
 
http://www.basketballshoesstore.us.com
 
http://www.birkenstocksandals.us.org
 
http://www.uggbootsaustralia.us.org
 
http://www.northfacejacket.us.com
 
http://www.pradabags.in.net
 
http://www.ugg.me.uk
 
http://www.poloralphlauren-factorystore.us.com
 
http://www.canadagoosesale.name
 
http://www.oakleysunglassessport.us.com
 
http://www.christianlouboutinoff.us
 
http://www.pandoracharms.us.org
 
http://www.coachoutletonline-sale.us.com
 
http://www.canadagoosejassen.nl
 
http://www.ugg.org.uk
 
http://www.michael-korstaschen.ch
 
http://www.cheapjordansshoes.us.com
 
http://www.cheapjerseysnflwholesale.us
 
http://www.chaussuresnikeairmax.fr
 
http://www.northface-clearance.us
 
http://www.uggsclearance.com.co
 
http://www.nikenfljerseysfreeshipping.us
 
http://www.pradaoutletonlinestore.us.com
 
http://www.coachonline.us.org
 
http://www.replica-watches.us.com
 
http://www.calvinkleinstore.in.net
 
http://www.truereligion-jeans.us
 
http://www.snapbackshatswholesale.us.com
 
http://www.cheapraybansunglasses.net.co
 
http://www.raybanwayfarersunglasses.us.org
 
http://www.monclerdownjackets.co.uk
 
http://www.cheap-jordans.us.com
 
http://www.blackhawksjersey.com
 
http://www.uggboots70off.com.co
 
http://www.chaussureschristianlouboutin.fr
 
http://www.outletcoachfactoryonline.us.com
 
http://www.supreme-newyork.com
 
http://www.outletuggs.net.co
 
http://www.pandorajewelrycanada.ca
 
http://www.moncler-jacken.at
 
http://www.uggclearancesale.in.net
 
http://www.raybans-sunglassesoutlet.us.com
 
http://www.louis-vuitton.nom.co
 
http://www.ralphlaurenpolooutlet.us.org
 
http://www.katespadeoutletstore.us.org
 
http://www.birkenstockshoes.org.uk
 
http://www.nhlhockey-jerseys.us.com
 
http://www.ralph-laurenpolouk.org.uk
 
http://www.pandoraukcharms.co.uk
 
http://www.coach-outlet.nom.co
 
http://www.outletpolo-ralphlauren.us.com
 
http://www.fitflopssale.org.uk
 
http://www.cheapnikenfljerseyswholesale.us
 
http://www.newbalance-shoes.us.com
 
http://www.coachoutletsalesonline.us.com
 
http://www.thenorthface-outlet.in.net
 
http://www.burberry-outlet-stores.us.com
 
http://www.uggbootsonsale70off.com.co
 
http://www.outletugg.us.org
 
http://www.jordanshoes.us.org
 
http://www.adidasyeezy-boost.us.com
 
http://www.raybansunglassesoutlet.net.co
 
http://www.uggbootscheaponline.in.net
 
http://www.outletmichaelkorsonlinestore.us.com
 
http://oakley.sunglassescheap.us.com
 
http://www.nikeukstore.org.uk
 
http://www.uggschweiz.ch
 
http://www.hermesbirkinhandbags.us.com
 
http://www.katespadehandbagsoutlet.us.org
 
http://www.cheapairjordans.us.com
 
http://www.uggbootsonsale75off.us.org
 
http://www.coachoutlet70off.us.com
 
http://www.pradahandbagsoutlet.us.com
 
http://www.soccerjersey.us.com
 
http://www.manoloblahnik.us
 
http://www.uggbootsonsale65off.in.net
 
http://www.north-face-outlet.in.net
 
http://www.cheap-ugg-boots.us.org
 
http://www.airmaxnike.me.uk
 
http://www.pandoraonline.us.com
 
http://www.poloralphlauren-outletonline.us.com
 
http://www.redbottomsshoes.me.uk
 
http://www.canadagoosecanada.ca
 
http://www.uggsoutlet.org
 
http://www.michaelkorsoutletonline80off.us.com
 
http://www.coachfactoryoutlet.nom.co
 
http://www.nikeoutletstoreonline.us.com
 
http://www.outletmichaelkorsuk.co.uk
 
http://www.cheapmlbjerseysshop.us.com
 
http://www.pandora-jewelry.me.uk
 
http://www.nikeairmax90.com.de
 
http://www.uggsaustralia.it
 
http://www.uggslippers.us.org
 
chenyingying20171109
 

Revision as of 01:24, 20 November 2017



GetSkillRank(int, object, int)

Determines a creature's rank in particular skill.

int GetSkillRank(
    int nSkill,
    object oTarget = OBJECT_SELF,
    int nBaseSkillRank = FALSE
);

Parameters

nSkill

SKILL_*

oTarget

The creature to check what rank they have in nSkill. (Default: OBJECT_SELF)

nBaseSkillRank

If set to TRUE returns the number of base skill ranks oTarget has. (Default: FALSE)


Description

Returns the number of ranks that oTarget has in nSkill. If you want the number of base ranks put in on level up, set nBaseSkillRank to be TRUE. Otherwise the total returned will include bonuses from things like ability scores, feats, etc.

If nSkill is untrained this function returns 0, and -1 if oTarget doesn't have nSkill. See known bugs for why it might never return -1.



Remarks

Use GetHasSkill to see if they have the skill and can use it, for example, to check if they have a useable Animal Empathy in a conversation. This mearly returns the value of ranks they have - therefore, it normally does return at least 0, you can't make yourself have negative ranks!

The fact that it returns the ranks may mean it never returns -1, as noted below, even though the description says it.

The ranks of a skill (with nBaseSkillRank = FALSE) is what is on the character sheet - thusly, it includes all bonuses (items, spells, area-affecting, etc) and penalties, into one number. Obviously, this might be why it returns 0 for untrained skills, or even negative numbers if, I guess.


Known Bugs

Its been remarked that it appears to be returning 0, not -1, if a PC does not have any ranks in a skill and it it one that requires training.

This is reported to not include synergy bonuses from skills that work together - for example, Set Trap and Disarm Trap.


Version

1.67

Example

// This script would be placed in a conversation
// where the player challenges the Master Bard to
// a performance duel.
 
void main()
{
    // Initialize Objects
    object oPlayer = GetPCSpeaker();
    // Determine skill checks
    int iPPerCheck = d20(1) + GetSkillRank(SKILL_PERFORM, oPlayer);
    int iMPerCheck = d20(1) + GetSkillRank(SKILL_PERFORM, OBJECT_SELF);
    // Compare the two skill checks
    if (iPPerCheck > iMPerCheck)
    {
         // Player wins perform duel
         // Place reward code here
    }
    else
    {
         //Player loses perform duel
         //Place failure code here
    }
}

See Also

functions: 

ActionUseSkill

constants: 

SKILL_* Constants



 author: Tom Cassiotis, editor: Jasperre, Mistress, additional contributor(s): Jasperre, John Baker