HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

WE Unlimited 2 Released - For version 1.20!

01-22-2006, 01:25 AM#421
Vexorian
Congratulations you are the 3 guy that picked a name involving the words The and Prophet.
01-22-2006, 10:34 AM#422
PitzerMike
Quote:
Originally Posted by The__Prophet
Haha you werent refering to me right? Haha i seriously cant remember anything past like 2 days ago so.

Obviously no, you are written with 2 underscores.
01-25-2006, 11:37 AM#423
Guest
Hi everyone,

First, congratulations for this editor, I LOVE it.
But I have one big problem... I can't use a map created by WE Enhancer.
I have the version 1.20 of course. The only things I checked when I was creating the map were "Use Advanced Triggers", "Protect Map Name" and "Unlimitable doodads".

It created successfully the map, but when I tried to open it with WE Unlimited, it didn't work (I had the same thing if I just open WEU and load no map). When I tried to open it in WE Unlimited, it crashed WEU =/

I use Windows, and WEU + WE Enhancer since 1.18
Language of Windows is French, and it crashes since 1.18

Thx for any help !

Thunder
01-27-2006, 09:41 AM#424
badhex
I've run into an issue using:
Advanced - For (Attacked unit) Increase defense by 100
Advanced - Morph (Attacked unit) to the unit type specified in the Advanced - Morph (Tolen Demon) spell

Keep in mind these triggers are not in conflict like it looks when broken up in this post.

When the hero is morphed they will have 100 extra armor like intended. When I go to change them back I do:
Advanced - For (Attacked unit) Decrease defense by 100
Advanced - Morph (Attacked unit) to the unit type specified in the Advanced - Morph (Tolen Normal) spell

The hero ends up with an armor of 200 (as if it added 100 again). I tried to add an ability also with the same effect. I think defense bonuses are being recorded as permanent when morphing units. So if a unit had a shield that granted defense morphing them would cause them to gain it's defense bonus permanently.

My only solution to this would be to replace the unit but then I have to deal with ability reassignment and selection.
01-27-2006, 10:08 AM#425
qwertyui
Try this:

1) Create a separate ability, which grants +100 armor, based on ring of protection item ability.
2) Add it to unit when it morphs
3) Remove it from unit when it unmorphs
4) Avoid using advanced editor features for this - just to be on the safe side.
01-27-2006, 10:18 AM#426
badhex
As explained I also used:
Unit - Add Advanced - Defense Bonus (128) to (Attacked unit)
Which adds a custom item (based off the ring of protection) with 128 armor. When morphing it converts the 2 + 128 to 130. When morphing the unit back it is adding the +128 again even if I attempt to remove the ability before doing the morph. I'm getting very strange results.
01-27-2006, 10:25 AM#427
qwertyui
Hmmm.
Try removing +128 armor ability after the morph has completed, as opposed to before doing the morph.
Also, did you notice how we hijacked this thread? Its not a good thing. So next time post questions in General Development or Triggers and Scripts ^^
01-27-2006, 10:34 AM#428
badhex
The reason I posted here is this is a possible bug with an advanced trigger.

I tried before and after and I get the same result.

EDIT: Adding a wait in between the armor assignment and the morph seems to fix things.
02-05-2006, 04:36 AM#429
badhex
Edited and included in post below
02-11-2006, 04:27 PM#430
badhex
There is a large bug with the Morph unit trigger. If the unit has any type of defense bonus (via items) when the unit is morphed this bonus is applied to their base defense. The result is a units defense increasing every time I morph them if they have any type of defense item.

On top of that there is also a bug with the unit's max health and mana. I fixed this by making a function that would set the unit's max health or mana to the value I specify. I then remember their health and mana before they morph and reset it after they morph. I'm attempting to correct the defense issues the same way but have been unsuccessful.
02-11-2006, 05:15 PM#431
shadow1500
could you plz elaborate, where is the wait suppose to be, is it like this
Code:
remove armor
wait
morph
wait
set armor
02-11-2006, 06:24 PM#432
Zoxc
I think a timer of 0 secound can replace the wait.
02-11-2006, 06:34 PM#433
shadow1500
I know, i am using timers, and a non-repeating timer is basically a wait.
now can anyone answer my question?
02-12-2006, 07:31 PM#434
badhex
Removing the armor is only a temp fix since, if the unit you are morphing can be a hero with an armor bonus from items you can't account for all items. The way I did the morph (since I added a special armor bonus) was as follows:

morph
add armor bonus
wait the duration (20 seconds)
remove armor
wait (.5)
morph

This way the morph never sees the armor bonus so it doesn't bug out. Since I have multiple items a hero can buy that give an armor bonus I can't do this for every item. The only solution I could think of was maybe trying to store the armor bonus before the morph and set the unit's armor to 0. Then reapply after the morph.
02-26-2006, 02:41 PM#435
dwog-rasions-
Hi umm i had to reinstall weunlimeted and now whenever i try to open the map maker i alway get this error:
Unable to locate the target to patch. I tried to reinstall it and i still get the error can some1 pls help me?