Difference between revisions of "Script/HeroParty"
From SF3
(→Class Methods) |
|||
Line 52: | Line 52: | ||
| | | | ||
| style = 'color: #505050; line-height: 0.5;' |''award experience to the hero party'' | | style = 'color: #505050; line-height: 0.5;' |''award experience to the hero party'' | ||
+ | |- | ||
+ | | style='color: blue; width: 10%; text-align:right;line-height: 0.8;' | [[../BasicDataTypes|void]] | ||
+ | | style='color: black; width: 90%; line-height: 1.0;' | '''ModifyHeroAttribute''' (const [[../Creature|Creature]]&in ''_Creature'', const [[../LogicEnums#ECreatureAttribute|ECreatureAttribute]] ''_Attribute'', const [[../BasicDataTypes|int8]] ''_iValue'') | ||
+ | |- | ||
+ | | | ||
+ | | style = 'color: #505050; line-height: 0.5;' |''modify attribute of the given hero by the given value (note: this will only work when enough skill points are available)'' | ||
|- | |- | ||
| style='color: blue; width: 10%; text-align:right;line-height: 0.8;' | [[../BasicDataTypes|void]] | | style='color: blue; width: 10%; text-align:right;line-height: 0.8;' | [[../BasicDataTypes|void]] |
Revision as of 14:06, 7 December 2016
class HeroParty
An interface which can be used to interact with a player's hero characters.
Class Methods
void | AddItems (const string&in _sItemTechnicalName, const uint _uAmount) |
add an item to the hero party's inventory | |
void | RemoveItems (const string&in _sItemTechnicalName, const uint _uAmount) |
remove the given amount of the given item from the hero party's inventory | |
bool | HasItems (const string&in _sItemTechnicalName, const uint _uAmount) const |
check whether the hero party has at least _uAmount of the given item in their inventory | |
bool | IsMember (const Creature&in _Creature) const |
check whether the given creature is currently a member of the hero party | |
void | AddMember (const Creature&in _Creature) |
add creature to hero party | |
void | RemoveMember (const Creature&in _Creature) |
remove creature from hero party | |
Creature[]@ | GetMembers () const |
get all current members of the party | |
void | AddExperience (const uint _uAmount) |
award experience to the hero party | |
void | ModifyHeroAttribute (const Creature&in _Creature, const ECreatureAttribute _Attribute, const int8 _iValue) |
modify attribute of the given hero by the given value (note: this will only work when enough skill points are available) | |
void | Stop () |
stop the entire hero party dead in their tracks. |