BW1 Map scripting help

SkelApe

Member
Elder
Joined
Nov 10, 2007
Messages
651
Hey everyone, I've made a map on the dance.lnd island (the small one) featuring two temples and an enemy creature. All else is working but instead of generating a bear as I've included in the script an ogre is created (not at the specified location) and crashes my game shortly after. Can anyone spot any problems in the scripting?

Code:
rem --------------- DOOM ISLE SCRIPT ---------------
rem --------------- MISCELLANEOUS ---------------

VERSION(2.300000)
SET_LAND_NUMBER(0)
LOAD_LANDSCAPE(".\DATA\LANDSCAPE\dance.lnd")
START_CAMERA_POSITION("2551.40,2701.17")
SET_TOWN_INFLUENCE_MULTIPLIER(1.0000000)
SET_PLAYER_INFLUENCE_MULTIPLIER(2.0000000)
SET_NIGHTTIME(1000.000000, 0.230000, 0.170000)

START_GAME_MESSAGE("Doom Isle", 0)
ADD_NEW_GAME_LINE("A small island for quick and easy Creature fights", 0)

rem --------------- PLAYER RELATED ---------------

rem --------------- NEUTRAL ---------------
CREATE_TOWN(1, "2556.19,2676.76", "NEUTRAL", 0, "CELTIC")
CREATE_SPECIAL_TOWN_VILLAGER(1, "2555.19,2690.76", 70, 18)
CREATE_POT("2556.11,2741.23", 18, 0, 50000)

CREATE_SPELL_DISPENSER(1, "2556.10,2709.33", "GREEK_ABODE_SPELL_DISPENSER", "CREATURE_SPELL_BIG", 0, 1.0, 1)
CREATE_SPELL_DISPENSER(1, "2557.10,2691.12", "GREEK_ABODE_SPELL_DISPENSER", "FOOD_PU1", 0, 1.0, 1)


rem --------------- PLAYER ONE ---------------

CREATE_CITADEL("2508.73,2697.07", 0, "PLAYER_ONE", 2000, 1000)

rem --------------- PLAYER TWO ---------------

CREATE_CREATURE_FROM_FILE ("PLAYER_TWO",9, "LethysCreature", "2558.10,2707.33")
TOGGLE_COMPUTER_PLAYER("PLAYER_TWO", 1)
CREATE_CITADEL("2598.36,2680.60", 0, "PLAYER_TWO", 4800, 1000)

 
 
 
 
I am currently on a laptop without BW1 installed - however, I believe you are missing aditional lines that call the creature, and give it an owner.

The line you are missing (from memory) is SET_CREATURE_LIKE ("PLAYER_ONE")  - or something similar.
also, I believe you need to call the creature after the player is created. You are calling the creature before you call player two.
An alternative would be is to give the creature to the NEUTRAL faction - in which case you can test if it does have to do with the player, or the location in the script


also, add a space at this line;
The space is after "PLAYER_TWO",
Code:
CREATE_CREATURE_FROM_FILE ("PLAYER_TWO", 9, "LethysCreature", "2558.10,2707.33")
 
   I don't have Dance.lnd, but using this on another land, the only problem I had was the space after CREATE_CREATURE_FROM_FILE.

   The line is
CREATE_CREATURE_FROM_FILE ("PLAYER_TWO",9, "LethysCreature", "2558.10,2707.33")

   But should be
CREATE_CREATURE_FROM_FILE("PLAYER_TWO",9, "LethysCreature", "2558.10,2707.33")


   It is possible that dance.lnd has something to do with it.

-ego533
 
 
Back
Top