PDA

View Full Version : What's wrong with this script


Thilock_Dominus
April 16th, 2004, 06:28 AM
Okay, I'd never been great for scripting but what am I missing in this script to get it to work? Every time I starting Dom2 up it exiting before I can get to the menu.

The script:
#modename "Miasma Marsh rider"
#description "Miasma Marsh rider mod adds lizard cavalry to the Miasma theme plus a riding hero."
#Icon "Miasma Marsh Riders.tga"
#Version 0.05
#domVersion 2.11


#newmonster 2000
#name "Marsh Rider"
#spr1 "stand.tga"
#spr2 "attack.tga"
#descr "The Marsh Rider are fearsome warriors"


#ap 23
#mapmove 3
#hp 25
#prot 5
#size 3
#str 15
#enc 1
#att 12
#def 14
#prec 12
#mr 12
#mor 14
#gcost 80
#rcost 20


#weapon "28"
#weapon "10"
#weapon "127"
#weapon "167"

#armor "7"

#coldblooded
#poisoncloud 6
#poison armor
#poisonres 100
#swampsurvival
#goodleader
#poormagicleader
#poorundeadleader

#end


#selectnation 5

#addrecunit "Marsh Rider" 2000
#end


<font size="2" face="sans-serif, arial, verdana">

Yossar
April 16th, 2004, 06:37 AM
#modename "Miasma Marsh rider"

There's one obvious problem.

Thilock_Dominus
April 16th, 2004, 06:41 AM
I know I can't adding it to the Miasma theme yet, but for time being am adding the new unit to all C'tis. I don't think the modname would make the crashes.


Thilock

Kristoffer O
April 16th, 2004, 06:43 AM
#modename should be #modname

#addrecunit "Marsh Rider" 2000 should be #addrecunit 2000 IIRC

Thilock_Dominus
April 16th, 2004, 06:46 AM
aaaahhh...thanks http://forum.shrapnelgames.com/images/icons/icon7.gif