Tutorial Make vendors able to sell ability scrolls (For RPG's)

Extremedesyr

New Member
Reaction score
6
Hello, I think you might find this post interresting only if you are new to the world editor, but you might never know who needs it. well, the title says all for this tutorial: How to make a vendor sell skill scrolls?

well, to start off we need an Upgrade, the ability that needs to be learned, a vendor (In case you dont know how to make a vendor, i'll explain), an item and a short trigger.

Starting off with the ability ofcourse, I believe thats pretty easy, go to Object Editor > Abilities and then right click on the list to the left of the window and select new custom ability, select a base ability and then customize it to be the way you want it to be. make sure you uncheck both Hero ability and Item ability so that they are both false

Then the upgrade, go to Object editor > Upgrades and make a new upgrade the same way you made a new skill and make the base upgrade defend, and then customize it the way you want to customize it.

then the Item (Scroll) Object Editor > Items and make a new custom item, using Tome of Strength your base item, and then remove the Ability thats all the way up, further you can customize it the way you want it to be (Description, icon etc)

Last thing we need to make is a vendor. Go to Object editor > Units, make a new custom unit using Neutral > Campaign > Male 2 (Or wichever unit you want to use, as long as it is Neutral and make sure you remove all abilities again) then add the following abilities (As for the RPG, where you go to the vendor with your hero) Double click Abilities and the click Add ability, first add Select hero, then add Shop Purchase item (Only if you want the vendor to be able to purchase items off your hero) Then add Invunerable (Neutral)(Only if you want the vendor to be invunerable) and last but not least, add Sell Items.

Now go to the hero (/ unit) that you want to learn the ability, and Double click Abilities - Normal click add ability, in the new window chance All to Custom and select your custom ability.

then once again go to abilities, and select your custom ability. double click requirements, then click Add Tech Item, change unit into upgrade, and select your custom ability then press ok.

last thing you want to do in the object editor is to go to object editor > units, select your vendor, scroll all the way down and double click on Techtree - Items sold. select your custom item, and click ok.

now leave the object editor and go to the trigger editor, make a new category and a new trigger. as for the GUI Script enter this:
Trigger:
  • Events
    • Unit - A Unit Acquires an item

Trigger:
  • (Item type comparison)
    • (Item-type of (Item being manipulated)) Equal to (your custom item)

Trigger:
  • Actions
    • Player - Set the current research level to 1 for (Owner of (Hero manipulating item))
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top