HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Spell Help - Corspe Explosion

02-20-2004, 12:09 AM#16
pappi.chullo
about the trouble, thats no problem. but, if they cast a CE with animate dead's base, it will use a random corpse so the caster may not be all that happy :(
02-20-2004, 12:11 AM#17
Shimrra
I don't know of a way that let's you target a specific corpse, and, in the heat of battle, it might be better to just be able to select an area and have it blow...
02-20-2004, 12:24 AM#18
pappi.chullo
i guess ill go back to the old one.

Pick a random unit in unit group <UnitGroupVariable> and do:

about that, what action is that? the only ones i found are for all units in unit group
02-20-2004, 12:29 AM#19
Shimrra
Select, 'Pick Every Unit in Unit Group' and change the (Units in (Playable Map Area)) to 'Random N Units in Unit Group'. Set N to 1.
02-20-2004, 12:34 AM#20
pappi.chullo
ok this is where i am on the trigger:

Event: Unit begins casting an ability
Condition: Ability being cast equal to <Ability>
Actions: Set target of cast ability to <Point Variable>
Pick every unit matching condition ((Picked unit is dead) equal to true) and add picked unit to unit group <UnitGroupVariable>
Pick a random unit in unit group <UnitGroupVariable> and do:
Actions: Set <IntegerVariable> to a random number from .40-1.00
Pick every unit in <AOE of spell> of picked unit and set life to ((Units current life) - (maximum life of picked unit x <IntegerVariable> ))
Clear Unit Group <UnitGroupVariable>


i put for function: Math - Random number

and it had 2 number ranges. they dont allow .'s in the values
02-20-2004, 12:38 AM#21
Shimrra
Then set the number from 40 -100 and then set it to <integer> divided by 10.
02-20-2004, 12:42 AM#22
pappi.chullo
divide it how?


set variable <integer> = ?
02-20-2004, 12:43 AM#23
Shimrra
Use Set - (Arithmetic, at the top of the list) Integer \ 10.
02-20-2004, 12:45 AM#24
pappi.chullo
Integer / 10

integer refers to the variable correct?
02-20-2004, 12:47 AM#25
Shimrra
Yes, the integer variable.
02-20-2004, 12:47 AM#26
pappi.chullo
hmm wait... tell me if this is correct


Unit Group - Pick every unit in (Random 1 units from (Units within 400.00 of (Target point of ability being cast))) and do (Set CEinteger = ((Random integer number between 40 and 100) / 10))



CEinteger is the variable u told me to use
02-20-2004, 12:48 AM#27
Shimrra
Do the variable and unit group as separate actions (if they aren't already). Otherwise, it looks good!
02-20-2004, 12:50 AM#28
pappi.chullo
oh ok, i didnt know they had to be seperate, but ill separate them :)
02-20-2004, 12:54 AM#29
Shimrra
I don't think they have to be, but in my experience, it works better with them being separate.
02-20-2004, 01:04 AM#30
pappi.chullo
ill stick to what you say 8))

Unit Group - Pick every unit in (Units within 400.00 of (Target point of ability being cast)) and do (Unit - Set life of (??? unit) to ???)



what unit is the life being set to?