Page 1 of 1

condition h and scripts

Posted: Tue Aug 16, 2022 3:02 am
by puffmancherrycake
right so condition h is telling me that there isnt a formal parameter 

/* Weapon And Armor */
#define COND018(x)              if (dude_is_armed) then\
#define COND019(x)              if ((obj_pid(critter_inven_obj(dude_obj, INVEN_TYPE_WORN)) != PID_LEATHER_ARMOR) and\
                                   ((obj_pid(critter_inven_obj(dude_obj, INVEN_TYPE_WORN)) != PID_METAL_ARMOR) and\
                              ((obj_pid(critter_inven_obj(dude_obj, INVEN_TYPE_WORN)) != PID_POWERED_ARMOR) and\
                                    ((obj_pid(critter_inven_obj(dude_obj, INVEN_TYPE_WORN)) != PID_COMBAT_ARMOR) and\
                                  ((obj_pid(critter_inven_obj(dude_obj, INVEN_TYPE_WORN)) != PID_LEATHER_JACKET) and\
                                      ((obj_pid(critter_inven_obj(dude_obj, INVEN_TYPE_WORN)) != PID_PURPLE_ROBE) and\
                                         ((obj_pid(critter_inven_obj(dude_obj, INVEN_TYPE_WORN)) != PID_BRIDGEKEEPERS_ROBE) and /*added by killap*/\
                                        (obj_pid(critter_inven_obj(dude_obj, INVEN_TYPE_WORN)) != PID_HARDENED_POWER_ARMOR) and\
                                        (obj_pid(critter_inven_obj(dude_obj, INVEN_TYPE_WORN)) != PID_BROTHERHOOD_COMBAT_ARMOR) and\
                                              (obj_pid(critter_inven_obj(dude_obj, INVEN_TYPE_WORN)) != PID_TESLA_ARMOR) and\
                                           (obj_pid(critter_inven_obj(dude_obj, INVEN_TYPE_WORN)) != PID_CURED_LEATHER_ARMOR) and\
                                            (obj_pid(critter_inven_obj(dude_obj, INVEN_TYPE_WORN)) != PID_ADVANCED_POWER_ARMOR) and\
                                           (obj_pid(critter_inven_obj(dude_obj, INVEN_TYPE_WORN)) != PID_ADVANCED_POWER_ARMOR_MK2) and\
                                           (obj_pid(critter_inven_obj(dude_obj, INVEN_TYPE_WORN)) != PID_LEATHER_ARMOR_MK_II) and\
                                           (obj_pid(critter_inven_obj(dude_obj, INVEN_TYPE_WORN)) != PID_METAL_ARMOR_MK_II)and\
                                           (obj_pid(critter_inven_obj(dude_obj,INVEN_TYPE_WORN)) != PID_COMBAT_ARMOR_MK_II) ) then\
#define COND020(x)              if (obj_pid(critter_inven_obj(dude_obj,INVEN_TYPE_WORN)) == PID_PURPLE_ROBE) then\
#define COND021(x)              if (obj_pid(critter_inven_obj(dude_obj,INVEN_TYPE_WORN)) == PID_LEATHER_JACKET) then\
#define COND022(x)              if (obj_pid(critter_inven_obj(dude_obj,INVEN_TYPE_WORN)) == PID_LEATHER_ARMOR) then\
#define COND023(x)              if (obj_pid(critter_inven_obj(dude_obj,INVEN_TYPE_WORN)) == PID_METAL_ARMOR) then\
//#define COND023(x)              if (obj_pid(critter_inven_obj(dude_obj,INVEN_TYPE_WORN)) == PID_COMBAT_ARMOR) then\
#define COND025(x)              if (obj_pid(critter_inven_obj(dude_obj,INVEN_TYPE_WORN)) == PID_BROTHERHOOD_COMBAT_ARMOR) then\
#define COND026(x)              if (obj_pid(critter_inven_obj(dude_obj,INVEN_TYPE_WORN)) == PID_POWERED_ARMOR) then\
#define COND027(x)              if ((obj_pid(critter_inven_obj(dude_obj,INVEN_TYPE_WORN)) == PID_HARDENED_POWER_ARMOR) then\
#define COND028(x)              if ((obj_pid(critter_inven_obj(dude_obj,INVEN_TYPE_WORN)) == PID_TESLA_ARMOR)\
on the last line, i read up about it and the trailed spaces werent the problem what am i doing wrong?
if anyone could help that would be amazing thanks

Re: condition h and scripts

Posted: Tue Aug 16, 2022 8:50 am
by Magus
What are you trying to do?

Re: condition h and scripts

Posted: Tue Aug 16, 2022 10:35 pm
by puffmancherrycake
just write a simple dialog script
 

Re: condition h and scripts

Posted: Wed Aug 17, 2022 8:13 am
by Magus
You probably have a typo elsewhere.