Possesion on spellcaster

  • Thread starter Thread starter Mithrandir
  • Start date Start date
M

Mithrandir

Guest
First of all, I'm quite new to Worldedit, so my problem is probably not that much. I need to find a way to create a spell identical to the Banshee's Possession, but that will affect only spellcaster. I can't really find a way throught this.

If there is a way to create custom status, like "undead", "mecanical", "summon", etc, that would probably be the best way.

Thanks.
 
Could you please explain that a little bit better? It sounds like you want the Banshee to possess itself.
 
ahh do you want the spell to only work on spellcaster type units? if so you need a trigger that detects when the abilty is used and cheaks if the unit its used on is a spellcaster if it is then it cast possion on it

basicly your possion has to be a dummy abilty which means it does nothing execpt when its used it starts a trigger

E: a unit begans casting a spell
C: spell being cast equal to <your spell here>
A: if/then/else
IF: (unit being cast on equal to (<unit here>)) equal to true
THEN: remove casting unit
give casted on unit to owner of casting unit
ELSE: do nothing

sorry thats a little off ill put up a real trigger here in a second if soemone else doesnt beat me to it

edit: i may not get it on here i cant find the condition i was looking for sorry
 
Yes, that was what I was looking for. Sorry if it wasn't clear. Thanks for the help UnknowVector. But I think witth that "IF" I will need to do a event for each type of spellcaster, isn't?
 
Ya, instead of doing that, why not just use a condition to check if the unit has mana?

dArKz
 
Technically you COULD set each and every spell caster to an array and then run a condition to check whether or not the target is a member of the unit-types in that array.

I think.

Maybe.

Who knows?

Not me! :D
 
*Cough* ...or save time and check if the unit has mana? :P

dArKz
 
Don't some units that aren't actual "spellcasters" have mana, though?
 
Hmm, it probably would be best to make a unit-group and add all the 'spellcasters' to that and make that your condition.
 
If you have mana, you're likely to have spells. Thus, you are a spellcaster :P . But I guess you could go with Alexander and Laika's way of doing it, though I find it easier to just say:

Code:
(Integer((Max mana of (Target unit of ability being cast)))) Greater than or equal to 1
((Target unit of ability being cast) is A Hero) Equal to False

I guess it all depends on your personal definition of "spellcaster"

dArKz
 
dArKzEr0 said:
I guess it all depends on your personal definition of "spellcaster"

Bingo.

Use Darkzer0's way if you want it to basically work on anything with mana. However, you'll have to prevent it from working on Heroes, don't forget, but that's already on the spell.

However.

If you want it to target SPECIFIC units, such as only Shamen, Priests, and the basic melee spellcasters from the 4 main races, then you should use my inital way.

(Note: Darkzer0's way is faster. Mine is more specific. Both have ups, downs, and lefts :rolleyes: )
 
Thanks to both of you :) .

I think I will use Alexander's method, because I want to target only specific spellcasters.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 The Helper:
    I wonder how all these bots that sit on the lastest content page get passed anubis or maybe they did not but they are just registering on whos online
  • The Helper The Helper:
    showing up on whos online not registration
  • Ghan Ghan:
    The first gate is stopping all the bots that don't execute javascript.
  • Ghan Ghan:
    That's the main thing with Anubis - no Javascript, no site. Typically you can still get the site to load without Javascript.
  • The Helper The Helper:
    I remember the whole javascript thing, question - how many real people disable that?
  • The Helper The Helper:
    Hell I guess I could go back on the stats to know that - we probably capture that and we know the before and after
  • Ghan Ghan:
    Real users can't really disable Javascript anymore these days.
  • Ghan Ghan:
    The internet is broken without it.
  • Ghan Ghan:
    Bot readable, not human usable.
  • The Helper The Helper:
    got it
  • The Helper The Helper:
    Happy Thursday!

The Helper Discord

Staff online

Members online

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top