HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Real Variables....do they work?

08-22-2003, 09:02 AM#1
Ulef
I'm in the middle of making my AOS map and part of my my death system involves a Real variable. It checks if the Casting Unit's life is Greater than or Equal to 400. The trigger is for when a unit finishes casting an ability. I dont know why but the game doesnt do anything for the real. The trigger just stops at the condition checking for the real to be true. When I disable the function though.....the trigger runs.
08-22-2003, 09:15 AM#2
JaredR26
Try setting casting unit to a temporary unit variable

then doing an if then else with multiple functions

Now refer to "unit's life" with the variables's life, and then the >= 400 check.

Not that thats anything different, but i never trust blizzard on things like "triggering unit" or "casting unit," if at all possible I put it in a variable- Whenever Blizzard finds something it doesnt like, I.E. where it can't figure out what your referring to, it just skips that part, with a false if its a condition.

I want to change my name to i hate blizzard WE. =)

Jared
08-22-2003, 10:27 AM#3
Catalyst
Returning a false, is prefferable to crashing the program, or raising an error message in the middle of your game, that you can't do anything about. ;)

I have never had any troubles with reals..

should be

event: Unit uses ability
Condition:
ability = whatever
Unit (triggering unit) health <= *health limit variable*(the real?)
action:
*stuff*
08-22-2003, 10:30 AM#4
JaredR26
Very true about the returning a false part...

But i think they really should have done SOMETHING to make debugging easier.

However, my main problem with blizz is the limits on mapmakers(like not being able to pick hidden units under certain conditions, and limit of 512 neutral units.) and the wierd bugs like abilites limited to lvl 4.

Jared.
08-22-2003, 10:34 AM#5
Catalyst
i have spawners that created over 220 creep camps (3-4 creeps each)....
unfortunately, it lagged the game, so i had to add a modifier so that creeps only spawned around local players, works much better, as there are no more than 100 or so active camps at any time...

Not tested with 8 players yet though... that could get messy.

Anyway, basicaly creeps spawn if players are within X (4.5 atm) Thousand of a region. AND players are not within Y(1.25 atm) Thousand of a region, AND there are no creeps withing Z (5 amt)Hundred of a region.

But still testing the game with these variables.

This is relating to my (soon to be made) post.

Cata
08-22-2003, 11:13 AM#6
Ulef
I've fixed my problem :) IT all works great now! Except for the time....it takes a few seconds for the trigger to run thru...but I'm sure players could live with waiting 2 secs. :) Guess now its onto making the units.