HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help w/ triggers

07-17-2003, 12:03 AM#1
I_encore
--Im really dumb when it comes to tirggers, so please explain as if to a 2 year old.
--This is for Aos Mithril style game.
1. I want any human contolled hero on a team to be able to choose an upgrade for a tower (custom upgrades..no problem):hps, ac, damage upgrades. These upgrades would have to upgrade the computer teams towers.
2. Simple one but im dumb.... I want the hero after death to come back to life with full health like it used to be. (If he has an ank of corse)
3. I want one spell to be able to be purchased from a store. So hero will have 13 lvls. have 4 spells already, and will be able to purchase his CHOICE of one more from a store.
4. Point of intrest... In the ones ive played online so far, before hero even gets to enemy units he gets to lvl 3. he gains exp not doing anything. Secoundly if I with my hero just move small space and stop. Then repeat, he gains exp. Is the exp cap to low??? or something.

Not to repeat myself, but if you say do this veriable and this and that, I will not get it. Please forgive my stupidity, but I need the actual name of the trigger, in which event/condition/action its located, and what changes were made to the trigger.
Thanks a bunch. lol gona do it for posterity sake.
Terrain 100%
Balance 90%
Triggers -30% I copy others =)
Spell Editing 50%
07-17-2003, 03:04 PM#2
TUnified
2. Simple one but im dumb.... I want the hero after death to come back to life with full health like it used to be. (If he has an ank of corse)


Event - Unit Dies (Hero Owned by Specific Player)
Condition - Hero - Has Item (Ankh)
Action - Hero - Revive (at desired spot)
Action - Hero - Remove Item (Ankh)

Not sure on actual trigger names but look for something similar

3. I want one spell to be able to be purchased from a store. So hero will have 13 lvls. have 4 spells already, and will be able to purchase his CHOICE of one more from a store.

You have your 4 spells in the hero's ability list. List all the other spells you want available for purchase also in the ability list and disable them in Map Initialization so the hero can't pick them. Under unit properties in the WE give all the purchasable spells one level so that when they are bought they automatically are enabled and are placed in the 5th spot. Put all the extra spells (as items) into a shop and...

Event - When hero has item (specific spell)
Action - Enable ability (according to specific spell bought)
Action - Remove item (specific spell)

Thats an idea, and it may not be correct, but going off of memory I think thats how I did with one of my older (unfinished) maps.
07-17-2003, 03:55 PM#3
Pirogen
Quote:
4. Point of intrest... In the ones ive played online so far, before hero even gets to enemy units he gets to lvl 3. he gains exp not doing anything. Secoundly if I with my hero just move small space and stop. Then repeat, he gains exp. Is the exp cap to low??? or something.
Go to the "advanced" tab in the WE and click on "gameplay constants". There, you should find something like "Hero XP - Global Distribution". When this is true, a hero would gain XP whenever an allied unit killed an enemy unit, no matter how far away the killed unit was. Try unchecking this, and heroes should only gain XP in their vicinity.
07-17-2003, 04:14 PM#4
ChronOmega
of course that isonly with The frozen throne, not with Origional War3
07-17-2003, 07:50 PM#5
Pirogen
Thanks for pointing that out, I think may brain is on vacation today.
07-17-2003, 09:59 PM#6
I_encore
I found a gsme constant that allows for a hero to revive at any hp or mana percent. Thats alot easier than a triigger for qestion 2. I also got question 4 squared away. Tunified, Ill futs around with your answer for #3. Hopefully i understand it. =) Thanks btw.

For #3 its 3 of 3lvl spells, and a lvl 6 spell. The purchased spell will be another 3 lvled spell.... I dont know if this is gona change anything.

k, this is what I got. Trig 1 event map initialization. Action Disable ability Moonson.
trig 2 Event: A unit aquires an item
Condition: Triggering unit has item type moonson equal to true Action: Enable Moonson for player one red
Action: Item remove (item being manipulated)

Gona go test it out and reedit. Ok it works =). Hope I can get abilityies to have three lvls.
"Question" Is it possible to do the same thing with spells not abilities?