System Skill Buying Items

PureOwnage

Minecraft Server OP, Inactive.
Reaction score
72
PureOwnage's Skill Buying Item System

Q: WTFBBQ is a Skill Buying Item System?????!!! :confused:
A: It runs off a spellbook which contain skills that buy items.

To add an item skill:
Code:
Buying Claws of Attack 15
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Claws of Attack +15 
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Owner of (Triggering unit)) Current gold) Greater than or equal to 800
            Then - Actions
                Hero - Create Claws of Attack +15 and give it to (Triggering unit)
                Player - Set (Owner of (Triggering unit)) Current gold to (((Owner of (Triggering unit)) Current gold) - 800)
                Special Effect - Create a special effect attached to the origin of (Triggering unit) using Objects\Spawnmodels\Other\ToonBoom\ToonBoom.mdl
                Wait 2.00 seconds
                Unit - Order Paladin 0001 <gen> to Hold Position
            Else - Actions
                Game - Display to (All players) the text: You do not have eno...
                Wait 2.00 seconds
                Unit - Order Paladin 0001 <gen> to Hold Position
That is one of my examples. As you can see, I check if the person has enough gold and give it and then subtract it from him.
The holding position is to stop the channeling (which looks weird)

To make the skill, just simply make a skill based off channel.
MAKE SURE YOUR BASE ORDER ID IS DIFFERENT THAN ALL OTHER SKILLS!


The spell book of course is already made and can be modified right in your Editor.

Please note that this map was NOT made in NewGen.
 

Attachments

  • Item Skill System - PureOwnage.w3x
    23.3 KB · Views: 194

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
it is an ok system, however you can easily change the shop buying and selling distances in the gameplay constants so a system like this isn't realy needed.

ps

Set Temp_player_group = Convert player to playergroup player number owner of triggering unit.

Game - Display to (temp_player_group) the text: You do not have eno...

Custom script: call DestroyForce (udg_temp_player_group)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top