| 08-03-2004, 01:05 AM | #1 |
Can someone yell me how I can go about makeing a merchant selling hero spells to the heros. So like you get your hero and u got no spells. In order to get new ones u need to have gold and a certin level to buy them spells and use them. |
| 08-03-2004, 01:15 AM | #2 |
Im not exactly sure but you could fake it. Like say make an upgrade that does nothing and put it in the shop or a fake item that does nothing, and when you purchase it or buy it you can use a trigger to give ability(which ability) to hero(which hero). Sorry for the lack of clarity and actual trigger code but i'm fairly busy. |
| 08-03-2004, 01:31 AM | #3 |
WWsage has the Idea, create a dummy item with the name of your spell, then the trigger to give him the spell (Multi-Level spells are easy, too, though you should create a different spell for each level, Being identical in evreything but statistics, etc.) Code:
Events
A unit Acquires an Item
Conditions
(Item-type of (Item being manipulated)) Equal to (Spell Dummy Item)
Actions
If/Than/Else, Multiple Functions
If SpellLevel is equal to 1 and HeroLevel is equal to (Required Level)
Than Actions Loop
Unit- Add Ability Spell 2 To unit
Unit- Remove ability Spell 1 from unit
Item- Remove Item being Manipulated
Else
Unit- Add Ability Spell 1 To unit
Item- Remove Item being ManipulatedJust create more If/Than/Else's for higher levels, and I think that's how you'd do it ^_^. |
| 08-03-2004, 01:39 AM | #4 |
k i just dont get this part: Actions If/Than/Else, Multiple Functions If SpellLevel is equal to 1 and HeroLevel is equal to (Required Level) Than Actions Loop Unit- Add Ability Spell 2 To unit Unit- Remove ability Spell 1 from unit Item- Remove Item being Manipulated Else Unit- Add Ability Spell 1 To unit Item- Remove Item being Manipulated |
| 08-03-2004, 02:01 AM | #5 | |
Quote:
SpellLevel would be an integer variable carrying the level of that spell in integer Spell Ability 2 would be the second level of that spell(But it has to be a new spell, being an upgraded version of the first) Remove Spell 1 would remove the level 1 spell from the hero. Else is for if the hero doesn't have that skill prior to getting the item. Or you could create new items for new spell levels Keep in mind this certain template is for a spell with 2 levels |
| 08-03-2004, 02:14 AM | #6 |
I got most of it up until herolevel and required level. Just to be sure can you look it over for me? |
| 08-03-2004, 02:23 AM | #7 |
Here it is, although the ability didn't ever work, and I won't bother to change it |
| 08-03-2004, 02:30 AM | #8 |
well if u can can you leave a demo of how do to with like 2 or 3 level skills? |
| 08-03-2004, 02:41 AM | #9 |
Here it is, a quickly made multi-level spell template for your system. :D |
| 08-03-2004, 02:50 AM | #10 |
thanks alot, although crit strike appeared in my guys abilitys ROFL |
| 08-03-2004, 02:53 AM | #11 |
Yeah, morphing spells are confusing :( |
| 08-04-2004, 01:32 AM | #12 |
actually the best way to do it i have found is using engineering upgrade ability... you can find vexorians test map in the repository. it allows you to purchase spells that go into your her abilityies thing ( the red plus sign thing, it appears in there ) i find the system is brilliant and am using it in a majority of maps i am making. i have made a map using the same system in which you control an archmage and a paladin. and before them is 2 tomes... a tome of archmage and a tome of paladin... each one provides the hero spells to the player. i will attach it once i get home. (atm i am at skool) |
