Hello guys im tryin to understand those scripts , so i downloaded the Bpowers Floating Text Script/System
and i just want to know if there is a way to trigger the floating text api by GUI ?
DmeoTrigger :
As i can see in the last lines this code executes after map init (?)
But when i was tryin to make my action in GUI then coverting to Custom Text (Jass mby?)
After i tried to compile it , jasshelper told me that something is wrong(Doesnt remeber what it was)
So i thought thatw would be okay if i try to use custom script like this
So, Then.. i tried to
..So is there any option to Fire this floating text by GUI or i have to do it in Jass?
And if i have to do , could anyone help me with it ? I'm just lost over there
and i just want to know if there is a way to trigger the floating text api by GUI ?
DmeoTrigger :
JASS:
scope Demo initializer Init
globals
private ScrollingText SW
endglobals
// You can colorize each line or char via color codes.
private function SetText takes nothing returns nothing
local ScrollingText text = ScrollingText.create(TREBUCHET_MS)
call text.addLine("|cffffd700It is a period of civil war.", 12, 0.)
call text.addLine("|cffffd700Rebel spaceships , striking", 12, 0.)
call text.addLine("|cffffd700from a hidden base, have", 12, 0.)
call text.addLine("|cffffd700won their first victory", 12, 0.)
call text.addLine("|cffffd700against the evil Galactic", 12, 0.)
call text.addLine("|cffffd700Empire.", 12, 0.)
call text.addLine(null, 12, 0.)
call text.addLine(null, 12, 0.)
call text.addLine("|cffffd700During the battle, rebel", 12, 0.)
call text.addLine("|cffffd700spies managed to steal", 12, 0.)
call text.addLine("|cffffd700secret plans to the Empire's", 12, 0.)
call text.addLine("|cffffd700ultimate weapon , the", 12, 0.)
call text.addLine("|cffffd700DEATH STAR, an armored", 12, 0.)
call text.addLine("|cffffd700space station with enough", 12, 0.)
call text.addLine("|cffffd700power to destroy an entire", 12, 0.)
call text.addLine("|cffffd700planet.", 12, 0.)
call text.addLine(null, 12, 0.)
call text.addLine(null, 12, 0.)
call text.addLine("|cffffd700Pursued by the Empire's", 12, 0.)
call text.addLine("|cffffd700sinister agents , Princess", 12, 0.)
call text.addLine("|cffffd700Leia races home aboard her", 12, 0.)
call text.addLine("|cffffd700starship , custodian of the", 12, 0.)
call text.addLine("|cffffd700stolen plans that can save", 12, 0.)
call text.addLine("|cffffd700her people and restore", 12, 0.)
call text.addLine("|cffffd700freedom to the galaxy ...", 12, 0.)
set SW = text
endfunction
private function Skip takes nothing returns nothing
// Velocity
call DisplayScrollingText(SW, 0, 0, 300, 300, 1.)
endfunction
private function CreateEscWarning takes nothing returns nothing
local textsplat s = textsplat.create(TREBUCHET_MS)
call s.setText("Press Esc Start / Restart!", 28, 0)
call s.setPosition(0, 0 - s.height*.5, 0)
call SetCameraPosition(s.width*.5, s.height)
set s.permanent = false
set s.lifespan = 1
endfunction
private function Init takes nothing returns nothing
call CreateEscWarning()
call SetText()
call SetCameraField(CAMERA_FIELD_ROTATION, 90., 0.)
call TryInitCinematicBehaviorBJ()
call TriggerAddAction(bj_cineSceneBeingSkipped, function Skip)
endfunction
endscope
As i can see in the last lines this code executes after map init (?)
Code:
private function Init takes nothing returns nothing
call CreateEscWarning()
call SetText()
call SetCameraField(CAMERA_FIELD_ROTATION, 90., 0.)
call TryInitCinematicBehaviorBJ()
call TriggerAddAction(bj_cineSceneBeingSkipped, function Skip)
endfunction
But when i was tryin to make my action in GUI then coverting to Custom Text (Jass mby?)
After i tried to compile it , jasshelper told me that something is wrong(Doesnt remeber what it was)
So i thought thatw would be okay if i try to use custom script like this
-
Untitled Trigger 001
-
Events
-
Conditions
-
Actions
-
Custom script: call DisplayScrollingText(SW, 0, 0, 300, 300, 1.)
-
-
So, Then.. i tried to
-
set SW=test
..So is there any option to Fire this floating text by GUI or i have to do it in Jass?
And if i have to do , could anyone help me with it ? I'm just lost over there
Last edited: