• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • ✅ HD Level Design Contest #1 POLL is now OPEN! Check out the stunning visuals of the final entries. 🔗Click here to cast your vote!

The Black Road Spell Uppgrade System

Status
Not open for further replies.
Level 2
Joined
Jun 26, 2007
Messages
11
Hi,

I'm working on a new RPG. I've done all the terrain, units and spells. However, I need a system to uppgrade the spells. I've played TBR (The Black Road http://www.theblackroadrpg.proboards102.com/) And I thought the system they use in that map is kewl. So I tryied to make a system like that on my own. My system didn't work at all though. That's why I ask the people on hive.

So, for those who haven't played TBR. You buy an item in a shop e.g. "Uppgrade Spell - Level 2" When you click on that item in your inventory an dialog box will appear on the screen. With the title e.g. "Select Skill" Then there'll be buttons with the name of each spell you can uppgrade. Then you just click on one of the buttons and BAAAM your spell is uppgraded to level 2.
One more important detail is that you can't uppgrade a spell from level 1 to 3. You have to buy the level 2 book then the level 3 book.
If you don't quite understand me, look at the picture below.


Thank You in Advance:grin:
 

Attachments

  • WC3ScrnShot_022708_143701_01.jpg
    WC3ScrnShot_022708_143701_01.jpg
    107.1 KB · Views: 143

Ice

Ice

Level 10
Joined
Sep 4, 2004
Messages
153
First set up your heros abilitys to a variable:
Make a variable called spells or abilitys and give it an array of 4 per player

  • Event:time elapse: 1sec
  • Condition:N/A
  • Action:
  • Set (ability(1)) to BlackArrow
  • Set (ability(2)) to BladeStorm
  • Set (ability(3)) to Avatar
  • Set (ability(4)) to Critical Strike
  • 2nd step make a dialog box for the item
  • Make 2 variables a Dialog call is lvl2spells and dialogbutten called abilitys2 with array of 4
  • Event: Unit (uses an item)
  • Condition:ItemType of (Item being manipulated) is equal to (book of Spells lvl.2)
  • Action:
  • Dialog:clear Dialog
  • Dialog:Create dialogbutten for Spells labelled (Name of (ability(1))
  • Set (abilitys2(1)) to (last created dialogbutten)
  • Dialog:Create dialogbutten for Spells labelled (Name of (ability(2))
  • Set (abilitys2(2)) to (last created dialogbutten)
  • Dialog:Create dialogbutten for Spells labelled (Name of (ability(3))
  • Set (abilitys2(3)) to (last created dialogbutten)
  • Dialog:Create dialogbutten for Spells labelled (Name of (ability(4))
  • Set (abilitys2(4)) to (last created dialogbutten)
  • Dialog:change the title of spells to Ability upgrade lvl.2
  • Dialog:Show Spells to (Owner of triggering unit)
  • Step 3 setup the buttens to spells
  • spell1 Copy
    • Events
      • Dialog - A dialog button is clicked for Spells
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to dialogbutten[1]
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of ability[1] for Blood Mage 0009 <gen>) Equal to 1
            • Then - Actions
              • Unit - Set level of ability(1] for (Triggering unit) to 2
            • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to dialogbutten[2]
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of ability[2] for Blood Mage 0009 <gen>) Equal to 1
            • Then - Actions
              • Unit - Set level of ability[2] for (Triggering unit) to 2
            • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to dialogbutten[3]
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of ability[3] for Blood Mage 0009 <gen>) Equal to 1
            • Then - Actions
              • Unit - Set level of ability[3] for (Triggering unit) to 2
            • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to dialogbutten[4]
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of ability[4] for Blood Mage 0009 <gen>) Equal to 1
            • Then - Actions
              • Unit - Set level of ability[4] for (Triggering unit) to 2
            • Else - Actions
        • Else - Actions
and shouldnt this be in the triggers forum
 
Last edited by a moderator:
Level 2
Joined
Jun 26, 2007
Messages
11
Oh, thanks!

There is only one thing that won't work.
I'm not using a e.g. BloodMage 0009 I'm using a unit that will be created when the game is started. BloodMage 0009 have already been created in the editor. On the other hand, that maybe won't make any diffrence.

Thank You Ice

EDIT: "and shouldnt this be in the triggers forum" Well, I actually requested this spell. And that's why I posted this in the Requests forum.
 
Last edited:
Status
Not open for further replies.
Top