CaptDeath
New Member
- Reaction score
- 103
would any one like me to make the gambling system?
Discontinued
[del]Working on gambling system
YAY![/del]
Discontinued
[del]Working on gambling system
YAY![/del]
> if he change the substring if a player write something like that : "123456-bet", the trigger will be evaluated and executed, yes it's a silly example, but anyway it's just an event so using SubStringBJ is not that bad.
Actually, SubstringBJ("-bet ", 1, 5) == "-bet "
So it's just an extra function call.
You'll need a condition to prevent that.
And, the point of it being there is?The SubStringBJ is called only ONE time when the event is registered , pity ...
if GetRandomInt(1, 5) < 6 then
// Actions
endif
if true then
// Actions
endif
And, the point of it being there is?
Doing that is basically like doing this:
JASS:if GetRandomInt(1, 5) < 6 then // Actions endif
Instead of:
JASS:if true then // Actions endif
It's an extra, completely pointless function call. There's no point whatsoever in it being there.
I don't think you're trying to understand me.No i would say it's the best way, just remember that's a gui, not dynamic trigger, if he use that in the register event part, he don't need to use an extra condition when the trigger is evaluated or executed.