Empty Spell

Status
Not open for further replies.
Level 4
Joined
Jun 12, 2009
Messages
57
I was wondering.. I wanted to make a research spell book for my units, and I was wondering what spell to use so that when it is cast it does nothing except for starting the upgrade. I tried basing the spell off of Sphere but I couldn't get an icon to show. I have tried putting it in default abilities and it wouldn't show either and I gave it an icon. Also could this empty spell be used over for different researches and different levels of them?
 
Level 3
Joined
Jul 2, 2009
Messages
51
Im not quite sure what you mean, but you could try this:

  • Events
    • Unit - A unit Finishes casting an ability
  • Conditions
    • (Ability being cast) Equal to Thunder Clap
  • Actions
    • Unit - Order Blacksmith 0000 <gen> to research Iron Forged Swords
Just Edit thunder clap to be a unit ability and make it do no damage.
And maybe for the same spell to do different research orders you could try adding:

  • Actions
    • Unit - Increase level of Thunder Clap for Blacksmith 0000 <gen>
But then you would have to use buffs, and make the spell target "self"
maybe you could do:

  • Events
    • Unit - A unit Finishes casting an ability
  • Conditions
    • (Ability being cast) Equal to Thunder Clap
  • Actions
    • Wait 0.50 seconds
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • ((Triggering unit) has buff Barkskin) Equal to True
      • Then - Actions
        • Unit - Order Blacksmith 0000 <gen> to research Defend
      • Else - Actions
        • Do nothing
Give the thunderclap ability like.. 10 levels or something, make each level have a different buff,
and for each buff it does a different research order, and after each reserach order or whatever else you want it to be,
increase the level of thunderclap.
 
Level 4
Joined
Jun 12, 2009
Messages
57
Ha wow it was that simple! Thanks it worked... except for one thing. Whenever the unit finishes the ability it won't fire off my trigger. I set the follow through time to 0 and the casting time to one second. Why won't it fire off?

  • Events
    • Unit - A unit Finishes casting an ability
  • Conditions
    • (Ability being cast) Equal to Channel use
  • Actions
    • Unit - Order (Casting unit) to research |c0001FF26Cell Survival|r
 
Nop, it doesn't work like that. In order to do that you need to have the research attached on the casting unit.
Here:
  • Trigger
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Channel use
  • Actions
    • Player - Set the current research level of |c0001FF26Cell Survival|r to ((Current research level of |c0001FF26Cell Survival|r for (Owner of (Triggering unit))) + 1) for (Owner of (Triggering unit))
 
Status
Not open for further replies.
Top