HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

I need help with my spell casters

10-28-2003, 08:05 AM#1
Bun-Bun
my spell casters arnt working. The 1st level upgrade works and it gives u the 2nd abilaty for the spell caster but when i go to upgrade the thing a 2nd time the 3rd abilaty still says it needs the resurch altho ive resurched it:( emote_confused :bgrun: :(
10-28-2003, 08:29 AM#2
Grater
Whoa cool you have fine tastes in comics.
(I'm so zoned I only recognised your avatar was after reading your sig, but thats another story)

Custom upgrades are bugged, I've never used custom upgrades except through triggers so Ironically enough I dont know exactly what the problem is, but I think a trigger like this will fix it:

edit: Errr nope, that doesn't work. Just tried it in the editor. Hopefully someone else has the solution.
10-28-2003, 08:29 AM#3
Supra God CrK
you should double check the tech tree for your 3rd abilty. maybe you have it set to the wrong thing? or maybe you have something else added.
10-28-2003, 08:35 AM#4
Bun-Bun
hmm cheers ill try it. Im making a pandaren campaign hehe its 4 the 2 spells casters of my race ive made. im hoping to get my campaign up on the (just started) list

Let me check my notes ;)
10-28-2003, 08:53 AM#5
Bun-Bun
ok didnt work :( ill show u i took a screen shot
10-28-2003, 08:54 AM#6
Grater
Because my previous solution doesn't work, I think you need to do it manually with triggers.
"Everything has a manual"

Basically it involves manually adding the ability to the unit (the ability should have no tech tree requirements)

The first trigger adds the ability to all existing casters (change names as appropriate)
Code:
Upgrade Researched
    Events
        Unit - A unit Finishes research
    Conditions
        (Researched tech-type) Equal to Custom Upgrade 
        (Current research level of Custom Upgrade  for (Owner of (Triggering unit))) Equal to 2
    Actions
        Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit)) of type Zap Caster) and do (Actions)
            Loop - Actions
                Unit - Add Zap 2 (Neutral Hostile) to (Picked unit)

The second adds it to newly trained casters:
Code:
Caster Trained
    Events
        Unit - A unit Finishes training a unit
    Conditions
        (Unit-type of (Trained unit)) Equal to Zap Caster
        (Current research level of Custom Upgrade  for (Owner of (Triggering unit))) Equal to 2
    Actions
        Unit - Add Zap 2 (Neutral Hostile) to (Trained unit)

This solution definitely works... you dont place the ability on the unit itself, which means the player doesn't see what abilities it will get. If thats really a bother it's possible to fix that too, just means a dummy ability and more complicated triggers.
10-28-2003, 09:04 AM#7
Grater
What the hey, it's not as hard as I thought to make it look authentic. Just make two versions of the spell (ie copy paste) and use the suffix to name them (Dummy) and (Working) the dummy has the proper tech tree requirements and the working has no requirements. Give the caster the dummy ability in the object editor.

Then when the upgrade is researched or the unit is trained, remove the "dummy" ability and add the "working ability :ggani:
Code:
Caster Trained
    Events
        Unit - A unit Finishes training a unit
    Conditions
        (Unit-type of (Trained unit)) Equal to Zap Caster
        (Current research level of Custom Upgrade  for (Owner of (Triggering unit))) Equal to 2
    Actions
        Unit - Remove Zap 2 (Dummy) from (Trained unit)
        Unit - Add Zap 2 (Working) to (Trained unit)
10-28-2003, 09:11 AM#8
Bun-Bun
umm i cant find this bit
(Unit-type of (Trained unit)) Equal to Zap Caster
emote_sweat
10-28-2003, 09:14 AM#9
Grater
Conditions - Unit-Type Comparison
10-28-2003, 09:15 AM#10
Bun-Bun
lol how did i miss that :P
10-28-2003, 09:37 AM#11
Bun-Bun
ok it hasnt worked again :bangH: :cuss:

ive got 1 last idea
10-28-2003, 09:38 AM#12
Bun-Bun
oh oops i did one bit wrong i put triggering unit not trained unit

fingers crossed
10-28-2003, 09:59 AM#13
Bun-Bun
ok i got it working!!! BUT! it doesnt give the ablitaty 2 units that have already been trained b4 the upgrade :(
10-28-2003, 10:21 AM#14
Bun-Bun
I DID IT !!! WOHOO!! all i did was change the 1st out one u gave me when u had 2 and changed it a tiny bit and it works when i train them and when they have been trained!!!! thank u so much dude!!!!:ggani: :ggani: :D :D :ggani: :ggani:
10-28-2003, 10:24 AM#15
Grater
You'll need to do the "remove ability" action for "Upgrade Researched" trigger I posted too.
Code:
Upgrade Researched
    Events
        Unit - A unit Finishes research
    Conditions
        (Researched tech-type) Equal to Custom Upgrade 
        (Current research level of Custom Upgrade  for (Owner of (Triggering unit))) Equal to 2
    Actions
        Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit)) of type Zap Caster) and do (Actions)
            Loop - Actions
                Unit - Remove Zap 2 (Dummy) from (Picked Unit)
                Unit - Add Zap 2 (Neutral Hostile) to (Picked unit)

If your trigger looks like that ( with the names changed ofcourse) then it should work because if the "caster trained" one is working then the abilities must be set up correctely.