Jump to content

Scripting not liking IDs with_Underscores


Recommended Posts

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

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

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 by abot
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...