| 06-24-2004, 08:47 PM | #1 |
Is this possible I know i cannot import the war3map.wtg directly as that only works for the editor. Is there a way to do this without having the hard way of before playing on a map, someone will have to import the trigger file into the map. THen open the map and save it. I would like to know a better method or a way to do the step above as an executable file where person just choses the maps they want appied to the mod and triggers get applied to it. Help will be much appreciated. |
| 06-25-2004, 01:26 PM | #2 |
You could change Blizzard.j and import that into the map. The disadvantage is that Blizzard.j is not that small. |
| 06-25-2004, 01:33 PM | #3 |
Why are you posting the same question that much times? |
| 06-25-2004, 02:57 PM | #4 |
What are u talking about Lord Vexorian. I never posted the question more than once. Unless i got memory loss or something. Well i pretty sure i didn't. @AiAndy - ok. But how would i insert the triggers into the blizzard.j file. I tried it before and it just failed and stopped everything working. I.e. no map would ever open. |
| 06-25-2004, 02:59 PM | #5 |
Nah, I got confused cause somebody else posted the very same question in another forum |
| 06-25-2004, 06:07 PM | #6 |
Blizzard.j only stops working when you entered a syntax error. Best check it with PJass. For example the Commander for AMAI is in Blizzard.j . |
| 06-25-2004, 06:13 PM | #7 |
Well, i just copied the triggers in and made sure functions can work correctly and are activated correctly. Only the player settings before you start a map do not show and then map will not run. But i will check with pjass anyway. |
| 06-25-2004, 07:40 PM | #8 |
{didn't mean to double post} Well i found some errors. Fixed them. But it still dosn't work. Maybe I missed something, i'm not sure Heres the file so someone can also use pjass and check, but i pretty sure nothings incorrect syntax wise. |
| 06-26-2004, 03:20 PM | #9 |
I found something. I went through testing everything by adding each thing simultaneously. The problem is my global variables. They are the cause of the problem. But they are are direct copy and paste into the blizzard.j between globals and endglobals statement. // User-defined integer udg_EXORCISMTargetHP = 0 unit udg_UNITExorcismTarget = null integer udg_EXORCISMMaxDamageCaused = 0 unit udg_UNITHealTarget = null integer udg_INTEGERHpHealed = 0 integer udg_INTEGERMaxHealedHp = 0 unit udg_UNITUnholyArmorTarget = null unit udg_UNITPolyMorphTarget = null effect udg_SpecialEffect = null location udg_POINTDeathCoilTarget = null real udg_REALDeathCoilLifeGain = 0 integer udg_INTEGERDeathcoilunitnumber = 0 effect udg_SpecialEffect2 = null integer udg_INTEGERHealManaUsed = 0 integer udg_EXORCISMManaUsed = 0 integer udg_INTEGERHealCastersNewMana = 0 unit udg_UNITHealCaster = null unit udg_UNITExorcismCaster = null integer udg_EXORCISMCastingUnitsNewMana = 0 integer udg_INTEGERAmountSkeletonsRaised = 0 unit udg_UNITBlizzardCaster = null unit udg_UNITDeathCaster = null integer array udg_INTEGEROilRescourceAmount leaderboard array udg_LEADERBOARDOil group udg_UNITGRPOilRigs = null real udg_INTwait = 0 boolean udg_BOOLEANSheeptargeted = false group udg_UNITGRPAdvancedBuildCommand = null unit udg_UNITBuilder = null group udg_UNITGRPBuildOrderActive = null real udg_REALDeathCoilDamage = 0 real udg_REALDeathCoilTargetLife = 0 dialog udg_DIALOGRescources = null button array udg_DIALOGButton integer udg_INTEGERStartingGold = 0 integer udg_INTEGERStartingWood = 0 integer udg_INTEGERStartingOil = 0 group udg_UNITGRPOilCollectors = null unit udg_UNITCollector = null group udg_UNITGRPOilReturner = null location udg_POINTTanker = null group udg_UNITGRPOilHarvesting = null unit udg_UNITOilTarget = null unit udg_UNITCollectorReturn = null unit udg_UNITOilTargetReturn = null unit udg_UNITOilManipulating = null location udg_POINTFireballTarget = null real udg_REALminRange = 0 unit udg_UNITClosestUnit = null unit udg_UNITCollectGlobal = null boolean udg_BOOLEANShipyardInRange = false real udg_REALminrangeReturn = 0 unit udg_UNITClosestUnitReturn = null unit udg_UNITCollectGlobalReturn = null // Generated rect gg_rct_Region_000 = null sound gg_snd_Bloodlust = null sound gg_snd_CityScapeBridgeDeath1 = null sound gg_snd_TornadoLoop = null sound gg_snd_OrcBuildingDeathSmall1 = null sound gg_snd_MarkOfChaos = null trigger gg_trg_Melee_Initialization = null trigger gg_trg_Rescources_Set_up = null trigger gg_trg_Starting_rescources = null trigger gg_trg_Oil_Leaderboard = null trigger gg_trg_Leaderboard_update = null trigger gg_trg_Ranger = null trigger gg_trg_Paladin = null trigger gg_trg_Berserker = null trigger gg_trg_Ogre_Mage = null trigger gg_trg_Targetable_Spells = null trigger gg_trg_Spell_Effects_Summoned_Unit = null trigger gg_trg_Chanelling_Spells = null trigger gg_trg_Chanelling_Spells_Jass = null trigger gg_trg_Runes_Blink_Effect = null trigger gg_trg_Unit_Channels = null trigger gg_trg_Stops_Channeling = null trigger gg_trg_Flame_Sheild_structure_damage = null trigger gg_trg_Unit_Death_Events = null trigger gg_trg_Autocast_off = null trigger gg_trg_Ai_Heros = null trigger gg_trg_Ai_Oil = null trigger gg_trg_Ai_Trained_Units = null trigger gg_trg_Lumber_increment = null trigger gg_trg_Gold_income_increment = null trigger gg_trg_Oil_Costs = null trigger gg_trg_Oil_Upgrades = null trigger gg_trg_Oil_Costs_Cancelled_units = null trigger gg_trg_Flying_Machines = null trigger gg_trg_Debug = null trigger gg_trg_Debug2 = null trigger gg_trg_Debug3 = null trigger gg_trg_Advanced_Build = null trigger gg_trg_DebugOrderID = null trigger gg_trg_Basic_Build = null trigger gg_trg_Building = null trigger gg_trg_Oil_Select = null trigger gg_trg_Oil_Select_Copy = null trigger gg_trg_Oil_Delivery = null trigger gg_trg_Oil_Delivery_Copy = null trigger gg_trg_Oil_Item_Use = null trigger gg_trg_Oil_Platform_finished = null trigger gg_trg_Oil_Cancelation = null So why do these make the file no longer work. Edit i have done some more testing and its the generated variables causing it to not work. Edit2- more testing and removing gg_ from the front of the variables make them work. Why? Just why? |
| 06-26-2004, 04:08 PM | #10 |
The map you were using it on likely already had a region 000 so the names of the two globals were the same which is not allowed. |
| 06-26-2004, 06:05 PM | #11 | |
Quote:
aha so its conflicts between variables as it already is in the map scripts. ok. Thanx. |
