What OS are you running?
In Windows7 I set up my .bat file like this...
"Script Compiler" -path "G:\Program Files (x86)\Lionhead Studios\Black & White 2\Tools\Script Compiler" -enumfile "G:\Program Files (x86)\Lionhead Studios\Black & White 2\Tools\Script Compiler\Enums.txt" -dbfile...
It almost seems like the fight system gets confused with more than 2 creatures.
I'm trying to figure out a way to stop other creatures from trying to fight while there's a fight going on, or something along those lines.
I've managed to get 5 creatures (for now) in my map which can be leashed and controlled only when certain coditions are met.
There seems to be a problem with the fighting system though.
When creatures try to fight each other they don't seem to be able to actually fight.
They stand too far apart...
Yeah, {pos} is defined... I've also tried it with a radius.
And I used 'if OreMine1 != 0' just because it starts out set to 0 so I figured it should work either way.
I'm really stuck on this one, and I see I'm not alone.
Maybe there's just no way to find a mine with a script???
I'm trying to...
I threw this loop in for testing...
begin loop
if OreMine1 != 0
increment tribute by 5000
MineCheckSuccess = 1
elsif OreMine1 == 0
wait 0.2 seconds
begin dialogue
say "Can't find the mine... damnit"
wait 2 seconds
close dialogue
clear dialogue
end dialogue...
Here's the main part of the script...
begin script OreMineTest
PlayerTown = get town with id 0
OreMine1 = 0
start
OreMine1 = get SCRIPT_OBJECT_TYPE_MINE at {pos}
TownTechLevel = get tech level of town PlayerTown //global variable
begin loop
if TownTechLevel == 0 and TechLevel0Set != 1...
I really want to be able to set the ore value in the mines using scripts.
The one I'm working on compiles, but doesn't do anything.
I'm pretty sure I tried what you suggested, but maybe I didn't, or did it wrong...
begin script OreMineScript
OreMine1 = get SCRIPT_OBJECT_TYPE_MINE at {wherever}...
I've been trying to do things with mines in a script, but haven't had much luck yet.
Anyone know of a way to set the ore amount of a particular mine with a script?
begin script OreMineScript
OreMine1 = get SCRIPT_OBJECT_TYPE_MINE at {wherever}
start
begin loop
if Whatever == Whatever
set...
Nice work!
I'm glad to see I'm not the only one getting to the party late.
I'll try to get some shots of my W.I.P up later tonight.
Still working on textures and scripts so it's not going to be "done" for a while.
I'm trying to stay focused... but I've also got the UDK to mess with...
B&W2 is a...
Thanks for the reply, but that's not quite what I wanted to know.
I know how to change it in the editor, but what I'd like to do is change the properties somehow in-game with a script.
All I could find in the documentation is 'get water height'.
I see that when you save water settings in the...