HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to create object merge scripts?

08-26-2009, 08:24 AM#1
Anachron
Hello there!

A few days ago I saw a very awesome system which required a few
new objects. It was a damage engine from this page. However,
I just asked how to make that object merge scripts with the data you need.

Is there any tutorial or information how to make that object merge
scripts where after saving the objects will be added which you have written?

It would help importing my spells and systems alot and I would have less work
importing and exporting them from my map, aswell!

Edit: So I found out that is was Grim Extension Pack which allowed this...
This is how far I got until yet.
08-26-2009, 11:36 AM#2
Rising_Dusk
Yes, there is a tutorial. It is built into JNGP. I have uploaded some pictures of how to get to it to this post.
Attached Images
File type: jpgNewGenReadme.JPG (33.3 KB)
File type: jpgNewGenReadme2.JPG (39.3 KB)
08-26-2009, 11:49 AM#3
Anachron
Yeah, I know, I read it, I firstly didn't knew the name so I just know that it merged objects, checked JNGP and yeah..


So how do I add a 10 level spell? I think there is not enough space to do that in one line.
08-26-2009, 12:13 PM#4
Rising_Dusk
Oh, there's enough space. You just want to replace the OE data field for levels 'alev' with 10.
Collapse JASS:
//! external ObjectMerger w3a ORIGINALSPELLRAW YOURSPELLRAW alev 10
You replace the capital letter raw areas with the original spell you want to base it on and the raw ID you want the objectmerger to give the custom ability you're creating. The alev followed by 10 fills the levels field with the value 10.
08-26-2009, 12:15 PM#5
Anachron
If so, I have to put all the descriptions of the diffrent ability levels into it, so it can easily be up to 2000 symbols. Is this possible?
08-26-2009, 12:20 PM#6
Rising_Dusk
Sure it's possible. In almost all cases, though, you'll never replace every field in the Object Editor. The defaults work fine for most. (If you don't put it in the OM call line, it assumes default value)
08-26-2009, 12:59 PM#7
Anachron
I decided to combine it with some text macros.

How can I swap it?
Had something in my mind with:
Collapse JASS:
// Ability Data
$somethingOnlyForTextMacro$ = value

// Rawcode-ID of base spell
// Rawcode-ID (this spell)
$somethingOnlyForTextMacro2$ = value

// Levels
$somethingOnlyForTextMacro3$ = value

//! external ObjectMerge $somethingOnlyForTextMacro$ $somethingOnlyForTextMacro2$ 

?
08-26-2009, 01:12 PM#8
Rising_Dusk
I am fairly certain that won't work. At all. I think textmacros are compiled after OM calls, in which case your code there would break utterly and completely.
08-26-2009, 01:14 PM#9
Anachron
So any way to swap the information used by ObjectMerge to get a better view of what I am importing?
08-26-2009, 01:41 PM#10
Rising_Dusk
Not unless there is some voodoo of which I am unaware.
08-26-2009, 02:00 PM#11
Anachron
Hmm,.. I might need help by Vex
08-26-2009, 02:04 PM#12
Rising_Dusk
Vex did not make the ObjectMerger, Pitzer did.
08-26-2009, 02:11 PM#13
Anachron
Hmm,,.. but Pitzer is inactive, or?
08-26-2009, 02:27 PM#14
Rising_Dusk
No, he is not. PM him. (Or you could have just checked his profile)
08-26-2009, 02:44 PM#15
Anachron
I did, missspelled his name, sorry.