Script: Getting a message to show globals

Post » Tue Jun 19, 2012 7:27 am

Hey ppl.

I am trying to get global variables to show in a message but I am not sure how to go about this, I already checked the tutorials but I just get CK complaints when creating my own script.


Event OnEquipped(Actor akActor)

StatsMessageMain.show(GlobalStatsNeed) ;;; this global is attached to this script as a property but the CK just complains

Game.GetPlayer().UnequipItem(ThisItem)
EndEvent
User avatar
Katie Samuel
 
Posts: 3384
Joined: Tue Oct 10, 2006 5:20 am

Post » Tue Jun 19, 2012 10:09 am

Anyone got any example scripts on how this works?
User avatar
RAww DInsaww
 
Posts: 3439
Joined: Sun Feb 25, 2007 5:47 pm

Post » Tue Jun 19, 2012 1:15 pm

GlobalStatsNeed.GetValue()

or

GlobalStatsNeed.GetValueInt()

edit: I mean to say the whole thing

StatsMessageMain.Show(GlobalStatsNeed.GetValue())
User avatar
Mike Plumley
 
Posts: 3392
Joined: Wed Sep 05, 2007 10:45 pm

Post » Tue Jun 19, 2012 10:27 am

GlobalStatsNeed.GetValue() or GlobalStatsNeed.GetValueInt() edit: I mean to say the whole thing
 StatsMessageMain.Show(GlobalStatsNeed.GetValue()) 

Many thanks, I will name my firstborn after you, sir :biggrin:
User avatar
lilmissparty
 
Posts: 3469
Joined: Sun Jul 23, 2006 7:51 pm


Return to V - Skyrim