SineCosine
I'm still looking for my Tangent
- Reaction score
- 77
Just a curiosity, so that we can inform each other of stupid things to not do =x
I just got through something stupid and want to avoid anything else dumb, so..
I'll go first:
My map has A LOT of dialogue (Part of the re-play value is going to come from the different dialogue you get each time you play, it's like a story/hero-survival..)
And I did something like this for EVERY bit of dialogue..
Then, while droning and repeating this task, something struck me..
Libraries
So, I went and made my library and now, each sentence goes something like this..
So much shorter..
What was the dumbest thing you've done in Jass that you can remember? :thup:
I just got through something stupid and want to avoid anything else dumb, so..
I'll go first:
My map has A LOT of dialogue (Part of the re-play value is going to come from the different dialogue you get each time you play, it's like a story/hero-survival..)
And I did something like this for EVERY bit of dialogue..
JASS:
static method Chat10 takes nothing returns nothing
local timer t = GetExpiredTimer()
local integer i = 0
loop
exitwhen i == 4
call DisplayTextToPlayer(Player(i), 0, 0, "|cffffcc00Current Objective: |r")
call DisplayTextToPlayer(Player(i), 0, 0, "01) Find the cause of the rumblings.")
call DisplayTextToPlayer(Player(i), 0, 0, " ")
set i = i + 1
endloop
call OneStart()
call DestroyTimer(t)
set t = null
endmethod
Then, while droning and repeating this task, something struck me..
Libraries
So, I went and made my library and now, each sentence goes something like this..
JASS:
static method Chat3 takes nothing returns nothing
call ShowChat(true, "|cffffcc00Orc Tamer: |r", "Maggot-brain scrawn..", null, null, GetExpiredTimer(), 3.00, function G.Chat4)
call AllSelectUnit(Talk)
call MoveCameraAll(GetUnitX(Talk), GetUnitY(Talk), 0.5)
endmethod
So much shorter..
What was the dumbest thing you've done in Jass that you can remember? :thup: