Nightmare ability

DM Cross

You want to see a magic trick?
Reaction score
568
I want to make an ability that is targetable only on sleeping units. It'll be called 'Nightmare' and I can't say I've ever seen something like that done. I'm already sure it's going to take a trigger, but um...still not great with those, so anyone have any ideas how you would go about that?
 
I've got the Events and Conditions, but until I hear what you want it to do, I can't help any further.

Code:
Nightmare
    Events
        Unit - A unit Begins casting an ability
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Target unit of ability being cast) is sleeping) Equal to False
            Then - Actions
                Unit - Order (Casting unit) to Stop
                Game - Display to (All players) for 7.00 seconds the text: Cannot cast spell o...
            Else - Actions
 
Let me see if I can break this down to be a bit more clear.
The hero has both a sleep variation and the 'nightmare' ability
i want the 'nightmare' to only be useable on SLEEPING units
the spell is basically a massive damage spell, but the sleeping makes it harder to target heroes (since they don't sleep at all)
That's pretty much it...
 
I know, and that's what this trigger does. If the unit IS NOT sleeping then it will NOT work. No other way around it.

Look at the trigger. When they cast the ability, it checks if the target is sleeping. If it isn't, it stops the caster from casting the ability, displaying that he cannot target awake units.
 
OOH, woops, I didn't read the text, sorry...

So do I have to do another trigger to get the damage to work? like...the same basics, just with the if/else being:

If unit is sleeping do x damage
Else do nothing

Right?
 
This trigger's multi-instanceable, jsut so you know. Damages the target if it is sleeping, otherwise does nothing.

Code:
Nightmare
    Events
        Unit - A unit Begins casting an ability
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Target unit of ability being cast) is sleeping) Equal to False
            Then - Actions
                Unit - Order (Casting unit) to Stop
                Game - Display to (All players) for 7.00 seconds the text: Cannot cast spell o...
            Else - Actions
        Unit - Order (Casting unit) to damage (Target unit of ability being cast) for 500.00 using attack type Chaos and damage type Universal.
        Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl

I use Begins casting, because with effects, the ability will still happen even if the unit is awake.
 
Oh, so i can do the whole thing in one trigger, like that...um, the spell is castable, so can i use the special effect of like...hmm...finger of death or whatever?
 
Eh, yes, but I may also note that Finger of Death lightning effect is NOT special effect, rather lightning instead. It'd be better to base your ability off of Finger of Death, put as much damage you want into the spell, then use my first trigger and add a Condition "(Ability being cast) equal to Nightmare)".
 
and if i make it off finger of death, i don't ahve to add the damage parts, right? (i know it seems like i'm asking a lot, but i'm really just voicing thoughts that come to mind, sorry if this is really annoying...) and i meant the damage part of the trigger, if i make it off of finger of death dealing x damage, all i have to do is make a trigger to make sure the ability is cast only upon sleeping units?

I get that right?
 
Alright, 'you da man, conan' (ha, it ryhmes) thanks a ton! :D gotta remember you in the credits...
 
Time for a history lesson, listen up now.

Most people think my names ConAn with a short a, but it's actually ConIn with a short I.

Most people beleive my name's from Conan O' Brien or Conan the Barbarian.

It's actually from Case Closed, the main character being Conan Edogawa.

XXconanXXX doesn't mean anything, Ryoko thinking the XXX was like no drugs, driving, blah blah blah. The name's actually supposed to be XXXConanXXX, but, eh, I'm a retard so I don't know.
 
um...OK?! SURE?! WHY NOT?! ... i have NO IDEA where the hell that came from...wow, they called ME insane?!

Lol, only kidding ConAn :D

Thanks a ton, anyway! AND YOU"RE IN THE DAMN CREDITS, QUIT COMPLAINNING!
 
Throwing this in

Just for the heck of it this is somewhat like the spell that one of the drealords use in a campaign he puts unit to sleep the casts a spell that turns them undead....spell can also be found on D&D experience.... O btw cool idea for spell

Rest lil hero dont say a word I'm gonna sleep you then turn u into a mocking bird.. WAIT im mean dead person not mocking bird

^Dont know where that came from so dont ask

...now if someone could help me with my thread lol
 
Hmm, odd...This is the trigger:

Nightmare
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Nightmare
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Targeted unit) is Sleeping) Equal to False
Then - Actions
Unit - Order (Triggering unit) to Stop
Game - Display to (All players) the text: Cannot cast Nightma...
Else - Actions
Do nothing

However, when I try the spell on a sleeping unit, it just gives me the message again...Any thoughts as to why?
 
For one, your using Targeted Unit which does not work, you need to do Target of ability being cast. Also, use Castying unit NOT Triggering Unit:

Code:
Nightmare
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Nightmare
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Target unit of ability being cast) is sleeping) Equal to False
            Then - Actions
                Unit - Order (Casting unit) to Stop
                Game - Display to (Player group((Owner of (Casting unit)))) for 7.00 seconds the text: Cannot cast Nighmar...
            Else - Actions
 
you = my GOD, dude! lol, you've basically helped me make this whole hero (though, it was rather complicated...well, for me :D) anyway, that worked, but, just out of curiosity, why wouldn't the other way work? 'targeted unit', does that only apply to when you target a unit with an attack? and isn't the mage the 'triggering unit', since she's the one castnig the spell? that one i don't get at all...just curious, i'm not arguing with you or anything :D
 
The things like Casting Unit, Triggering Unit, Targeted Unit, there all EVENT RESPONSES. Targeted unit refers to a unit that's targeted in the event "Aquires a target". If your not using the Event, nothing will happen. Read the descriptions on the triggers, they tell you what they're used for.
 
Old thread is new

Srry, i know this thread is extremely old, but I think Im going to use thisa bility, but rename it, Ill add credit.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    this is the fix I get from that yeah this is hard to control. disabling bots is pretty much necessary as ai and other bots would push really old threads to the top. reduce weight of view count. disable guest view tracking if you really want to push active threads to the top. a bit of tinkering for a few days with the weights and other settings should get you a decent trending widget box.
  • Ghan Ghan:
    I changed the settings a bit.
  • Ghan Ghan:
    Narrowed it to 7 days for the half-life and set views to 0 weight.
  • The Helper The Helper:
    I dont think Trending would work for this forum it would be better to just have the last 5 posts from anywhere
  • Ghan Ghan:
    Probably will have to give it some time to update.
  • Ghan Ghan:
    I'm guessing it is not retroactive.
  • Ghan Ghan:
    Next on the punch list: Update the server to Ubuntu 24.04.
  • The Helper The Helper:
    Mad Lads is new I see it displays original post date
  • The Helper The Helper:
    as long as it changes it is good - it is good now it updated and its new stuff
  • The Helper The Helper:
    One thing I have noticed and I dont know if it is by design but like 1 out of 3 times I come to the site the Anubis screen just hangs open, if I refresh it will go away but sometimes it hangs
  • Ghan Ghan:
    I've seen that as well.
  • The Helper The Helper:
    Wow - the change in the stats are major. I kind of knew it was all bots but wow, to see the effect. Why the social media sites cant do something like this I have no idea.
  • Ghan Ghan:
    Probably inflates their numbers so they look better to advertisers.
  • The Helper The Helper:
    Yeah google does not filter those bots. I remember when Apex was doing Google ads I saw the same IPs in there as I was seeing here - google is totally tracking all those bots as traffic and most google traffic, at least ours, was all bots
  • The Helper The Helper:
    oh wow, i bet i can post x links now and do the webp pics now giggity
  • The Helper The Helper:
    ahh anubis blocks anyone that has javascript turned off
  • The Helper The Helper:
    Robot: HTTP client library - i love the new robot :)
  • The Helper The Helper:
    New Science News Forum and it starts out with 420 threads :)
  • The Helper The Helper:
    Technical Support forum name changed To Technology News, there is now a Tech, sci/tech and science forums now :)
  • The Helper The Helper:
    Happy Saturday! Hope everyone has a fantastic weekend!
  • Ghan Ghan:
    We are now on Ubuntu 24.04. Had some issues with the style after the OS/PHP upgrade but now resolved.
    +1
  • Ghan Ghan:
    PHP 8.3 now live
    +1
  • The Helper The Helper:
    Weekend went by too fast. Next weekend I am going to try to do a nature thing - buddy of mine lives by the Colorado river and has some kayaks and invited me to do some kayaking from a place he knows to get on the river.
  • Ghan Ghan:
    That sounds like an adventure.
  • The Helper The Helper:
    400 users all online all looking at latest content

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top