Scripting question (involving positions)

Jaden

New member
Elder
Joined
Sep 8, 2006
Messages
258
Okay, so I have this script (ripped off from a BW1 mod) and I can't seem to call it.

I thought it should be like...

run background script RockMother({1009.86,16.26,1519.62})

But I get an error...

error near token ")": parse error, expecting `T_POSITION' or `O_PLUS' or `O_MINUS' or `O_DIVIDE'

How do I use positions when calling a function... thing?
 
Is the error in the main script or in the RockMother script?

IN BW2 a position for a script is called as such.

Code:
run background script RockMother(marker at{1009.86,16.26,1519.62})
 
Yeah, I figured it out xD  It was that.  Thanks though :0

But now I have another problem...

Is there any command that would resurrect a dead villager, or would I have to delete the villager, and create another identical one? (I don't know how to do that either, lol ;; )  I'm looking through the help files now, but I don't see it anywhere.
 
Yes, I think you need to delete the original villager and the create a new one in it's place.
 
I think so too, because I can't change their health when they're dead :(

Edit: Actually, to make sure, I tried changing the health of a living villager to 0 and nothing happened :(

Edit 2: Also, the say "string here" thing crashes the compiler ;;[br][br]Added: [time]1212214095[/time]Okay, apparently I used the wrong script name and I didn't know it, so my code never executed ^^;;  Still can't figure out how to bring the dead back, but at least I cleared that up :0[br][br]Added: [time]1212237537[/time]lol what

In the siren script (I'm adding the epic miracles to my map now)...

Rock1 = create MOBILESTATIC BOULDERROUND at hand position

... doesn't work.  I might just have an old version, so I'm gonna look for the correct names, but :([br][br]Added: [time]1212237714[/time]You know.

When I unstuffed the BW2 files it said at hte end two files couldn't be written or something (it didn't list what, so I did nothing)

Would that explain why "say" doesn't work?  It just crashes the compiler.
 
I thought that I saw something about it it at one time. But I can't find it in the documentation either.

Also, the say "string here" thing crashes the compiler

That's normal. It does compile it properly. And then crashes when it's done.
If you haven't done so, copy the bw2text.bin file from the Data\Text folder into the Script Compiler folder.
 
Okay, that did it.

Before I copied it, the compiling never finished.  But now it does, thanks XD

Also, I found out what the problem with the Siren script (was in the BW2 script library) was
Should be:
Rock1 = create SCRIPT_OBJECT_TYPE_MOBILE_STATIC MOBILE_STATIC_INFO_BOULDER_ROUND at hand position

Edit: Look who has ANOTHER stupid question! =D

... I can't find anything about visual effects ;;  I mean, I know how to create them in the editor, and I know how to call pre-made ones, but I can't find a list of the pre-made ones or how to add one from an external file (I assume you have to do that to be able to use a custom one in-game)

I tried searching the entire BW2 directory, the only mention of the ones I knew already were in the epic scripts ;;
 
Daxter wtote a tutorial on creating custom Visual Effects. I think there's a copy of it in this firum.

For the premade visual effects they are listed in one of the enums. I just added a script which 00din wrote to the script libray. This will allow you to cycle through all of the visual effects. Because of the scale of some of them, you might not see all of them properly, if at all.

http://www.bwfiles.com/scripts/index.php?action=file&id=46
 
I don't get it, though =/  How do I use custom effects from within a script?

I don't know how to load the effect unless it's one of the ones in that script you put up. (that helps, though, and I found the enums file with it now)
 
For the custom effects, maybe Daxter can help. I did find that tutorial on creating them.

http://www.bwfiles.com/boards/index.php?topic=1868.0

For the pre-made ones use something like this:

Code:
Vis = create visual effect VISUAL_EFFECT_GEYSER_LARGE at {629.24,64.26,1094.44} time -1
 
Hey first of all I have noticed that you have come across a little problem with enumerations in the epics. Sorry about that, when I was revising them I must have used abbreviations that I use now instead of complete names so I'll correct that problem.

Second, after some searching and stuff, I have found that while you can create visual effects in the landscape editor they don't seem to work in game and usually crash the game without an error.
 
... lol o_o

That's kinda weird, I wonder why they have it then.
 
Yes I know it is strange but on one occassion we were discussing LH's tools and Kays at one point said that because of copyright some of these were removed and I believe the Landscape Editor was probably had more to it then already, therefore the crashing issue occurs because something is missing from the editor or some other part of the game.
 
Oh.

So wait, this is the stuff they used while actually making BW2?  I assumed they just came up with a new version to release to the public (like a lot of game companies do)
 
Yes, it's more or less the same tools that were used to put BW2 together originally.  Only thing is that it's been ported from a server version to a stand alone version. As Daxter mentioned some of it couldn't be added because of copyright reasons and I suspect that not everything was properly ported over.
 
Back
Top