Zechnophobe
Strategy Lich
Notepad++ isn't bad, but it won't catch syntax errors for you. I haven't tried it, but the eclipse plugin for python is suposed to be good.
Edit: As I break into the Python, yes Kael, people do read those comments!
So... the way that the scenario functions works is by checking for a game option with the same name as the scenario.
How do you want us to integrate that with our scenarios. I'm fairly certain adding a new game option is a bit outside the scope of this, so should we just like include calls to our functions in the events manager? (Edit: Except not all calls come from the event manager, which adds a bit more work to this, hmm).
I'm thinking of a scenario called the tower of eyes. The goal will be to save Perpentach from the tower of eyes as the Momus and his army of carnies. It will be part dungeon adventure and part FfH trivia.
Lol, that's what I'm working on. I'm not doing a dungeon though. We can share ideas and work together. I'm interested to know what you are planning for the dungeon.![]()
Hmmm, time to figure out this thing known as "Python", without being eaten by a snake
So, will you have to keep 2 seperate units alive, both Perpentach and the Momus? I was under the impression that Perpentach just let his body die when The Momus got close enough for him to transfer his mind completely. Maybe Perpentach should be represented by a Great Commander that you must attach to the Momus (also triggering him to gain magic promotions, at the very least Mind I-III) and get a Momus with said commander attached back out again.
I don't think it would really matter what host Perpentach took, so it might be appropriate to just require a single living unit to survive with Perpentach attached.
It might be nice for all the Balseraph units but the Momus to stat Crazed, so they would go mad and break away from following Perpentach's/the player's commands every once in a while.
From what we know about the Tower of Eyes, I expect it should be a large maze filled with various types of Golems, probably of increasing strength as you near Perpentach's cell. I imagine that most would just be Iron Golems, but I could see having a couple Clockwork golems show up too and having plenty of Gargoyles swoop down unexpected. (If it weren't for the name being displayed over it I'd say it might be nice to reuse the Guardians of the Pristin Pass.) On higher levels, I expect you'd see lots of Golems with Fire II, Perfect Sight, and Hidden. I tend to think that Golems left by Kyorlin to guard such a powerful mage would pretty much all be Magic Resistant.
If you said you wanted lots of FfH trivia in it, how about having events where you(Perpentach) have arguments with the voices in your head and must straighten things out by answering their riddles and by properly recalling how things went in order to retain control of your mental faculties. Answering wrongly could make the other voices take over your mind for a while, i.e., make the game auto-play a few turns. You could afford to get a question wrong every once in a while, but if as I assume this scenario would be one where you start out with a limited number of units and cannot build more having the AI use them rashly could be a big penalty.
I was under the impression that Perpentach just let his body die when The Momus got close enough for him to transfer his mind completely.
I'm thinking of a scenario called the tower of eyes. The goal will be to save Perpentach from the tower of eyes as the Momus and his army of carnies. It will be part dungeon adventure and part FfH trivia.
Lol, that's what I'm working on. I'm not doing a dungeon though. We can share ideas and work together. I'm interested to know what you are planning for the dungeon.
if gc.getGame().isOption(GameOptionTypes.GAMEOPTION_WB_EXTRA):
I'm having trouble getting any python from ScenarioFunctions to trigger at all. I've got Option=GAMEOPTION_WB_EXTRA enabled in my mapscript, and all the python I've added is dependent onCode:if gc.getGame().isOption(GameOptionTypes.GAMEOPTION_WB_EXTRA):
What am I missing?
You'll have to post a bit more code than that, I think. Turn on Python popups too, so that you get relevant error messages, which can point you to where in the code you have a mistake.
under cannotTrain
if gc.getGame().isOption(GameOptionTypes.GAMEOPTION_WB_EXTRA):
if eUnit == gc.getInfoTypeForString('UNIT_SETTLER'):
if pPlayer.getLeaderType() == gc.getInfoTypeForString('LEADER_GARRIM'):
return True
if pPlayer.getLeaderType() == gc.getInfoTypeForString('LEADER_PERPENTACH'):
return True
under gameStart
if gc.getGame().isOption(GameOptionTypes.GAMEOPTION_WB_EXTRA):
self.addPopupWB(CyTranslator().getText("TXT_KEY_WB_PALUS_INTRO",()))
your progress on the tower of eyes is great so far but it could be awsome if every time you faced a spectre in perps room you were transported to different dungeons representing different memories of perpentach. pehaps these wars could occur in these dungeon-memories.