Difference between revisions of "Talk:Cast Reference"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Zoe S17
(Created page with "What is the best(both cheap in memory and soucre code space) way to cast a bool into a [[|short]] so one could use it as a link through...")
 
imported>Egocarib
Line 2: Line 2:


--[[User:Zoe S17|Zoe S17]] ([[User talk:Zoe S17|talk]]) 2014-12-11T02:54:48 (EST)
--[[User:Zoe S17|Zoe S17]] ([[User talk:Zoe S17|talk]]) 2014-12-11T02:54:48 (EST)
:Papyrus doesn't have short type variables, only [[Literals_Reference#Integer_Literals|int]]. It also isn't possible to cast a literal (bool or int) to a object-type variable (like GlobalVariable), so I'm not really sure what you're asking.
:--[[User:Egocarib|egocarib]] ([[User talk:Egocarib|talk]]) 2014-12-12T20:55:07 (EST)

Revision as of 20:55, 12 December 2014

What is the best(both cheap in memory and soucre code space) way to cast a bool into a short so one could use it as a link through(cast) to a GlobalVar.

--Zoe S17 (talk) 2014-12-11T02:54:48 (EST)

Papyrus doesn't have short type variables, only int. It also isn't possible to cast a literal (bool or int) to a object-type variable (like GlobalVariable), so I'm not really sure what you're asking.
--egocarib (talk) 2014-12-12T20:55:07 (EST)