| 08-11-2003, 08:16 PM | #181 | |||||||
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
For each (Integer A) from 1 to 10, do (Actions) set my_unit (a unit var) = random unit of group if My_unit = unit to remove then remove my_unit else do nothing Please take into account, that this is only an example how the trigger can look, it is NOT complete. Quote:
|
| 08-11-2003, 09:08 PM | #182 |
Is there anyway for you to make so you can have multiple WEs open at the same time? |
| 08-12-2003, 05:03 AM | #183 | |||||||
Quote:
darn. /me shrugs. Quote:
yeah. set a sheep as the model file for the projectile from a catapult. funny shit. in this case i was making a custom ability that threw a custom object Quote:
cool. thanks. Quote:
the obvious answer, and one i knew. just using that as an example. what about a region covering 1/2 the level? etc. Quote:
/me shrugs np. Quote:
been there, done this, didnt work. i had a unit group of 5 units, wanted to select a random unit from the group, remove the unit from the group and from the game, create another unit and add that one to the group. this was linked to a loop trigger that executed whenever the # of units was < 5. i spent 1+ hour messing with code similar to yours but it never worked. i figured out that you could only do one action to the unit selected with the "select random unit from unit group", either remove from group or game. i finally did my idea and it was fine. /me shrugs Quote:
|
| 08-12-2003, 05:18 AM | #184 |
Idea: The "music list" triggers seem to be a bit empty, like they have their own variables but blizzard forgot to enable them or something. I would find it much useful to create music playlists in my map, thanks! :) |
| 08-12-2003, 07:11 AM | #185 | |
Quote:
Every time the program encounters the Random Item Type call, it gets a new type. So if you're doing Code:
Pick every unit matching (Matching unit is a Hero) and do actions:
|_ If (picked unit) has (Item of Random item type ) then do actions
|_Set Life of (picked unit) to Max Life of (Picked Unit)Pick first hero, and if he has (a Legion Doom-Horn), then give him max life. Pick first hero, and if he has (a Gem of True Seeing), then give him max life. Pick first hero, and if he has (a Phat Lewt), then give him max life. To solve this problem, what you do is get your random item one time, and store that item-type in a variable. Then you reference the variable, which won't change each time it's referenced. This applies to any random picking where you refer to the random thing picked more than once... random items, random numbers, etc. Even if you aren't doing a loop. Mebbe you want to just pick a random unit, and remove him from one unit group and put him in another. Since you'll be referencing him twice, you'll have to use a variable. Sometimes WE will help with that... variables like "Last Replaced Unit" are set automatically, and you can refer to that until you do another Replace or whatever action. |
| 08-12-2003, 07:25 PM | #186 | |
Quote:
I looked into it and found some interesting functions, but I don't really know what you want. So please be specific. |
| 08-12-2003, 07:26 PM | #187 |
Maybe you could add all the functions and not have to worry about it? |
| 08-12-2003, 07:27 PM | #188 |
I'm too lazy to look through the whole thread but if im too blind to see it in the world editor how about a "Spell is Cast" event and Spell-Type condition? |
| 08-12-2003, 08:20 PM | #189 | |
Quote:
Maybe, but thats much work and will delay UMSWE more. |
| 08-12-2003, 08:44 PM | #190 |
specifically? how about the ability to make a trigger that says items - drop all items carried by xxxx items - drop all items carried by xxxx of type items - give all items carried by xxxx to xxxx items - give all items carried by xxxx of type to xxxx etc etc. xxxx being a variable of a unit/hero/unit group etc. this would be much nicer than doing the whole for interger a 1-6 drop item of unit from slot "interger A" its not really necessary, but might be nicer. |
| 08-13-2003, 12:39 PM | #191 |
arr! plz fix the "unit within range" trigger to work with variables correctly! :D |
| 08-13-2003, 08:42 PM | #192 | |
Quote:
I think it will be available in the professional edition. When I was looking into it, I programmed some functions, that do what you want (at least the second thing). But now that I know what you want, I can create functions for this and add them to the professional edition. |
| 08-13-2003, 09:51 PM | #193 |
Spell Editting breakthrough by Bluedrgn! I REALLY Think you Should implement this! |
| 08-13-2003, 11:59 PM | #194 |
lol looks like blizzard was just too lazy to add that when tft came not that they ran out of time. i gess they dint check feld values in time or something so decided to wait. It would not be first time blizzard did this (Z height is example of this they are just too lazy to add it to jass). |
| 08-14-2003, 07:40 AM | #195 |
Could it be possible to create new item classes and being able to check them ? |
