Conversion - Converted Real To Formatted String

Dois

New Member
Reaction score
1
"Conversion - Converted Real To Formatted String"

Whats this function?

How doo I use it? I don't understand the examples they've given...........

Halp me plz. Thanks

Is there anything in W.E. I can use for a "Time Elapsed" trigger? Like they format time for me? Or do i have to do it myself?

THanks again
 

cleeezzz

The Undead Ranger.
Reaction score
268
for your second question, do you mean do something when X seconds passes by?
or change the time to X:XX

Event -
Time Elapsed is 10 seconds.

or

Game - Set the time of day to 12.00
 

Dois

New Member
Reaction score
1
oh sorry i wasn't clear.

I mean like on the multiboard, a total game-time elapsed display.

So every second of the game, its updating itself.

Like 0:01 then 0:02...

Like a time elapsed clock or whatever u wanna call it
 

cleeezzz

The Undead Ranger.
Reaction score
268
Code:
Event - 
    Every 1 seconds of the game
Action
    Set Seconds = (Seconds + 1)
    If Then Else
        If 
            Seconds is greater than or equal to 60
        Then
            Set Seconds = 0
            Set Minutes = (Minutes + 1)
    If Then Else
        If 
            Seconds is greater than 9
        then
            Change the Text on Multiboard on row X to (Minutes)+:+(Seconds)
        else
            Change the Text on Multiboard on row X to (Minutes)+:+0+(Seconds)
it should look like 5:34 or w.e
EDIT: hmm it would look like 5:4 if the time was 5:04
lemme fix this.
fixed but its kinda of a stupid way to do it.

seconds = Integer Variable (NOT ARRAY)
Minutes = Integer Variable (NOT ARRAY)
 

Dois

New Member
Reaction score
1
lol im just doing almost exactly what youre doing now with the same problem (5:4 instead of 5:04) and it seems like its gonna get a whole lot more complicated just t ohave that ":04"... like twice the variables...

also im including hours



ok thanks im gunna be using ur "fix"
 

Dois

New Member
Reaction score
1
Code:
Time Elapsed
    Events
        Time - Every 1.00 seconds of game time
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Time_Elapsed_Seconds Equal to 59
            Then - Actions
                Set Time_Elapsed_Seconds = 0
                Set Time_Elapsed_Minutes = (Time_Elapsed_Minutes + 1)
            Else - Actions
                Set Time_Elapsed_Seconds = (Time_Elapsed_Seconds + 1)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Time_Elapsed_Minutes Equal to 60
            Then - Actions
                Set Time_Elapsed_Minutes = 0
                Set Time_Elapsed_Hours = (Time_Elapsed_Hours + 1)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                Time_Elapsed_Seconds Less than 10
                Time_Elapsed_Hours Equal to 0
            Then - Actions
                Set Current_Time = ((String(Time_Elapsed_Minutes)) + (:0 + (String(Time_Elapsed_Seconds))))
            Else - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        Time_Elapsed_Hours Equal to 0
                    Then - Actions
                        Set Current_Time = ((String(Time_Elapsed_Minutes)) + (: + (String(Time_Elapsed_Seconds))))
                    Else - Actions
                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                            If - Conditions
                                Time_Elapsed_Hours Greater than 0
                                Time_Elapsed_Minutes Less than 10
                                Time_Elapsed_Seconds Less than 10
                            Then - Actions
                                Set Current_Time = ((String(Time_Elapsed_Hours)) + (:0 + ((String(Time_Elapsed_Minutes)) + (:0 + (String(Time_Elapsed_Seconds))))))
                            Else - Actions
                                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                    If - Conditions
                                        Time_Elapsed_Hours Greater than 0
                                        Time_Elapsed_Minutes Greater than 9
                                        Time_Elapsed_Seconds Less than 10
                                    Then - Actions
                                        Set Current_Time = ((String(Time_Elapsed_Hours)) + (: + ((String(Time_Elapsed_Minutes)) + (:0 + (String(Time_Elapsed_Seconds))))))
                                    Else - Actions
                                        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                                            If - Conditions
                                                Time_Elapsed_Hours Greater than 0
                                                Time_Elapsed_Minutes Less than 10
                                                Time_Elapsed_Seconds Greater than 9
                                            Then - Actions
                                                Set Current_Time = ((String(Time_Elapsed_Hours)) + (:0 + ((String(Time_Elapsed_Minutes)) + (: + (String(Time_Elapsed_Seconds))))))
                                            Else - Actions
                                                Set Current_Time = ((String(Time_Elapsed_Hours)) + (: + ((String(Time_Elapsed_Minutes)) + (: + (String(Time_Elapsed_Seconds))))))
        Multiboard - Set the text for (Last created multiboard) item in column 2, row ((Number of players in Players_Playing) + 6) to Current_Time

Ok here it is! Haven't tested hours yet but I guess it'll work. Will test now.

Thanks for the help.
 
General chit-chat
Help Users

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top