![]() |
![]() |
Forums
Might and Magic
Might and Magic Maps and Mods
Pass external combat script as parameter|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
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 |
|||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|
Forums
Might and Magic
Might and Magic Maps and Mods
Pass external combat script as parameter
