Warcraft III resources & community, 2003–2006 · archived

Run of texte

15 posts
#1

Run of texte

Hello ! I'm a very very big noob i JASS , i have tryed to learn it but it's very hard ... . I would like to know if somebody now how to create a texte who run from the right to the left in a multiboard.
Like in "Anim fight" .You know how to make that ?

:arrow: Have a good day Xamaro
#2
Updating the multiboard text for that line constantly?
#3
I don't know how to do that , can you help me with an example in a map or other plz :?:
#4
so...

if we set the multiboard in that column to

note we want to print Hello World moving across

"hello "

wait a short time

"ello W"

"llo Wo"

and so on, it should work.
#5
Ah... I do not think, that is, what he wants to know...
I'm a very very big noob i JASS [...]


I guess, he lacks an example code.
... Normally, I would thankfully grap this chance, but I am pretty busy in the moment.
#6
So, you want the code itself? And why must you use JASS? If you are familiar with GUI, i suggest using that, and starting JASS from simpler and more useful frontiers

Anyways, ill write up a script when i get home, and post it.
#7
Thank but what's GUI ? GUI = triggers ?

yes i would have the code please , because it's easier to stick a code than to create much triggers , no ?
#8
Here, ill put a GUI vers, as i dont know the var names youre using or anything

Globals:

String {whatever} = "Your Text Goes Here"
Integer Array {integerarray}
Multiboard {multiboard}

Init Trigger
Events
Elapsed Game Time Is .00 seconds
Conditions
Actions
set {integerarray}[0] = 1
set {integerarray}[1] = <<<Length of String to be displayed at any one time>>>

Trigger ( this is for updating text, not initing the mb or anything )
Events
Every X Seconds of Game Time
Conditions
[your conditions here]
Actions
Set Text for item in {multiboard} at row x, column x, displaying text Substring( {whatever}, {integerarray}[0], {integerarray}[1] )
set {integerarray}[0] = {integerarray}[0] + 1
set {integerarray}[1] = {integerarray}[1] + 1
#9
OK thank but it work but I have make errors , i think , the text run only once .
:arrow: Can i send you my test map please :oops: ?
#10
xamaroOK thank but it work but I have make errors , i think , the text run only once .
:arrow: Can i send you my test map please :oops: ?


I actually just wrote it directly on here :P

Of course the text only ran once, overlooked that :oops:

Anyways, at the end, after where it sets the 2 variables + 1, just say

If ({integerarray}[1] >= {the end of your text})
Then - Actions
Set {integerarray}[0] = 0
Set {integerarray}[1] = {the starting value of this}
#11
Sorry but i don't arrived to replay the text value
#12
xamaroSorry but i don't arrived to replay the text value


Sorry, but i didnt understand that :(
#13
I can't replay the text . :oops:
#14
you have to call the trigger for the text periodically. The delay shall be about the time you need to scroll through once.
#15
What's the trigger i have to create please :?: