Difference between revisions of "GetTag"

From NWN Lexicon
Jump to: navigation, search
(dongdong8)
(Undo revision 22655 by 208.91.68.228 (talk))
Line 1: Line 1:
http://www.uggslipperssale.us.com
+
 
http://www.outletlongchamp.us.org
+
 
http://www.louisvuitonnoutlet.com
+
 
http://www.katespadehandbagsoutlet.us.org
+
 
http://www.coachoutletonlineshopping.us.org
+
=GetTag(object)=
http://www.coachoutlet-online.eu.com
+
 
http://www.manoloblahnik.us
+
Determine the tag associated with an object.
http://www.truereligionsale.com.co
+
 
http://www.thenorthface-outlet.in.net
+
<nwscript>
http://www.newbalance-shoes.us.com
+
string GetTag(
http://www.truereligion-jeans.us
+
    object oObject
http://www.uggfactoryoutlet.com.co
+
);
http://www.uggclearancesale.in.net
+
</nwscript>
http://www.hollisterclothing.us.org
+
 
http://www.katespadeoutletstore.us.org
+
====Parameters====
http://www.nikeairmax90s.co.uk
+
 
http://www.rayban-sunglassesonsale.us.com
+
''oObject''
http://www.coachfactoryoutlet.nom.co
+
 
http://www.tommyhilfigercanada.ca
+
Target object.
http://www.ray-bansunglasses2017.us.com
+
 
http://www.uggsoutletstores.us.com
+
<br />
http://www.moncleroutlet.us.org
+
 
http://www.nike.me.uk
+
====Description====
http://www.michael--korshandbags.us.com
+
 
http://www.ugg.ind.in
+
Returns the tag of oObject. Returns an empty string if oObject is not a valid object. <br /><br /> PC's do return a valid value - an empty string! This is because they have no string defined as thier tag (Even GetObjectByTag("") may return a PC object).
http://www.outletcanadagoose.ca
+
 
http://www.oakleysunglassesofficialsite.us.com
+
<br /><br />
http://www.adidastore.co.uk
+
 
http://www.prada.us.org
+
====Remarks====
http://www.canadagooseclearance.us.com
+
 
