Size: 232
Comment:
|
Size: 387
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
function m_city.IsHeroInCastle("HeroString") |
= Function = '''m_city.IsHeroInCastle'''("HeroString") |
Line 7: | Line 6: |
see also: | == Example == {{{ if m_city.IsHeroInCastle("Trebber") goto checkTrebs }}} if the hero named Trebber is in the city then goto the label checkTrebs |
Line 9: | Line 12: |
http://guide.neatportal.com/wiki/HeroBean CategoryFunctions | '''see also: ''' AnyIdleHero, HeroBean ---- CategoryFunctions |
Function
m_city.IsHeroInCastle("HeroString")
This is a function performed on HeroBean Objects, returns false if specified hero is not in the castle.
Example
if m_city.IsHeroInCastle("Trebber") goto checkTrebs
if the hero named Trebber is in the city then goto the label checkTrebs
see also: