• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Buy spell from neutral faction?

Status
Not open for further replies.
Level 1
Joined
Nov 20, 2007
Messages
3
Well, I am working on my own map, and I wanted an "vendor" to sell upgrades. The only thing is that I only want ONE of them on my map, and is then in need of an neutral faction to sell it. How would I go about doing this? How can I make it sell upgrades/spells?

What would I have to edit to make this work?

I tried to search, but I was unable to find anything. If this has been asked and/or answered before, please post link to that thread, and a mod close this thread or something.
 
Last edited:
Level 3
Joined
Nov 11, 2007
Messages
50
This can't be done without Jass scripting for all I know... Triggers require that there be unit capable of researching the upgrade for the team, an upgrade can not simply be applied. You might need to add a building for each player...
 
Level 1
Joined
Nov 20, 2007
Messages
3
THanks for an reply.. Was starting to getting afraid I wouldn't get an answer...

Jass scripting.. This is actully the second time I heard about it, the first when I browsed this forum earlier... Gotta check it out.

Thanks!
 
Level 3
Joined
Nov 11, 2007
Messages
50
good luck! I'm staying out of JASS for now myself, a scripting language always takes a while to learn how to use correctly.
 
Level 3
Joined
Nov 11, 2007
Messages
50
yea, thats what I thought when I first saw the post, but I'd never done it before so I opened the map editor to check... turns out the closest you can get is issue a train/upgrade order... and that would require that the player has a building to perform the upgrade. thus making the goblin merchant a useless middle man.
 
Level 1
Joined
Nov 20, 2007
Messages
3
So.. An trigger that activates when an player gets an item..? That sounds smart actully... Gotta test that out.
 
Level 6
Joined
Apr 28, 2005
Messages
155
Oh, that's funny...

  • Upgrade Vendor AR
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to TomeDummy Andrenaline Rush
    • Actions
      • Player - Set the current research level of Andrenaline Rush to ((Current research level of Andrenaline Rush for (Owner of (Triggering unit)) + 1) for (Owner of (Triggering unit))
Whereas "Tomedummy Andrenaline Rush" is the ability of a tome that is used when aquired. You can also use the "aquires item" event, I think. But of course change the condition.

You can also store the abilities and upgrades in integer arrays, thus only needing 1 trigger for all upgrades. If you don't know how I could type it out for you. It's pretty easy.

(oh and this trigger leaks, search for "Memory leak" if you dont know about it)
 
Status
Not open for further replies.
Top