Smaller Fallout projects. Latest Party Orders mod, Fallout: Nevada wiki. Modding questions also go here.
Post Reply
puffmancherrycake
Posts: 2
Joined: Tue Aug 16, 2022 2:56 am

condition h and scripts

Post by puffmancherrycake » Tue Aug 16, 2022 3:02 am

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

User avatar
Magus
Site Admin
Posts: 390
Joined: Mon Nov 21, 2016 9:13 am
Contact:

Re: condition h and scripts

Post by Magus » Tue Aug 16, 2022 8:50 am

What are you trying to do?
Please do not PM or email me about my mods and projects. Use forums. Also, see our talk channels.

puffmancherrycake
Posts: 2
Joined: Tue Aug 16, 2022 2:56 am

Re: condition h and scripts

Post by puffmancherrycake » Tue Aug 16, 2022 10:35 pm

just write a simple dialog script
 

User avatar
Magus
Site Admin
Posts: 390
Joined: Mon Nov 21, 2016 9:13 am
Contact:

Re: condition h and scripts

Post by Magus » Wed Aug 17, 2022 8:13 am

You probably have a typo elsewhere.
Please do not PM or email me about my mods and projects. Use forums. Also, see our talk channels.

Post Reply