Difference between revisions of "GetCurrentValue"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>JOG
(Killer-Feature part 2)
 
imported>Qazaaq
m
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Deprecated Functions|OBSE}}
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
'''Syntax:'''
'''Syntax:'''


  GetCurrentvalue ValueType
  [ref.]GetCurrentValue ValueType
  GetCV Valuetype
  [ref.]GetCV ValueType


Returns the requested current value from the extra information for the reference.
Returns the requested current value from the extra information for the reference.
Returns 0 if the value type doesn't match (asking a weapon for an armor rating or clothing for a health value) Returns the base value if the value is not changed from the base. Currently only health, charge and poison will return a different value than [[GetObjectValue|GetOV]].
Returns 0 if the value type doesn't match (asking a weapon for an armor rating or clothing for a health value) Returns the base value if the value is not changed from the base. Currently only health, charge and poison will return a different value than [[GetObjectValue|GetOV]].


'''Deprecated from OBSE v0012: replaced by the individual value functions.'''


'''Example:'''
'''Example:'''
Line 13: Line 17:
   
   
  Begin Gamemode
  Begin Gamemode
   If GetCV Valuetype 2 < 50  
   If GetCV 2 < 50  
       Message "The sentient sword telepathically pleads you to repair it"
       Message "The sentient sword telepathically pleads you to repair it"
   Endif
   Endif
Line 23: Line 27:


'''See Also:'''  
'''See Also:'''  
<!--*[[GetObjectValue]]
*[[GetEquippedCurrentValue]]
*[[GetEquippedObjectValue]]-->
*[[GetCurrentHealth]]
*[[GetCurrentCharge]]
*[[GetCurrentSoulLevel]]


[[GetObjectValue]]
<!--[[Category: OBSE Functions]]
[[Category: OBSE Item Functions]]
[[Category: OBSE Reference Functions]]-->


[[Category: OBSE Functions]]
[[Category:Deprecated Functions]]
[[Category: OBSE Item Functions]]
[[Category:Deprecated Functions (OBSE)]]
[[Category: OBSE Reference Functions]]

Latest revision as of 08:40, 25 August 2008


A command for Oblivion Script Extender

Syntax:

[ref.]GetCurrentValue ValueType
[ref.]GetCV ValueType

Returns the requested current value from the extra information for the reference. Returns 0 if the value type doesn't match (asking a weapon for an armor rating or clothing for a health value) Returns the base value if the value is not changed from the base. Currently only health, charge and poison will return a different value than GetOV.

Deprecated from OBSE v0012: replaced by the individual value functions.

Example:

scn ScriptonSentientSword 

Begin Gamemode
  If GetCV 2 < 50 
     Message "The sentient sword telepathically pleads you to repair it"
  Endif
end



Value Types[edit source]

Range    Value Types
000-099  Common Values
100-149  Weapon and Ammo
150-199  Armor
200-209  Soul Gem
210-219  Ingredient
220-229  Alchemy Item
Num	GetOV	GetCV	Value
0	f 		weight
1	i 		gold value (not including enchantment value)
2	i	f	health
3	i		equipment SlotID
4	i	f	enchantment charge
5	b		is quest item
6	ref		enchantment
100	i		attack damage
101	f		reach
102	f		speed
103	i		weapon type
104	b		ignores weapon resistence
105		ref	poison applied to weapon
150	i		armor rating
151	i		armor type
200	i		soul
201	i		capacity
210	b		is food
220	b		is poison

Type codes:

Weapon Type (103)
  0: Blade1H
  1: Blade2H
  2: Blunt1H
  3: Blunt2H
  4: Staff
  5: Bow
Armor Type (151)
  0: Light Armor
  1: Heavy Armor
Soul Level (200-201)
  0: None
  1: Petty
  2: Lesser
  3: Common
  4: Greater
  5: Grand


See Also: