PoodleSandwich2 Posted September 8, 2018 Share Posted September 8, 2018 Hi All, I'm trying to use a script to mod the fight value of Cliff Racers depending on the time of day, I can make it work just fine for regular Cliff Racers but when I try to do it for Blighted or Diseased ones, it says "Line X function reference object "cliff racer_diseased" not found." I know you're supposed to use quotes for ID names with spaces or underscores so I am, like this: "cliff racer_diseased"->ModFight, 60 But still I get that error message when I try to save the script. Any ideas?Thanks. Link to comment Share on other sites More sharing options...
ZWolol Posted September 9, 2018 Share Posted September 9, 2018 The creatures are not unique in the gameFor them, the script should only be local without specifying the ID (ModFight, 60) Link to comment Share on other sites More sharing options...
PoodleSandwich2 Posted September 9, 2018 Author Share Posted September 9, 2018 I want to affect all Cliff Racers, I will attach the script to the creatures themselves if that's the only way round it, I was just thinking that trying to do it via an external script would increase mod compatibility. Do underscores only work for unique things then? Link to comment Share on other sites More sharing options...
ZWolol Posted September 9, 2018 Share Posted September 9, 2018 You can not directly access all creatures with the same ID from the script. The local script will work on all copies of the creatures. Scripts are already used for sick creatures. You will need to add your teams there. Link to comment Share on other sites More sharing options...
abot Posted September 11, 2018 Share Posted September 11, 2018 (edited) As your purpose is to change all the creature instances, try adding a "real" instance of the creature(s) used only in leveled lists (e.g. "cliff racer_blighted") to a test cell (e.g. ToddTest) from the CS render window, this way the script should be able to compile as a reference is found and if it does not find the reference at real time hopefully it should change the base object Also, use SetFight instead of ModFight if it is not a do once command Note: you can usually see if a object is placed in cells/only used in leveled list with right click/Info Edited September 11, 2018 by abot Link to comment Share on other sites More sharing options...
PoodleSandwich2 Posted September 12, 2018 Author Share Posted September 12, 2018 Thanks for the very insightful advice folks! :happy: Link to comment Share on other sites More sharing options...
Recommended Posts