Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
C_ScriptBindRPGModule Methods

The methods of the C_ScriptBindRPGModule class are listed here.

 
Name 
Description 
 
 
 
This is _SetConstant, a member of class C_ScriptBindRPGModule. 
 
Syntax: RPG.AddLocationPoint(entityId)
Registers location point entity into entity manager
 
 
Syntax: RPG.AddStatXP(event, soul, statName, totalXp, oldProgress, newProgress)
Gives soul 'soul' X XP points towards RPG stat 'statName' (e.g. 'str' for strength, 'agi' for agility), where 'X = floor(totalXp * newProgress) - floor(totalXp * oldProgress)'.
 
 
 
 
Syntax: RPG.GetFactionById(factionId)
Returns faction with the given id or nil if no such faction exists.
 
 
Syntax: RPG.GetFactions()
Rerturns an array of all factions.
 
 
Syntax: RPG.GetHobbies()
Returns a table indexed by hobby names. 
 
Syntax: RPG.GetIndulgencePrice()
Returns indulgence price in decigroschen. 0 means no indulgence necessary -- all public friends are at or above their base reputation value.
 
 
Syntax: RPG.GetLocationById()
Returns a location object or nil.
 
 
Syntax: RPG.GetLocationByName()
Returns a location object or nil.
 
 
Syntax: RPG.GetLocations()
Returns an array of all locations.
 
 
This is GetMemoryUsage, a member of class C_ScriptBindRPGModule. 
 
Help 
Syntax: RPG.Help()
Print RPG constants/params with their values. You can supply one string argument to filter the results. 
 
Syntax: RPG.IsPublicEnemy(wuid)
Returns if soul represented by wuid is public enemy.
 
 
This is NotifyLevelXpGain, a member of class C_ScriptBindRPGModule. 
 
This is Release, a member of class C_ScriptBindRPGModule. 
 
Syntax: RPG.UnlockRecipeStep()
Unlocks recipe step. 
Copyright (c) 2012. All rights reserved.