objects, NPCs, monsters etc.

All development of pixel art, maps and other graphics.


Post Reply
tobiasgall
Peon
Peon
Posts: 35
Joined: 08 Mar 2006, 17:23
Location: Germany
Contact:

objects, NPCs, monsters etc.

Post by tobiasgall »

Hi, I have a suggestion for the handling of all kind of non-player stuff in tmw.

I developed some small games with RPGMaker2000 some years ago, and I really liked the system how it works.

You build your world out of static tiles (some non-animated and some animated, but they all don't move). Then, you add objects.
Objects are:
- destroyable things
- things that are moving
- monsters
- NPCs
- doors
- ...

Each of those objects has it's own script. Other things you could control for each object:
- solid? (yes / no)
- moveing? (no, random, left, right, up, down)
- script (something like below)

In the script part, you could e.g. define something like the following:

Code: Select all

if(money < 500) {
    showimage("BADSMILEY", "badsmiley.png", 10, 10);
    messagebox("You don't have enough money for the shop.");
    deleteimage("BADSMILEY");
} else {
    showshopscreen();
}
This would be predefined keywords, which create a window or something.

The advantages are:
- a mapper has much power, without destroying something
- the system is simple to use (and good to document)
- scripts are easy to understand / to modify / to share

Is something like that already planned? Or how do you want to handle walking NPCs and scripts?
It's nice to be important,
but it's more important to be nice!
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

Post by Crush »

we wanted to use ruby as a scripting language.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
Bear
Warrior
Warrior
Posts: 281
Joined: 01 Jul 2004, 19:09
Location: Computer
Contact:

re

Post by Bear »

hes talking about altering the Map editor, not the scripting language.
tobiasgall
Peon
Peon
Posts: 35
Joined: 08 Mar 2006, 17:23
Location: Germany
Contact:

Post by tobiasgall »

Ok, there will be a scripting language - that's nice!

You could have one editor where you can create scripts, build the map and set the object behaviour.

I don't know if placing NPCs / events is supported in Tiled.

But what I was supposed to say:
Will moving NPCs, monsters etc. be handled as events, or do they each have a special handling?

In RPGMaker, each NPC, monster etc. is an "object". And you can change the object's properties, so you can speak to it, fight it (maybe you could define the health. 0 = not fightable), etc.
It's nice to be important,
but it's more important to be nice!
User avatar
Rotonen
TMW Adviser
TMW Adviser
Posts: 3154
Joined: 08 Sep 2004, 19:48
Location: Bern, Switzerland

Post by Rotonen »

I think no one has thought about implementing the NPC scripts in the map format so far. That would certainly make things simpler to edit, I think.
This message used to be meaningful.
User avatar
biggeruniverse
Peon
Peon
Posts: 42
Joined: 17 Sep 2005, 04:33

Post by biggeruniverse »

That's evil.
We are on the outer reaches of someone else's universe
User avatar
knivey
Novice
Novice
Posts: 187
Joined: 05 Mar 2006, 03:01

Post by knivey »

have those things together in one map file would make more sense to me
All your base are belong to us.
User avatar
Pajarico
Knight
Knight
Posts: 592
Joined: 28 Feb 2005, 19:29
Contact:

Post by Pajarico »

I vote for being sepparated. And I vote twice :wink:
I want people to be able to edit the scripts with a plain text editor without having to use tiled (which requires evil Java).
Lv.: Maggot
Please, read the FAQ before posting.
User avatar
Rotonen
TMW Adviser
TMW Adviser
Posts: 3154
Joined: 08 Sep 2004, 19:48
Location: Bern, Switzerland

Post by Rotonen »

Well we have a gzipped map format so we can just have the separate script file within the package.
This message used to be meaningful.
User avatar
Pajarico
Knight
Knight
Posts: 592
Joined: 28 Feb 2005, 19:29
Contact:

Post by Pajarico »

Rotonen wrote:I think no one has thought about implementing the NPC scripts in the map format so far. That would certainly make things simpler to edit, I think.
Well, you said "implementing the NPC scripts in the map format" that's why I opposed. I don't consider a gzipped file "a format" and thought you were suggesting to include the scripts in the tmx file. I know those are human-readable xml files but still I find it clumsy.
If you meant just havin gzipped with the tmx that could be a way to store things in order but again you have to ungzip the script to edit it and gzip it again with the update. Unless someone knows a editor which is able to edit gzipped files.
Lv.: Maggot
Please, read the FAQ before posting.
Post Reply