Ryandor.com

Forums
It is currently Thu Jul 03, 2025 8:04 pm

All times are UTC - 7 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: making new scripts ??
PostPosted: Sat Feb 08, 2003 9:52 pm 
Offline
Journeyman
Journeyman
User avatar

Joined: Thu Jan 09, 2003 10:47 pm
Posts: 95
Location: Australia
I was wondering what the best way to make custom scripts was.

For example; I want to make a few new custom forests. But I wanted to use an unused Dragon color (e.g. no draw 0 ) and have it place a forest ground tile and dragonsp place the new forest.

What I needed to know was if dragonsp would just see another ?forest tile?, get confused, and do all forests the same?

Or would I have to use a forest ground tile that has not been used in the scripts yet? Not that there are any.. really :?

So I guess I?m asking just what does dragonsp really see?

_________________
Dragonfire
http://www.tragena.net
New screen shots added! :)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 09, 2003 5:04 am 
Offline
Site Admin
Site Admin
User avatar

Joined: Sun Jun 02, 2002 8:01 pm
Posts: 1473
Location: CO, USA
This may shed some light into this.
http://www.ryandor.com/phpBB2/viewtopic.php?t=545
You really don't need to make new colors for this, although you can.

-Ryandor


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 09, 2003 4:10 pm 
Offline
Journeyman
Journeyman
User avatar

Joined: Thu Jan 09, 2003 10:47 pm
Posts: 95
Location: Australia
Hmmm it may just be too early in the morning, but no that didn?t seem to help much mate :? thanks anyway..

Let me try and explain a little better.
What I want to do is have a new color and be able to paint the forest where I want it.
What I was thinking was a new pine forest. I want to paint it on snow. It would have snow for its ground tile (not the normal forest tile).

So would I have to use a previously unused snow tile so dragonsp would recognize it from normal snow? Or am I thinking about this all the wrong way??

_________________
Dragonfire
http://www.tragena.net
New screen shots added! :)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 09, 2003 4:48 pm 
Offline
Not your daddy
Not your daddy

Joined: Mon Nov 18, 2002 2:18 am
Posts: 1224
Location: Oregon State
Basicly, you have a couple options there... You could run your area a couple times, once with your pine forest in the snow, and once without the pine forest in ght snow. then clear the areas out by melting areas, and removing trees, etc.. bla bla bla.. yes, that is a lot of work.

two, you can use a second dragon setup, (I recomend this so you can revert back to the default Dragon scripts easily) and modify and edit your Groups, and mapTrans.txt files.

I did this same thing you talk about as matter of fact.. made 2 colors, one was the regular snow tile, default on Mod9 pallete, that i removed all the trees from, and another i took from I believe, cobblestone colors, and made them snow tiles. (in the mapTrans.txt) then in Items folder I simply copied the Alpine.txt, name it Alpine2.txt, edit any trees you want in there, and set the group in Items.txt to the once cobblestone color group, that is now Snow to place the items in Alpine2.txt
Complicated? probly sounds complicated, but with some trial and error, you will get the hang of this, and find it is very efective ;)

I might have lost myself in that description.. so if you got confused, I will try to re-explain it.. *scratches head*.. too many things i am trying to do atm..

_________________
Forget what you know, know what you forget.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 09, 2003 5:52 pm 
Offline
Site Admin
Site Admin
User avatar

Joined: Sun Jun 02, 2002 8:01 pm
Posts: 1473
Location: CO, USA
Ok, I think we're missing the point. Let me explain clearly, unlike some of my other ramblings.
Here's an exampel map:
Image
For simplification, we'll assume the grid marks off in 10 pixel (tile) increments.

As you can see we have 2 areas of forest, and two areas of desert. I want to have each of the forests different, and I also want each of the deserts different. I'v made my scripts forest.txt, forest2.txt, sand.txt and sand2.txt the way I'd like for them to be.

Now to make them active. In the items.txt file:
Code:
01 0150 0080 0020 0130 0060 forest.txt
01 0100 0170 0030 0230 0090 forest2.txt
05 0015 0180 0100 0220 0140 sand.txt
05 0050 0120 0100 0180 0150 sand2.txt


You can see I didn't have to make special colors to acieve this. I just defined the areas I want the script file to apply to. It's really that simple. Follow the comments in the items.txt file to figure out how to put in the coords. The trail and error I was taking about is if the scripts aren't dense enough or are too dense. In that case you can just change the second number of each line to adjust the density.

Now there is a catch to all this. You cannot have any areas overlap. This means the more complicated your areas you want to define are, the more work you'll have to do. But you can reuse each script however many times you need by just making a copy of the script you want and renaming it (I just add a number).

I hope this clears up how this works. Please, if there's any more questions, reply.

-Ryandor


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group