Marcel

Results 172 comments of Marcel

``` [GUISCript/DEBUG]: LOCALS CREATURE_STATE_VAR=0 ```

Background here is that `CREATURE_STATE_VAR` is actually initialized with 1 already (not sure why not worked above, but anyway). I tracked it down setting the value down to this path:...

GetScriptName() -> `hrothgar` GetName(1) -> `Hrothgar`

So far, I got the setter `SetScriptName` for `hrothgar`: https://github.com/gemrb/gemrb/blob/d05ba7ff7ff0ee7921fe2a2ca89fb0669be77677/gemrb/plugins/CREImporter/CREImporter.cpp#L2218 Looking fore more.

So in my savegame `AR1006.ARE`, there are things set in addition, such as that variable name for Hrothgar. And I really haven't done anything after finishing the party setup but...

`CREATURE_STATE_VAR` I assume that it has been set right after finishing the party wizard, and then something cancelled an actions after that `BitGlobal("CREATURE_STATE_VAR","LOCALS",1,OR)` but it got saved, and so my...

Eh, simple question. If NI name `EFPIKWRN.bcs` as class script of Hrothgar, and it contains this passage: ``` IF !BitGlobal("CREATURE_STATE_VAR","LOCALS",1,AND) THEN RESPONSE #100 BitGlobal("CREATURE_STATE_VAR","LOCALS",1,OR) Continue() END ``` Can it be...

I mean this thing `EFPIKWRN` shown here: ![ni](https://user-images.githubusercontent.com/238558/67900642-3fabc080-fb65-11e9-9b48-beef6c1215e9.png)

They use `CheckVariable` and `SetVariable`, and without testing for a bug, they somehow extract the scope from the variable name prefix (which is `locals:creature_state_var` in this case) and act accordingly.