Jump to content

Skyrim Creation Kit - Unsigned Int Values


Keldis

Recommended Posts

So as the title already says. Is it possible in Skyrim to store unsigned int values? Because i need it for a mod im working on at the moment, the command i use cant convert Signed Ints to Form ID (GetForm(Form) Command) when they are negative values.

 

Here is a video of the mod im working on, the mod is a Tag Spell, which tags enemys and stores them in a GlobalVariables and a second spell "Executes" the tagged enemys, the problem is that this only works for NPC which ref ids are within the SIgned Int Range (2.147.483.647 ) and after that it starts with the negative (-2.147.483.647) which cant be back converted to a form.

 

Basicaly every Random Encounter (Thungs, Thieves, Script Spawn, Assassins etc) starts with FFxxxxxx which is already a Negative value.

 

so Hope anyone can help me here.

 

The video:

 

Edited by DarkenDe
Link to comment
Share on other sites

Why not bypass the problem, and store the Actor variables directly.

So instead of globals, you'll make some Actor properties in a quest script.

 

Scriptname MyVariableQuest extends Quest

Actor Property target1 Auto
Actor Property target2 Auto

 

The replace your global refs in your code with ones to the quest.

 

MyVariableQuest Property MyGlobals Auto

 

MyGlobals.target1 = aktarget

Link to comment
Share on other sites

  • Recently Browsing   0 members

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