a couple questions about entities
Displaying 1-4 of 4 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Technetium

I took a look at the darin.mak that came with the new package, and I can't seem to find a way to specify the hotspot area. I want to create 64x64 chrs where the bottom-right 32x32 is the hotspot for the purposes of triggering zones and obstructions (and placing the entity when generated in vc). How would I do this? The reason I want to do this is that I want to have chrs that appear to be 32x64 (same proportions as the old default, but double the resolution), but have a "dead" frame where I can have the character appear to be lying down horizontally, so I don't have to try and squish that into a frame the same shape as the standing frame.

Second question: Do you guys know yet if there will eventually be a way to set a script for vc-generated entities? Something like: setscript(int entityreference, string scriptname). I didn't see anything like that listed in the current documentation, but you do have stuff for setting wander areas and even changing the .chr file of the entity, so it seems like this would be there eventually, if it isn't already. In case it unclear, by "script" I don't mean a movescript; I mean a function that would be triggered when the entity is activated by the player.

Posted on 2004-04-06 01:37:28

vecna

First question:

You're right, the included .MAK file did not demo all the MAK commands. They shouldve been included in the doc. But. hot_x, hot_y, hot_w, and hot_h would do what you're looking for.

Second: You're right that it isnt presently in and that it would make perfect sense to add. I will put it in the next build.

Posted on 2004-04-06 02:43:24

KilloZapit

Hay, on the subject of entities and scripts, would there be anyway to return the script too (as a sting for CallFunction)? Also slightly related: I would like a way to return the description sting you can set in Maped? I would like a place to put a function name in an entity that I can read when the map starts that sets the entity's properties. I kind of wish entities used a keyword system like quake so I could just plug in arbitrary values right in maped... Oh well. Specking of Maped: What? No brushes?

Posted on 2004-04-06 05:51:02

vecna

Brushes are planned for maped. For now you just have the copy/paste system, which is still a lot nicer than what maped2 had.

You're right about the names too. Right now there's not a mechanism for library string variables (a library function can return a string, but not a variable - using a function would work but would be inconsistent, interface wise), which is something that was already high on my todo list. Once I add that, I will be adding variables to get entity scripts, names, map name/desc, zone descs, etc.

Posted on 2004-04-06 13:17:17


Displaying 1-4 of 4 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.