ubi.com    Forums  Hop To Forum Categories  Might and Magic  Hop To Forums  Might and Magic Maps and Mods    Pass external combat script as parameter

Moderators: Mana_SG
Go
New
Find
Notify
Tools
Reply
  
  Login/Join 
Posted
Hi guys, I was wondering if anyone could help me with the following problem.

I am trying to use the StartCombat(....) function to create a battle. However, I wish to use a custom combat script to do it.

StartCombat("Faiz",nil,7,CREATURE_STALKER,5,CREATURE_STALKER,5,CREATURE_RAVAGER,1,CREATURE_MINOTAUR_CAPTAIN,1,CREATURE_RIDER,3,CREATURE_BLOOD_WITCH,4,CREATURE_MINOTAUR,5,path.."testcombat.xdb",nil,nil,nil);

Know I know that the path is correct (because I use path.."message.txt" fine to display message boxes.
I also know the combat script works fine. I created the combat script from within the editor and selected it as a monster's combat script directly to test it. When I fought that monster manually it worked.
I also checked the /Maps/SingleMissions/Wiz1a/ folder and its in there.
The error I get from the console somehting like Script "/Maps/SingleMissions/Wiz1a/testcombat.xdb" is not exists. I have tried many ways to pass the value (such as a complete string, also like this (as it is referenced in the object editor) /Maps/SingleMissions/Wiz1a/testcobat.xdb#pointer(/Script). Nothing seems to work.

Can anyone shed some light on the format I'm supposed to pass a link to the combat script to the StartCombat function? And also what format the script should be in (eg should i leave the xml <script> </script> in it.

Thanks
 
Posts: 2 | Registered: Wed December 03 2008Reply With QuoteEdit or Delete MessageReport This Post
  Powered by Eve Community  
 

ubi.com    Forums  Hop To Forum Categories  Might and Magic  Hop To Forums  Might and Magic Maps and Mods    Pass external combat script as parameter

Terms of Use

Privacy Policy