http://www.cheap-uggboots.com.co
+
This is probably one of the most-used and dynamic functions - by changing a creature/waypoint/objects tag, you can use it for many things, from executing scripts (On Item Activate, execute the item's tag, as a script), to checking if there is "HEY" in the tag, and if so, doing something special. The string manipulators are useful for this. <br /><br /> The main thing this is used for is to check if an object is exactly something, or if a script is executed, checking what the object running it is. <br /><br /> CopyObject() can change an object's tag - or the new one has the new tag.
http://www.usuggbootsoutlet.com
+
 
http://www.ugg.me.uk
+
<br />
http://www.cheapraybans.ca
+
 
http://www.cheapjordansshoes.in.net
+
====Version====
http://www.swarovski-jewelry.name
+
 
http://www.adidasjeremyscott.in.net
+
1.22
http://www.jordanshoes.us.org
+
 
http://www.redbottomsshoes.me.uk
+
====Example====
http://www.birkenstockoutlet.us.com
+
 
http://www.adidasshoessale.in.net
+
<nwscript>
http://www.hollistercooutlet.us.com
+
// 1. Get our tag, then the first object by our tag - this should be
http://www.katespade-outlet.in.net
+
// ourselves if there is no one else with our tag in exsistance.
http://www.poloralphlaurenoutletoff.us.com
+
void main()
http://www.outletcanadagoose.com.co
+
{
http://www.fitflops.org
+
    string sTag = GetTag(OBJECT_SELF);
http://www.truereligionoutletjeans.us
+
    object oSelf = GetObjectByTag(sTag);
http://www.outletugg.ca
+
}
http://www.poloralphlaurenoutletstores.us.com
+
 
http://www.ugg-outlets.com.co
+
// 2. In the OnItemActivate script, we run a script of
http://www.ralphlaurenpolooutlet.us.org
+
// "ACT_" + Tag Of Item.
http://www.underarmouroutletclearance.com
+
void main()
http://www.uggs-outlet.name
+
{
http://www.raybansunglassesforwomen.us.com
+
    string sTag = GetTag(GetItemActivated());
http://www.wholesale-nfljerseys.us.com
+
 
http://www.poloralph--lauren.us.com
+
    // Execute it on the module instantly - the old GetItem calls will
http://www.cheapraybansunglasses.net.co
+
    // still be valid for this item
http://www.vibramfivefingerssale.com
+
    ExecuteScript("ACT_" + sTag, OBJECT_SELF);
http://www.burberryscarfsale.in.net
+
}
http://www.northfaceoutletstore.us.org
+
</nwscript>
http://www.outletuggs.com.co
+
 
http://www.coachoutletfactoryon.com
+
====See Also====
http://www.oakleysunglasses2017.us.com
+
 
http://www.newcoachoutlet.us.com
+
{| class="seealso"
http://www.canadagoosecanada.ca
+
| width="1px" align="right" valign="top" | <font color="gray">functions: </font>
http://www.jordans.in.net
+
|
http://www.manchesterunitedjersey.org.uk
+
[[  LocationToString  | LocationToString ]]
http://www.coachoutletonline.nom.co
+
|-
http://www.ugg-australia.com.co
+
|}
http://armani.sunglassescheap.us.com
+
 
http://www.coach-outlet.nom.co
+
<br />
http://www.uggbootsclearance.net.co
+
----
http://www.canadagoose.com.co
+
<font color="gray">  author: Daniel Beckman, editor: Jasperre</font><br />  <br />
http://www.cheapjerseysnflwholesale.us
+
[[Category:Functions]]
http://www.north-face-outlet.in.net
+
[[Category:Get_Data_from_Object_Functions]]
http://www.coachoutlet-factory.us.com
 
http://www.birkenstocksandals.us.org
 
http://www.adidasyeezy350boost.org.uk
 
http://www.uggboots70off.com.co
 
http://www.converseshoesoutlet.us.com
 
http://www.mulberrybagsuk.me.uk
 
http://www.ugg-italia.it
 
http://www.oakleysunglassessport.us.com
 
http://www.uggsadd.com
 
http://www.katespadestoreoutlet.us.com
 
http://www.doudounecanada-goose.fr
 
http://www.raybanpascher.fr
 
http://www.pololaurenshirts.com
 
http://www.cheaprolexwatches.us.com
 
http://www.coach-canadaoutlet.ca
 
http://www.oakleysunglassesoutletstore.us.org
 
http://www.michaelkorsuk.com.co
 
http://dolceandgabbana.sunglassescheap.us.com
 
http://www.uggbootscheaponline.in.net
 
http://www.hermesbeltoutlet.com
 
http://www.ray-ban-sunglasses.com.au
 
http://www.thenorthfacecanada.ca
 
http://www.burberry.us.org
 
http://www.stansmithadidas.us.com
 
http://www.nbajerseysshop.us.com
 
http://www.uggoutlets.com.co
 
http://www.coach-factoryoutletonlines.com
 
http://carrera.sunglassescheap.us.com
 
http://www.uggbootsclassic.ca
 
http://www.pradabags.in.net
 
http://www.uggbootsonsale65off.in.net
 
http://www.cheap-uggs.com.co
 
http://www.pandora-rings.net
 
http://www.wholesale-nfl-jerseys.us
 
http://www.montblancpenofficials.us.com
 
http://www.ferragamoshoesoutlet.us.com
 
http://www.fitflops.us.org
 
http://www.nikefactoryoutletstores.us.com
 
http://www.oakley-sunglassesonsale.us.com
 
http://oakley.sunglassescheap.us.com
 
http://www.uggsaustraliaboots.us.com
 
http://www.burberryoutlet-canada.ca
 
http://www.coachoutletonline70off.us.com
 
http://www.uknorthface.org.uk
 
http://www.chaussureschristianlouboutin.fr
 
http://www.uggs-outlet-online.us
 
http://cartier.sunglassescheap.us.com
 
http://www.ugg-boots.name
 
http://www.pandora-jewelry.me.uk
 
http://www.michaelkorsoutlet70off.us.com
 
http://www.christianlouboutinoff.us
 
http://www.poloshirt.in.net
 
http://www.uggsale.com.co
 
http://www.uggfactoryoutlet.in.net
 
http://www.uggfed.com
 
http://www.ralphlaurenpolo.in.net
 
http://www.uggaustraliaboots.in.net
 
http://www.uggbootsoutlets.org
 
http://www.cheapreplicawatches.us.com
 
http://www.outletuggs.net.co
 
http://www.ugg-australia.ca
 
http://www.cheapmlbjerseysshop.us.com
 
http://www.ray-bansunglassesoutlets.us.com
 
http://www.michaelkorsoutletoff.us.com
 
http://www.uggboots70off.in.net
 
http://prada.sunglassescheap.us.com
 
http://www.louis-vuitton.nom.co
 
http://www.uggboots.com.co
 
http://www.hermesbirkinhandbags.us.com
 
http://www.adidasoutletclearance.com
 
http://www.uggbootsonsale75off.in.net
 
http://www.uggaustraliastore.ca
 
http://www.raybansunglassesoutlet.net.co
 
http://www.uggsclassicboots.us.com
 
http://www.uggoutletstore.net.co
 
http://www.coachoutlet70off.us.com
 
http://www.nikeairmaxshoes.us.com
 
http://www.nikeairjordans.co.uk
 
http://www.raybans-sunglassesoutlet.us.com
 
http://www.christianlouboutindown.com
 
http://www.ugg.com.co
 
http://www.uggsonclearance.com.co
 
http://www.toryburchhandbagsoutlet.us.com
 
http://www.pololaurenralphlauren.us.com
 
http://www.michaelkorsoutletsonlinesale.us.com
 
http://www.officialcoachfactoryoutletonline.us.com
 
http://www.canadagoosecanada.name
 
http://www.canadagoosesale.com.co
 
http://www.hermesoutlets.us.com
 
http://www.christianlouboutinoutletuk.org.uk
 
http://www.giuseppe-zanotti.us.com
 
http://www.monclerjacketsoutlet.us.com
 
http://www.uggbootsoutlets.in.net
 
http://www.uggbootsonsale75off.us.org
 
http://www.rayban--sunglassess.us.com
 
http://www.cheap-mlb-jerseys.us.com
 
http://www.ralphlauren-poloshirts.co.uk
 
http://www.uggsonline.in.net
 
http://www.michael-kors-outlet.eu.com
 
http://www.uggoutlet70off.in.net
 
http://www.ukuggboots.co.uk
 
http://www.salvatoreferragamo.in.net
 
http://www.fitflopssale.org.uk
 
http://www.canadagoosesale.name
 
http://www.outletugg.com.co
 
http://www.uggbootsaustralia.in.net
 
http://www.uggbootsoutletcanada.ca
 
http://www.nikefootballbootsuk.org.uk
 
http://www.ray-bansunglassesoutlet.com.co
 
http://www.airjordan-14.us
 
http://www.coachwallets.us.com
 
http://www.coachfactory-outletonline.org
 
http://www.truereligion-jeans.com.co
 
http://www.tory-burchoutletonline.us.com
 
http://www.christianlouboutin.name
 
http://www.uggsoutletstore.org
 
http://www.longchamp-outlet.us.org
 
http://www.uggbootsonsale70off.us.org
 
http://www.nike-airmaxuk.me.uk
 
http://www.thenorthfaceoutletjackets.us.com
 
http://www.uggsslippers.com.co
 
http://www.uggboots-onsale.us
 
http://versace.sunglassescheap.us.com
 
http://www.michaelkorsuk.me.uk
 
http://www.canadagoosecanada.com.co
 
http://www.uggsoutlet.org
 
http://www.uggbootsforwomen.com.co
 
http://www.cheapraybansunglass.co.uk
 
http://www.redbottoms.org.uk
 
http://www.uggbootsclearances.com.co
 
http://www.coachoutletsclearance.us.com
 
http://www.pradaoutletonlinestore.us.com
 
http://www.northfaceoutlet70off.us.com
 
http://www.uggbootsaustralia.us.org
 
http://www.coachfactoryoutlet-onlinestore.us.com
 
http://rayban.sunglassescheap.us.com
 
http://www.christianlouboutinoutletusa.us.com
 
http://www.longchampoutlet-online.com
 
http://www.nikenfljerseysfreeshipping.us
 
http://www.adidasshoesforsale.in.net
 
http://www.michaelkorsoutletonline80off.us.com
 
http://www.air-jordanpascher.fr
 
http://www.toryburchoutletoff.us.com
 
http://www.canada-goose-jackets.co.uk
 
http://www.clearancemichaelkorsoutlet.us.com
 
http://www.suprashoesclearance.us.com
 
http://www.outlet-moncler.us
 
http://www.michaelkorsukoutlet.me.uk
 
http://www.burberryoutletoff.us.com
 
http://www.coach-factoryoutletusa.com
 
http://www.nikehuarache.net
 
http://www.cheapnikenfljerseyswholesale.us
 
http://www.converse-outletstore.com
 
http://www.burberryscarf.com.co
 
http://www.uggbootsclearances.com.co
 
http://www.salomon-shoes.in.net
 
http://www.nikeoutletstoreonline.us.com
 
http://www.uggoutlet70off.com.co
 
http://www.fitflops.us.com
 
http://www.uggsboots.com.co
 
http://www.outletthenorthface.us.com
 
http://www.oakleysungalsses.nom.co
 
http://www.ugg.org.uk
 
http://www.nikerosherunsale.co.uk
 
http://www.nmdadidas.co.uk
 
http://www.northfacejacket.us.com
 
http://www.birkenstockshoes.org.uk
 
http://www.uggbootsonsale70off.net.co
 
http://www.coachonline.us.org
 
http://www.burberry-outlet-stores.us.com
 
http://www.fitflopsoutlet.us.com
 
http://www.longchamp-handbags.us.org
 
http://www.ray-banaviatorsunglasses.org.uk
 
http://www.cheapairjordans.us.com
 
http://www.moncler-jackets.us.org
 
http://www.uggbootssale70off.org
 
http://www.cheap-jordan-shoes.us.com
 
http://www.cheapjordansshoes.us.com
 
http://www.ralphlaurenoutlet-poloshirts.us.com
 
http://www.ugg-bootscheap.com.co
 
http://www.nike-factoryoutlet.us.com
 
http://www.adidasshoesoutletstore.us.com
 
http://www.usboots.us.com
 
http://www.nikestores.me.uk
 
http://www.cheapnfljerseyswholesale.us.com
 
http://www.montblanc.com.co
 
http://www.baseballjerseys.us.com
 
http://www.uggoutlet.nom.co
 
http://www.uggslippers.us.org
 
http://www.jordans-fusion.com
 
http://www.cheapnhljerseysshop.us.com
 
http://www.monclerdownjackets.co.uk
 
http://www.originalsadidas.co.uk
 
http://www.uggsclearance.com.co
 
http://www.supreme-newyork.com
 
http://www.newmichaelkorsoutlet.us.com
 
http://www.pandora-jewelry.name
 
http://www.christianlouboutinshoes.me.uk
 
http://www.pandorajewelryoutlet.us.org
 
http://www.michael--kors.us.org
 
http://www.northfaceclearance.us.com
 
http://www.cheap-jordans.us.com
 
http://www.cheapmichaelkorshandbags.us.org
 
http://www.adidasfootballboots.org.uk
 
http://www.nikefactory-outlet.us.com
 
http://www.vibramfivefingers.in.net
 
http://www.katespadehandbagssale.us.com
 
http://www.nhlhockey-jerseys.us.com
 
http://www.ferragamooutlet.us.com
 
http://www.nfljerseysfromchina.us.com
 
http://www.oakleyssunglassescheap.com
 
http://www.coachhandbagsfactoryoutletonline.us.com
 
http://www.mbt.us.com
 
http://dior.sunglassescheap.us.com
 
http://www.michaelkors--outlet.us.org
 
http://www.moncler.eu.com
 
http://www.fitflopssaleclearance.us.org
 
http://www.supremeclothing.us.com
 
http://www.monclerjacketsuk.uk
 
http://www.michaelkorsoutlet75off.us.com
 
http://www.calvinkleinstore.in.net
 
http://www.oakleysunglasses-vault.us.com
 
http://www.oakleysunglassescanada.ca
 
http://www.uggsaustralia.net.co
 
http://www.uggoutletsonline.us.com
 
http://www.cheap-ugg-boots.us.org
 
http://www.louisvuittonoutlet.nom.co
 
http://www.montblanc-pens.name
 
http://www.coach-bags.us.org
 
http://www.adidasstansmith.co.uk
 
http://www.uggsoutletstores.in.net
 
http://www.uggonsale.in.net
 
http://www.coachfactoryoutletonlinesale.us.com
 
http://www.christianlouboutinoutletclearance.us.com
 
http://www.louboutinoutlets.us.com
 
http://www.jordanretro.us
 
http://www.coachoutletstoreonlineofficial.us.com
 
http://www.katespadeoutletsale.us.com
 
http://www.uggbootsoutletclearance.us.com
 
http://www.outletpolo-ralphlauren.us.com
 
http://www.saleuggboots.co.uk
 
http://www.michaelkors-outletonline.eu.com
 
http://www.pandoracharmjewelry.us.com
 
http://www.truereligion-outletjeans.us.com
 
http://www.nikerunningshoes.co.uk
 
http://www.sunglassesoakleycheap.us.com
 
http://www.outletuggboots.com.co
 
http://www.cheaplouboutinshoesuk.org.uk
 
http://www.polo-ralphlaurenoutlet.in.net
 
http://www.northface-clearance.us
 
http://www.outletcoachfactoryonline.us.com
 
http://www.adidasyeezy-boost.us.com
 
http://www.uggsaustralia.it
 
http://www.pandorajewelrycanada.ca
 
http://www.wwwuggaustralia.co.uk
 
http://www.blackhawksjersey.com
 
http://www.coach-factoryonline.us.org
 
http://www.pradahandbagsoutlet.us.com
 
http://www.longchampsacsoldes.fr
 
http://www.michaeljordan-shoes.com
 
http://www.poloralphlauren-outletonline.us.com
 
http://www.thenorthfaceclearance.us.com
 
http://www.nikeoff.com
 
http://www.uggbootsaustralia.com.co
 
http://www.discountnike.us.com
 
http://www.adidastrainersuk.uk
 
http://www.michaelkors-handbags.us
 
http://www.hermesbags.me.uk
 
http://www.adidastrainersuk.me.uk
 
http://www.adidaswings.name
 
http://www.uggbootsclearanceoutlet.com.co
 
http://www.cheapralphlaurensale.co.uk
 
http://www.uggclearancesale.us.com
 
http://www.michaelkorstotehandbags.us.com
 
http://www.uggsonsale.net.in
 
http://www.longchamp-outletstore.us.com
 
http://www.ralphlauren.eu.com
 
http://www.snapbackshatswholesale.us.com
 
http://www.louisvuittonhandbags.nom.co
 
http://www.ralphlaurenoutletofficial.us.com
 
http://www.michaelkorshandbags.nom.co
 
http://www.replica-watches.us.com
 
http://www.vansshoesoutlet-store.com
 
http://www.pandoracharms.us.org
 
http://www.soccerjersey.us.com
 
http://www.mlbjerseys.org
 
http://www.uggbootsclearance.net.co
 
http://www.coachfactoryoutlet-online.eu.com
 
http://www.cheapnfljerseysshop.us.com
 
http://www.northfacejackets.us.org
 
http://www.niketrainers.org.uk
 
http://www.michaelkors--outlet.us.com
 
http://www.truereligionjeans-outlet.us.com
 
http://www.uggsoutlet.nom.co
 
http://www.coachoutletonline-sale.us.com
 
http://www.coachcom.us.com
 
http://www.nikeblazers.us
 
http://www.uggbootsonsale70off.com.co
 
http://www.truereligionuk.org.uk
 
http://www.basketballshoesstore.us.com
 
http://www.nikeairforce1.net
 
http://www.nike-air-huarache.org.uk
 
http://www.supremeuk.co.uk
 
http://www.superdry.me.uk
 
http://www.timberlandoutlet.name
 
201710.6wengdongdong
 

Revision as of 09:19, 13 October 2017



GetTag(object)

Determine the tag associated with an object.

string GetTag(
    object oObject
);

Parameters

oObject

Target object.


Description

Returns the tag of oObject. Returns an empty string if oObject is not a valid object.

PC's do return a valid value - an empty string! This is because they have no string defined as thier tag (Even GetObjectByTag("") may return a PC object).



Remarks

This is probably one of the most-used and dynamic functions - by changing a creature/waypoint/objects tag, you can use it for many things, from executing scripts (On Item Activate, execute the item's tag, as a script), to checking if there is "HEY" in the tag, and if so, doing something special. The string manipulators are useful for this.

The main thing this is used for is to check if an object is exactly something, or if a script is executed, checking what the object running it is.

CopyObject() can change an object's tag - or the new one has the new tag.


Version

1.22

Example

// 1. Get our tag, then the first object by our tag - this should be
// ourselves if there is no one else with our tag in exsistance.
void main()
{
    string sTag = GetTag(OBJECT_SELF);
    object oSelf = GetObjectByTag(sTag);
}
 
// 2. In the OnItemActivate script, we run a script of 
// "ACT_" + Tag Of Item.
void main()
{
    string sTag = GetTag(GetItemActivated());
 
    // Execute it on the module instantly - the old GetItem calls will
    // still be valid for this item
    ExecuteScript("ACT_" + sTag, OBJECT_SELF);
}

See Also

functions: 

LocationToString



 author: Daniel Beckman, editor: Jasperre