• 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.

[General] Smithing / Crafting or whatever you call it :3

Status
Not open for further replies.
Level 11
Joined
Oct 31, 2010
Messages
1,057
So i was making a feature for my rpg again and this time it is smithing / crafting as shown below \/\/\/
attachment.php


now the problem is that the icons are destructibles and i cannot make the game detect player selecting the destructible.....is there any way to go around this or do i have to make the icon models a unit??
 

Attachments

  • Hard....PNG
    Hard....PNG
    169.3 KB · Views: 373
Level 28
Joined
Jan 26, 2007
Messages
4,789
  • Begin Crafting
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Animate Dead
    • Actions
      • Camera - Apply Camera 001 <gen> for (Owner of (Triggering unit)) over 0.00 seconds
      • Camera - Lock camera target for (Owner of (Triggering unit)) to camDummy, offset by (0.00, 0.00) using Default rotation
The variable "camDummy" is a unit variable set up at map initialization, like this:
  • Set tempLoc = (Target of Camera 001 <gen>)
  • Unit - Create 1 Footman for Player 1 (Red) at tempLoc facing Default building facing degrees
  • Set camDummy = (Last created unit)
  • Custom script: call RemoveLocation( udg_tempLoc )
(It's so players can't move their screen around anymore, I prefer a global dummy for this instead of having to create/remove one constantly).
 
Level 11
Joined
Oct 31, 2010
Messages
1,057
nonononono, like i said, i do not want the hero to cast the ability, i want the player to click the furnace and the furnace uses the ability...

heres a picture book :3
Firstly, the unit.
attachment.php

Secondly, the unit clicks the furnace and clicks the furnace ability "smithing"
attachment.php

Thirdly, show the unit the area
[hidden="smithing 3"
]
attachment.php
[/HIDDEN]

how do i do that for multiplayers :3? help please :grin:
 

Attachments

  • Smithing 1.PNG
    Smithing 1.PNG
    1.3 MB · Views: 249
  • Smithing 2.PNG
    Smithing 2.PNG
    1.4 MB · Views: 266
  • Smithing 3.PNG
    Smithing 3.PNG
    565.2 KB · Views: 246
Level 28
Joined
Jan 26, 2007
Messages
4,789
@ap0calypse

i have a question, how do we make the camera unscrollable ?
i did something like that but the result screwed when i scroll the mouse.
Making the camera unscrollable isn't possible. The best thing you can do is periodically (every .03 seconds or so) reset the camera angle.

nonononono, like i said, i do not want the hero to cast the ability, i want the player to click the furnace and the furnace uses the ability...
You can make the furnace a shop that sells a dummy tome (which will be the "Craft"-icon).
When the tome is sold, move the buying player to the crafting menu.

  • Crafting
    • Events
      • Unit - A unit Sells an item (from shop)
    • Conditions
      • (Item-type of (Sold Item)) Equal to Craft Menu
    • Actions
      • Item - Remove (Sold Item)
      • Camera - Apply Camera 001 <gen> for (Owner of (Buying unit)) over 0.00 seconds
Something like that.
 
Status
Not open for further replies.
Top