Disable Hero Ability

» Siedler Map Source Forum » Mapping » Disable Hero Ability

Seiten: 1

AdeBont
#1
29.08.2008 20:45
Beiträge: 666

Disable Hero Ability

Hi

I'm working on a map, and I need Helias NOT to be able to convert any enemy entities. Does anyone know how to disable hero abilities?

knd rgs
AdB

____________________
AdB
---------------------------------
Now faith is the substance of things hoped for,
the evidence of things not seen.
Heb 11:1

nevermind
Siedler Map Source Admin (Web)
#2
30.08.2008 11:53
Beiträge: 483

Try this:

XGUIEng.ShowWidget(gvGUI_WidgetID.Hero6_ConvertSettlers, 0)



____________________
LUA_ERRSYNTAX: [string "?"]:1: `=' expected near `<eof>'

AdeBont
#3
31.08.2008 00:29
Beiträge: 666

Should I put this on a specific place in the code?
And just by itself or should it be placed within a function or something like that?

____________________
AdB
---------------------------------
Now faith is the substance of things hoped for,
the evidence of things not seen.
Heb 11:1

nevermind
Siedler Map Source Admin (Web)
#4
31.08.2008 16:25
Beiträge: 483

Put it in the function FirstMapAction

____________________
LUA_ERRSYNTAX: [string "?"]:1: `=' expected near `<eof>'

AdeBont
#5
05.09.2008 00:02
Beiträge: 666

Great!

Hi Nevermind

Tnx for the info
It works - and it's so easy!

This will really help me build the map I have in mind

knd rgs
AdB

____________________
AdB
---------------------------------
Now faith is the substance of things hoped for,
the evidence of things not seen.
Heb 11:1

Seiten: 1

SiteEngine v1.5.0 by nevermind, ©2005-2007
Design by SpiderFive (www.siedler-games.de) - English translation by juja

Impressum