HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Dialog Difficulties!

11-21-2008, 10:40 PM#1
forsman
So, ive made a difficulty dialog at the beginning of my map.
I know how it all works, but as im advancing in map-building,
i got a new problem!

Its a "somewhat" basic TD with twists,
and i want the clicked dialog-button to alter EVERY spawns HP.

For ex.
The spawning creature got 100hp, but as i clicked the "Easy" button,
i want every spawn from now on to have 33% of the original HP, every level.

I tried to do it like when the units are all spawned,
i did action: Pick every unit owned by Player12, and then
If/Then/Else saying that if clicked dialog bla bla,
then Set life of Picked unit to 33%..

Is there an "easy" way of altering every spawn's health just
by clicking the dialog at the beginning?



Thanks in advance.
Forsman.
11-21-2008, 10:48 PM#2
Nuclear Arbitor
multiple copies of the unit. easy, medium, hard with stats modified
11-21-2008, 10:51 PM#3
xombie
Or if you're aware of how to use JASS then you could use it in combination with SetUnitMaxState from The Jass Vault.
11-21-2008, 11:50 PM#4
forsman
Quote:
Originally Posted by Nuclear Arbitor
multiple copies of the unit. easy, medium, hard with stats modified

That could be an idea! =)
11-21-2008, 11:51 PM#5
forsman
Quote:
Originally Posted by xombie
Or if you're aware of how to use JASS then you could use it in combination with SetUnitMaxState from The Jass Vault.

Think im gonna start working on JASS, since theirs SO much talk about it! :P
11-22-2008, 01:15 AM#6
Captain Griffen
*cough*Player handicap*cough*
11-23-2008, 02:14 AM#7
Alevice
I would make it so that each difficulty level just levels up an upgrade, that works as a requirement for a HP modifier ability.
11-23-2008, 03:58 AM#8
xAbysSx
Okay, this is extremely easy, and Im suprised nobody has posted it yet. Haha.
This enables easy:
Code:
EasyMode
    Events
        Dialog - A dialog button is clicked for Dialog
    Conditions
        (Clicked dialog button) Equal to DialogB[1]
    Actions
        Trigger - Turn on Easy <gen>
        Game - Display to (All players) for 10.00 seconds the text: |Cff00ff00Easy Mode!|r)

Heres the actual part doing the 'Easy Difficulty'
Code:
EasyEnabled
    Events
        Unit - A unit leaves Spawn <gen>
    Conditions
       (Owner of (Triggering unit)) Equal to Player 12 (Brown)
    Actions
        Unit - Set life of (Triggering unit) to 33.00%
So, in actuality, it doesnt modify it until it leaves the spawn, but it works well. This is also a pretty sloppy trigger, as I would call it, but this does work. Anywho, have fun! +Rep?? (Thanks if you do)