• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Run of texte

Status
Not open for further replies.
Level 5
Joined
May 21, 2006
Messages
145
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
 
Level 5
Joined
May 21, 2006
Messages
145
I don't know how to do that , can you help me with an example in a map or other plz :?:
 
Level 5
Joined
May 22, 2006
Messages
150
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.
 
Level 5
Joined
May 21, 2006
Messages
145
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 ?
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
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
 
Level 5
Joined
May 21, 2006
Messages
145
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: ?
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
xamaro said:
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: ?

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}
 
Status
Not open for further replies.
Top