HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Item Spinner

10-31-2008, 02:17 PM#1
RolePlaynGamer
Hey there.

This is an utility, made for my current project. You can easily modify it by attaching any kind of model to it, so you can have good looking items on the ground.

Please give credits if used. You are allowed to change this to suit your own needs.

Making the spinner work - Magos


1. Open Magos model editor.
2. Open the item spinner.
3. Go to Windows --> Node Manager.
4. Find the Chest Ref attactment point.
5. Change the path to the path of the model you want to attach (Peasant is the default path).
6. Save the file.
7. Import it into your map.


Making the spinner work - Notesblok


1. Convert the model to .mdl format.
2. Open the model with a text editor like Notesblok.
3. Scroll down to the button and then a little up, untill you see this:
Code:
Attachment "Chest Ref" {
	ObjectId 9,
	Parent 0,
	Path "units\human\Peasant\Peasant.mdx",
4. Change the path (buttom line) to the path of the model you want to attach to the spinner.
5. Save the model and convert it back to .mdx.
6. Import into your map.



It's a model where you can add any model you have in your map, and the spinner will take care of everything itself. Ofcourse you can also add models already in the Warcraft III mpq.
It works in the way, that you attach a model to the only attachment point it has. This is easiest in Magos or Notesblok, but you can also do it ingame, to save alot of map size.

Collapse JASS:
native AddSpecialEffectTarget takes string modelName, widget targetWidget, string attachPointName returns effect
This should work fine, but you should store the effect in a variable so that you can replace it later. Remember to use chest as attachment point!

EDIT: Removed.
Attached Images
File type: jpgItemSpinner.jpg (612.7 KB)
11-01-2008, 07:38 AM#2
deolrin
Very nice! Could come in handy. +Rep.
11-01-2008, 11:15 AM#3
Emm-A-
Hey, thanks so much.

This is realy great for people like me.

Greets
11-04-2008, 09:21 AM#4
Tide-Arc Ephemera
Not that I'll be able to use this, I still quite haven't grasped the idea of what this is.
11-04-2008, 10:01 AM#5
Rao Dao Zao
It's a utility model that anyone can edit to quickly and easily create ground item models based on generic attachments.

Quite convenient.

It could well be more of a 'tutorial' than an item submission, though.
11-04-2008, 10:04 AM#6
Tide-Arc Ephemera
Ah, so to clarify... it's not an attachment thing, it's more like a model edit template to get those rotating items?
11-04-2008, 12:58 PM#7
RolePlaynGamer
Yes, it's a model where you can add any model you have in your map, and the model will take care of everything itself. Ofcourse you can also add models already in the Warcraft III mpq.
It works in the way, that you attach a model to the only attachment point it has. This is easiest in Magos or Notesblok, but you can also do it ingame, to save alot of map size.

Collapse JASS:
native AddSpecialEffectTarget takes string modelName, widget targetWidget, string attachPointName returns effect
This should work fine, but you should store the effect in a variable so that you can replace it later.
11-04-2008, 02:49 PM#8
Rao Dao Zao
The problem with adding it in-game via special effect is that the actual item won't appear in this model's portrait; also, special effects don't work on items at all?
11-04-2008, 03:40 PM#9
RolePlaynGamer
The function takes widget, so it should work fine.. At least as far as i know. =/
11-05-2008, 01:22 AM#10
Rising_Dusk
Quote:
Originally Posted by Rao Dao Zao
The problem with adding it in-game via special effect is that the actual item won't appear in this model's portrait; also, special effects don't work on items at all?
These are all quite true and raise an interesting point --
Quote:
Originally Posted by RolePlaynGamer
The function takes widget, so it should work fine.. At least as far as i know. =/
Are your in-game screenshots taken with items as the widgets in question or units?
11-05-2008, 04:03 PM#11
RolePlaynGamer
The screenshot is taken in my ORPG, and those item are model edits.

I didn't test if the function works, but maybe a H2Item/W2Item could do the job? =0
01-16-2009, 07:01 PM#12
Rising_Dusk
Is there any way you can either elaborate better the means to make this work or provide a demo map with examples on how to make it work? It seems to be a utility model, which is cool and could be useful, but I really am not sure from your explanations thus far what it actually is intended to do.
01-17-2009, 09:02 AM#13
RolePlaynGamer
Okay, I will make some kind of demo map.

Edit:

I've included the test map in the .rar file.
02-01-2009, 05:34 PM#14
Rao Dao Zao
So, Dusquo and I have decided that this isn't really a model -- but it is a resource.

So it's approved... But to the MDL editing board!
07-08-2009, 05:23 PM#15
KepTiN
This is a very useful resource, but I have two questions:
The attachment models I added to your spinner are tilted downwards or upside down, is there any easy way to make them parallel to the ground in the Magos model editor?

Also is it possible to only have the model spin without the sparkling effect?