| 12-10-2004, 01:52 PM | #1 |
Well.. I am doing a multiplayer map and here comes the problem: -i want that the player will be able to choose a hero from a specific race, the problem is that i have created a spell wich name is paladin. I have tried multiple ways to get it work.. what i want it to do is that when the player presses the spell/ability icon the unit will be removed and then the paladin appear on the old units position but as i said i wont get it to work. The trigger is: Event: Unit - begins casting an ability Condition: (Ability being cast) equal to Paladin Action: Remove (casting unit) Create a Paladin for (owner of (casting unit)) at position of (casting unit) I wonder if it is the spell type or the triggers that is wrong? help me please! i used the magic defense shield for the paladin ability! (if you help me i'll give you a big credit |
| 12-10-2004, 02:15 PM | #2 |
seems like nothing is wrong with the trigger. Do you have any other abilities with same order string? did you change order string? |
| 12-12-2004, 04:28 PM | #3 | |
Quote:
Well... i looked at the order activate string (and the other three) and there was no acrtivation string on activate or deactivate... i changed all order strings into roar but it still doesn't work But i will try to remake all spells with the spell "roar" as a base.... thanks anyway! i maybe can give you a small credit... ..after all you tried to help me (new) Hi again..... i have created four spells now(paladin,archmage,bloodmage and mountain king) with the ability "roar" as base.. ...i want that when a unit chooses paladin(as an example) a paladin shall be created.. ..But when i choose one of the abilities all four units is being created! 1paladin 1archmage 1bloodmage and 1 mountainking?!?!?! HOW TO SOLVE THIS CASE?!?!?! |
| 12-12-2004, 06:48 PM | #4 |
what I ment was: DONT have more than 1 ability based on 1 ability. DONT change order strings. See, basing it on same ability would fire all 4 abilities when 1 is clicked. |
| 12-13-2004, 02:35 PM | #5 | |
Quote:
sorry if i misunderstand you.... ..but do you mean that i shall make all four abilities from four different abilities? like one is roar, another is taunt and so on? :( So i cant use roar for all four abilities?... ..but do you have a tip for me how to make a "choose hero" system? (new) By the way! isn't there a way to chnage the spell ID or something.... ..then it should work... ..or do i have wrong? |
| 12-13-2004, 02:54 PM | #6 | |
Quote:
|
| 12-13-2004, 02:58 PM | #7 | |
Quote:
Thanks!.. But do you have any ideas for another hero system? However i'll give you a credit.. |
| 12-13-2004, 03:00 PM | #8 |
I dont want credit, im just here 2 help, like all others. What you ofcourse could do as hero selection system, is the ever so used whisp/shade and circles of power. Or, as I use often, just place the heroes and if a player selects them, they get that hero. |
| 12-13-2004, 04:40 PM | #9 |
If you decide to go with that same system (cast a spell to get the hero), one note on your trigger. In your first post, you remove the unit, then you attempt to create a unit at it's position. This might cause problems - you don't want to remove it and then try to place something at it's location. Instead, create the hero for the casting unit and THEN remove it. Also, as toot said, you can't use the same base spell for your hero selection. It would cause problems, and changing the order string won't fix it. When you're making your spells, just choose different options (roar, tranquility, howl of terror, mana shield, etc) for each spell that will be on one unit. |
| 12-13-2004, 07:18 PM | #10 |
What others said is true, except in one small detail, which could just make your life a little easier. There is a spell called channel (it's under neutral hostile - heroes, I think), and this spell is a true "dummy" spell. It can't do anything on it's own, it's only purpose is to run triggers such as your own hero selection trigger. The main point of channel is that it is highly customizable (you can change it to be a no-target spell like roar or a unit-target spell... ) and it has a special field where you can change it's orderstring. That means you can have many spells all based on channel on one unit. This is easier because instead of having to customize multiple different spells like roar, taunt etc, you just take channel, costumize it to fit your needs, and then copy&paste it, and just change the icon, tooltips and orderstring from here on. One note on using channel: it's so customizable that you may need a few tries to get it working properly: you must set some flags to make it even show on the unit, to make it not disable all other abilities when it's cast (altrough that really doesn't matter for you anymore, because you remove the unit the moment it casts the spell...) Another note on adding/removing the unit... You can just try with the "unit - replace" action. It might have problems when replacing a normal hero with a unit, I don't know, I never tried it, I use it to replace heroes with heroes, but it probably works. |
| 12-13-2004, 07:45 PM | #11 |
you could just use a tavern for this |
