temnix Posted September 27, 2016 Share Posted September 27, 2016 Three questions: 1) A creature is controlled by only one script at a time, yes? Actually, four questions. 2) When does the override script come in to, well, overrride? Or does "override" that just mean it's a top-level script and if it's present at all, that's what the creature runs? 3) When does the race script come in vis-a-vis override and default? 4) Does the race script do anything useful? Link to comment
Jarno Mikkola Posted September 27, 2016 Share Posted September 27, 2016 Override script it the top level script, its checked first, and if it has a true IF, then nothing else is done before that is done and over, aka it's not true anymore.Then, class.Then, race. Then general and finally default, in the .cre script name ref... Link to comment
Roxanne Posted September 27, 2016 Share Posted September 27, 2016 Three questions: 1) A creature is controlled by only one script at a time, yes? Actually, four questions. 2) When does the override script come in to, well, overrride? Or does "override" that just mean it's a top-level script and if it's present at all, that's what the creature runs? 3) When does the race script come in vis-a-vis override and default? 4) Does the race script do anything useful? Link to comment
Jarno Mikkola Posted September 27, 2016 Share Posted September 27, 2016 ... override while you but combat actions to the next level, and even more general stuff into the next layer, etc.... hihhihiihihih. Nope. Usually combat is the highers priority. No matter what. Unless you want to make the combat end by a specific trigger then that comes first, but that's "combat related" too.. or stuff. For example, it might be a bad idea to put trolls resurrection / death script in their race script just cause it's over layered by a bunch of stuff, that should not take priority from ending the combat. Ask any player that has faced the unkillable Torgal for example, if they prefer tanking the hits it throws at you while it decides to crook over or not. . Also it might be worth noting that the game reads the scripts from bottom side to up, though it might not matter usually as, the game normal tries to read the scripts 15 times a second(if you play at 30 FPS in the game settings). Link to comment
Ardanis Posted September 27, 2016 Share Posted September 27, 2016 Just to clarify, the override, class etc. script slots are in no way related to creature's actual race, class or whatever else. They're just custom names defined in SCRLEV.IDS for ease of use. You can put anything you want anywhere you want, and it will operate depending on the slot hierarchy, higher level ones taking priority. The problem with re-assigning scripts in-game is that you can't automatically revert the change, and you also can't detect via in-game means which slot is free. Regarding the race slot, it is heavily used by SoD actors, storing generic AI script. Link to comment
temnix Posted October 3, 2016 Author Share Posted October 3, 2016 Thanks for the explanation. I found I can override a blue creature's actions with ActionOverride, and it goes back to doing what it was supposed to afterwards, so I don't need to mess with script-swapping. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.