~ Forums of Enroth ~
Would you like to react to this message? Create an account in a few clicks or log in to continue.

~ Forums of Enroth ~

The Enroth diehard fan community
 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  
Latest topics
» [H3SW 0.8.2] Wheel of Duels
[Script System][Suggestions] GetHeroXp(hero) and more Icon_minitimeby DanilaRud015 Today at 00:18

» What are you listening to?
[Script System][Suggestions] GetHeroXp(hero) and more Icon_minitimeby Sir Albe 2024-06-20, 07:25

» [H3SW 0.8.2] Fury of Undeads
[Script System][Suggestions] GetHeroXp(hero) and more Icon_minitimeby DanilaRud015 2024-06-19, 01:12

» Lego Heroes of Might & Magic
[Script System][Suggestions] GetHeroXp(hero) and more Icon_minitimeby GodRage 2024-06-14, 04:47

» The "Monster Yotta Pack" aka the "MYP" from the FoE
[Script System][Suggestions] GetHeroXp(hero) and more Icon_minitimeby BoseDrache 2024-06-13, 19:11

» Looking for any HoMM 2 Map Makers From the 1990s
[Script System][Suggestions] GetHeroXp(hero) and more Icon_minitimeby BoseDrache 2024-06-13, 18:28

» Songs of Conquest
[Script System][Suggestions] GetHeroXp(hero) and more Icon_minitimeby Mishap 2024-06-08, 18:49

Poll
Global announcements should be:
Everlasting, 1 for each project.
[Script System][Suggestions] GetHeroXp(hero) and more Redbar110%[Script System][Suggestions] GetHeroXp(hero) and more Redbar12
 0% [ 0 ]
Temporary, when there is something new to announce.
[Script System][Suggestions] GetHeroXp(hero) and more Redbar11100%[Script System][Suggestions] GetHeroXp(hero) and more Redbar12
 100% [ 6 ]
Holalala... No idea where the Ultimate artifact is.
[Script System][Suggestions] GetHeroXp(hero) and more Redbar110%[Script System][Suggestions] GetHeroXp(hero) and more Redbar12
 0% [ 0 ]
Total Votes : 6
Most Viewed Topics
H3SW: General Graphics discussion
Ragoon's Graphics For HoMM3SW
Introduce yourself
H3SW General Discussion
H3SW Map List: Work in progress
H3SW: Dwelling Development
Forum Admins Feed
The Floody Land
Enrothian Fan Art
Heroes III: The Succession Wars v0.8.1 Beta

 

 [Script System][Suggestions] GetHeroXp(hero) and more

Go down 
2 posters
AuthorMessage
Unknown_Hero
Mage
Mage
Unknown_Hero


Messages : 778
Quality Points : 78
Registration Date : 2015-09-06

[Script System][Suggestions] GetHeroXp(hero) and more Empty
PostSubject: [Script System][Suggestions] GetHeroXp(hero) and more   [Script System][Suggestions] GetHeroXp(hero) and more Icon_minitime2017-03-12, 06:13

Currently, there is no way to check/change the Xp of a hero.

*

GetHeroXp(hero)
hero: the hero you want to check (see, for example, GetHero).

Returns the quantity of Xp the hero has.

*

SetHeroXp(hero, quantity, levelup)
hero: the hero to which you want to set the Xp (see, for example, GetHero).
quantity: the quantity of Xp you want to set for the hero.
levelup: can be set to "0" or "1".
- "0" the hero don't get primary skill(s) and secondary skill(s).
- "1" the hero "level up" and he gets primary skill(s) and the user can choose the secondary skill(s) the hero gets (as usual).

Sets the specified quantity of Xp for the specified hero. The hero can "level up" or not.

*

AddHeroXp(hero, quantity, levelup)
hero: the hero to which you want to add Xp (see, for example, GetHero).
quantity: the quantity of Xp you want to add to the hero.
levelup: can be set to "0" or "1".
- "0" the hero don't get primary skill(s) and secondary skill(s).
- "1" the hero "level up" and he gets primary skill(s) and the user can choose the secondary skill(s) the hero gets (as usual).

Adds the specified quantity of Xp to the specified hero. The hero can "level up" or not.
Back to top Go down
Darmani
Master Modder
Master Modder
Darmani


Messages : 288
Quality Points : 47
Registration Date : 2014-12-27

[Script System][Suggestions] GetHeroXp(hero) and more Empty
PostSubject: Re: [Script System][Suggestions] GetHeroXp(hero) and more   [Script System][Suggestions] GetHeroXp(hero) and more Icon_minitime2017-03-13, 07:33

A level up function would be pretty cool too. Noted.
Back to top Go down
 
[Script System][Suggestions] GetHeroXp(hero) and more
Back to top 
Page 1 of 1
 Similar topics
-
» [Script System][Suggestions] CountEmptyArmySlots(hero) and more
» [Script System][Suggestions] GetHeroMovepoints(hero) and more
» [Script System][Suggestions] GetHeroFaction(hero)
» [Script System][Suggestions] GetArmyInSlotCreature(hero, slot) and more
» [Script System][Suggestions] ToggleHeroAIArmySharing(hero, toggle) and more

Permissions in this forum:You cannot reply to topics in this forum
~ Forums of Enroth ~ :: Modding Guild :: Heroes of Might and Magic II: Project Ironfist :: Modding and Mapmaking-
Jump to: