d4em Posted May 31 Posted May 31 Text in messageboxes (Message.Show()) is centered by default. I want it to be justified. Is there a way to do this?
d4em Posted May 31 Author Posted May 31 Or open a book by script, I tried equipitem but it didnt work
d4em Posted June 1 Author Posted June 1 (edited) Or how to prevent a book that has the "can't be taken" flag set from actually being taken? I'm working on a mod with historical posters and I need info cards, some with long stories on them. I want to activate a poster and have a messagebox with details pop up, like in a museum. Messages work, but I can't format the text and it looks bad. Tried making a poster that's actually secretly a book with a static mesh, that works, but it can still be taken which is bad. Tried making a poster that adds a book to the player and then opens it but EquipItem() does not open books. Any ideas? Edited June 1 by d4em
SKKmods Posted June 1 Posted June 1 Poster Activator that gives the player hi poly miscitem with your text as a cover image that is has keyword FeaturedItem which forces the display to pop ?
d4em Posted June 1 Author Posted June 1 Very nice, but I need to be able to scroll through multiple pages. Like this poster is going to have the description below + publisher info and stuff. Others might have longer descriptions, and I don't want to have to cram or leave stuff out. Like that Custer Gun sounds sweet From September 19 to 24 1910, about 45 years after the last shot of the Civil War was fired, the 44th National Grand Army of the Republic (G.A.R.) Encampment was held in Atlantic City. The G.A.R. had in attendance over 18,000 of its 214,000 members from across the nation, many still suffering from wounds inflicted decades before. A huge variety of events were held, including sightseeing tours, religious services, parades, meetings, and a general reunion amongst troops. When General "Fighting Dan" Sickles, who was confined to a wheelchair, was presented with a chest of silver, four fellow veterans lifted him up unto the stage, chair and all, to be honored. General Hilary Herbert, a former Confederate soldier, addressed the G.A.R. veterans, declaring, "Had I been told when I was in Antietam, that in years to come I would stand side by side with Federal soldiers and grasp the Stars and Strips with them, I would have been insulted. But I love the old flag now." The local press also reported on the "Custer Gun", a cannon made of melted-down relics from various Civil War battles. This artifact unfortunately became lost to history some time in the 1920s. The bottom of the poster reads: On Balcony: Commander Samuel R. van Sant Front Row: Louis Wagner, Robt. B. Beath, Samuel S. Burdett, William Warner, A.G. Weissert, Thad S. Clarkson Row 2: W. C. Johnson, Leo Rassieur, Ell Torrance, Thos. J. Stewart, John C. Black Row 3: John R. King, James Tanner, Robt. B. Brown, Charles G. Burton, Henry M. Nevius Copyright 1910 by George S. Lenhart, Secretary Extra Copies will be sent on receipt of Twenty-five Cents by George S. Lenhart, Secretary, Atlantic City
hereami Posted June 1 Posted June 1 (edited) 14 hours ago, d4em said: Or open a book by script, I tried equipitem but it didnt work Activate(Player), maybe player is unnecessary, idk. Curious enough, when Misc item is clicked there is not OnActivate but OnEquipped fired. 3 hours ago, d4em said: Or how to prevent a book that has the "can't be taken" flag set from actually being taken? Pretty curious too, though what can be more powerful than a flag with such name. Edited June 1 by hereami
pepperman35 Posted June 1 Posted June 1 ScriptName PlayerReadButNoTake extends ObjectReference { Prevents the player from taking an item; script provided by dylbill via forums } ;-- Properties -------------------------------------- ObjectReference Property myBookLocation Auto ; This is a xmarker to mark the location of myBook ;-- Variables --------------------------------------- ;-- Functions --------------------------------------- Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer) If (akNewContainer == Game.GetPlayer() as ObjectReference) If (akOldContainer == None) Self.moveTo(myBookLocation, 0, 0, 0, True) Else akNewContainer.RemoveItem(Self as Form, 1, True, akOldContainer) EndIf Debug.Notification("You can't take this book.") EndIf EndEvent 1
d4em Posted June 1 Author Posted June 1 (edited) Partial success, the posterbook can't be taken, but after moveto it starts being weird, it's like flickering or a little bit like z-fighting (see screenshot). Also, MoveTo is not silent but I can live with that. I know place everywhere has a reset function to stop stuff from vibrating, probably the same thing, but place everywhere is in a .dll Edit: Victory Script: Form Property xMarkerForm Auto ObjectReference Property locationMarker Auto Hidden Event OnActivate(ObjectReference akRef) if (locationMarker == None) locationMarker = Self.PlaceAtMe(xMarkerForm) endIf endEvent Event OnContainerChanged(ObjectReference newContainer, ObjectReference oldContainer) if (newContainer == Game.GetPlayer() as ObjectReference) Self.MoveTo(locationMarker, 0, 0, 0, True) Self.Disable() Self.Enable() endIf endEvent Edited June 2 by d4em
Recommended Posts