Jump to content

Need some help modding Real Time Settler


Niteslayer

Recommended Posts

Okay so for those that play Real Time Settler mod you probably know the recycle option is in need of a hotkey. I believe I tracked down the script that controls and will post it below.

 

scn aaaRTSDialogBoxConstructionSetFlagObjectSCRIPT

Short Button
Short	Active
Short	WasGrabbed
Ref	GrabbedItemRef

BEGIN OnAdd

ShowMessage aaaRTSSettlerMessageConstructionSetFlag
Set Active to 1

endif
END

BEGIN GameMode
if Active == 1
		Set Button to GetButtonPressed
if Button == 0 
	Player.Additem aaaRTSManagmentCenterDeskOfficeDialogBoxFlag 1 1
	Removeme
elseif Button == 1 
	Player.Additem aaaRTSWorkBenchDialogBoxFlag 1 1 
	Removeme
elseif button == 2 && aaaRTSSettlerDeclaringVariablesQuest.RecyclingMessage == 0
		Player.AddItem aaaRTSRecyclingCenterDialogBoxFlag 1 1 
	RemoveMe
elseif Button == 2  
	set GrabbedItemRef to GetPlayerGrabbedRef
	Set WasGrabbed to 1
elseif Button == 3 
	;nothing
	Removeme


endif
endif

if WasGrabbed == 1 &&  GrabbedItemRef  !=0 &&  GrabbedItemRef.IsInList aaaRTSNotAble
	ShowMessage aaaRTSSettlerMessageItemNoAvailableRecycle
	RemoveMe
elseif WasGrabbed == 1 &&  GrabbedItemRef  !=0 &&  GrabbedItemRef.IsInList aaaRTSFoodList || GrabbedItemRef.GetDead == 1
	Set WasGrabbed to 2
	GrabbedItemRef.Disable
	GrabbedItemRef.MarkForDelete
	Set aaaRTSSettlerDeclaringVariablesQuest.FoodCounter to aaaRTSSettlerDeclaringVariablesQuest.FoodCounter + 1
	RemoveMe
elseif WasGrabbed == 1 &&  GrabbedItemRef  !=0 &&  GrabbedItemRef.IsInList aaaRTSBMList 
	Set WasGrabbed to 2
	GrabbedItemRef.Disable
	GrabbedItemRef.MarkForDelete
	Set aaaRTSSettlerDeclaringVariablesQuest.BMCounter to aaaRTSSettlerDeclaringVariablesQuest.BMCounter + 1
	RemoveMe
elseif WasGrabbed == 1 &&  GrabbedItemRef  !=0 
	Set WasGrabbed to 2
	GrabbedItemRef.Disable
	GrabbedItemRef.MarkForDelete
	Set aaaRTSSettlerDeclaringVariablesQuest.SMCounter  to aaaRTSSettlerDeclaringVariablesQuest.SMCounter + 1
	RemoveMe

elseif  WasGrabbed == 1 &&  GrabbedItemRef  == 0
	Set WasGrabbed to 2
	RemoveMe
endif
END

 

The bottom section of this script seems to be what controls the recycling.

I set up a new hotkeyable object, changed the script a few times, and I got it to at least activate but I can't get it to run the script to recycle.

 

If anyone has any ideas on how I can do this to make recycling in RTS hotkeyed please help.

 

Thanks.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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