Spawning and currency (easy?)

Status
Not open for further replies.
Level 5
Joined
Aug 14, 2004
Messages
188
Ok, so i have this map, of corse, lol
aliens map basically, when the crystlis pops up eventually it has on it 4 diffrent choices to spawn into eather a warrior, runner, drone, or cystic drone.
and eath ones used as a obsidon morph thingie, so i was hopeing it'd cost lumber, basically, but it doesnt subtract any lumber at all. i posted it here cuz i couldent find anywhere where triggers go.
the code behind it is

Events:
-Unit- a unit begins casting an ability
Conditions:
-and all conditions are true
-conditions:
(ability being cast) equal to Morph (name)

Actions:
-Player add -40 to (Matching player) Current lumber
-wait 15 seconds
-Unit- kill (triggering unit)
-unit-create 1 (unit) bla bla bla...
-spechial effect on unit...

i have this code 4 times for each unit typie thingie, and it gives me diffrent units sometimes when i click the same button or other buttons or sometimes it wont even give me the unit requested at all : \

Can anyone help me???
 
Level 9
Joined
Jun 10, 2004
Messages
594
Should be:

Code:
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to (Your Spell)
    Actions
        Player - Set (Owner of (Casting unit)) Current lumber to (((Owner of (Casting unit)) Current lumber) - 40)
        Wait 15.00 seconds
        Unit - Kill (Casting unit)
        Unit - Create...
        Special Effect - Create a special effect...

P.S. If the unit isn't killed, then its because (casting unit) was reset after a wait.

~The_Raven
 
Level 5
Joined
Aug 14, 2004
Messages
188
The_Raven im haveing a hard time doing your thing, i have it down about exactually, thing is it takes all the lumber in the players current lumber... how do you get it to not do that? o_O lol

Uhh.. yeah, and i need this trigger to work on a bigegr scale then one to 3 units doing it at their own times, i need probally max 12 units doing it at the same time while some other 9 are doing a diffrent but same request, for some reason that messes up and ownaly kills one unit that was intended to kill and spawns like 12 (picked units) in its spot...
can ya help me out? err . .. least it subtracts lumber tho, lol.. . . ...just to much o_O
 
Level 3
Joined
Jul 16, 2004
Messages
24
i've been playing around with the chaos ability. its quite nifty, maybe you could use it there...


but as said above, you might be able to upgrade units much like scout towers, and it would operate better then using the trigger

ALSO: with that trigger, you could use it when you have 3 lumbrer and end up with -47 lumber (not really, the lumber would be like 199223. but u get the idea)

so if you were to do it that way, you should put an if/then/else maybe before the spell and check whether they have "equal to or greater then 40 lumber"
 
Level 5
Joined
Aug 14, 2004
Messages
188
1 wanna do it with triggers, when you use the tower upgrade it takes ther last units color set, and it looks horrable, it starts out as a huge alien and slowly shrinks to a smaller one... just looks crappy.

o.o need help
 
Status
Not open for further replies.
Top