H5 TOE - script to remove skills?

Maps and the art of mapmaking.
mweil86
Leprechaun
Leprechaun
Posts: 13
Joined: 11 Sep 2007

H5 TOE - script to remove skills?

Unread postby mweil86 » 27 Mar 2008, 18:29

I was curious if there was a way to remove certain skills from a hero using a script. This could also work by banning the skills from being learned in the first place. Any good way to do this?

User avatar
rdeford
Assassin
Assassin
Posts: 299
Joined: 17 Apr 2007
Location: Sequim, USA
Contact:

Re: H5 TOE - script to remove skills?

Unread postby rdeford » 28 Mar 2008, 20:56

mweil86 wrote:I was curious if there was a way to remove certain skills from a hero using a script. This could also work by banning the skills from being learned in the first place. Any good way to do this?
This is an excellent question. I don't think you can do exactly what you wish to do. But, there I think there might be an approximation. Now, I haven't actually tried these functions, but based on the descriptions in the official A2 Script functions guide, I think that you can use:

Code: Select all

LockMinHeroSkillsAndAttributes( heroName )

TakeAwayHeroExp( heroName, exp )
Also, to prevent learning skills you might try loading a reserve hero or starting hero up with basic skills that do not include the skills you wish to exclude.
rdeford, Mage Of Soquim

“Forgiving and being forgiven, loving and being loved,
living and letting live, is the simple basis for it all."

Ernest Holmes 1984


Return to “Mapmaking Guild”

Who is online

Users browsing this forum: No registered users and 5 guests