• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Buy spell from neutral faction?

Status
Not open for further replies.

H1GhL0Rd

H

H1GhL0Rd

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 by a moderator:
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...
 
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!
 
good luck! I'm staying out of JASS for now myself, a scripting language always takes a while to learn how to use correctly.
 
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.
 
So.. An trigger that activates when an player gets an item..? That sounds smart actully... Gotta test that out.
 
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.
Back
Top