Plot:Hero levelled

From OHRRPGCE-Wiki

Jump to: navigation, search
hero levelled (who)

Returns the number of levels the specified hero (use result from find hero) gained from only the very last battle or give experience command - levels gained from previous battles or commands is not recorded. In other words, does not return true or false, but can be be used in an if statement like:

[edit] Examples

give experience (party, 50)
if (herolevelled (find hero (hero: Bob))) then (
  $31="Bob gained "
  append number(31, hero levelled (find hero (hero: Bob)))
  $31+" levels!"
  show textbox (233) # ${S31} :show string 31
)
Personal tools