Thanks guys. Capitalizing everything seems to make the world happier with me. Now I have another problem(supprised?)
GVAR names don't need to be written using capitalization, but watcom precompiler is case sensitive so if you register global as
GVAR_Some_Var and then use it in script like that:
GVAR_some_var then it will not work(must be identical).
This script that you posted is ok.
Your problem must be in wrong script registration(same with GVARS).
BTW
111aman is a wrong filename in fallout (first letter must be nonnumerical value)
1) HOW TO REGISTER NEW SCRIPT
- Add your script filename in fallout/data/scripts/scripts.lst
Code:
CIMine.int ; Mines in Navarro # local_vars=6
niBisHLk.int ; New Reno Bishop Hard Locker # local_vars=1
niBisHDr.int ; New Reno Bishop Hard Locked Door # local_vars=6
ntRicRom.int ; New Reno Richard Wright Room Spacial # local_vars=1
aman.int ; New script for bla bla # local_vars=1
- Add your script NAME statement to headers/Scripts.h
Code:
#define SCRIPT_CIMINE (1300) // CIMine.int ; Mines in Raiders Cave
#define SCRIPT_NIBISHLK (1301) // niBisHLk.int ; New Reno Bishop Hard Locker
#define SCRIPT_NIBISHDR (1302) // niBisHDr.int ; New Reno Bishop Hard Locked Door
#define SCRIPT_NTRICROM (1303) // ntRicRom.int ; New Reno Richard Wright Room Spacial
#define SCRIPT_AMAN (1304) // aman.int ; ble ble blah etc
#endif // SCRIPTS_H
- Add name of the owner of this script to scrname.lst(you see this name in combat when script look_at_p_proc is not working)
Code:
{1400}{}{Mine} # CIMine.int ; Mines in Raiders Cave
{1401}{}{Locker} # niBisHLk.int ; New Reno Bishop Hard Locker
{1402}{}{Door} # niBisHDr.int ; New Reno Bishop Hard Locked Door
{1403}{}{} # ntRicRom.int ; New Reno Richard Wright Room Spacial
{1404}{}{Aman} # aman.int ; Blah blah blah
- Compile your script (Script MUST be compiled after registration to work)
- Don't forget to create fallout/data/text/english/dialog/aman.msg
All Done.
Ait is a rather dull work so you can always use
FSE.
- Open FSE and script that you want to register
- Press F7
- Enter object name and description
- Click OK
- Press F9 to compile your script
All Done
Now about global vars, you need to registr them too.
HOW TO REGISTER GLOBAL VAR
- Add your global var name to fallout/data/vault13.gam
Code:
GVAR_RESERVED_VAR56 :=0; // (689)
GVAR_RESERVED_VAR57 :=0; // (690)
GVAR_RESERVED_VAR58 :=0; // (691)
GVAR_RESERVED_VAR59 :=0; // (692)
GVAR_MODOC_JONNY_PIP :=0; // (693)
GVAR_NEW_RENO_FLAG_4 :=0; // (694)
GVAR_PATCH_INVAIDITATOR :=0; // (695)
GVAR_YOUR_VARIABLE :=0; // (696)
- Add your global var to headers/global.h (at end of file)
Code:
#define GVAR_CZAS_ZAMACHU (696)
#endif
DONE
FSE option for Lazy scripter
- Open FSE and script
- Chose Script->Add global variable from menu
- Enter variable name (without GVAR_ prefix)
- Click OK
DONE