• ✨ ARCHIVE MODE ✨
    The forum has now been set to read-only mode, no new posts, resources, replies etc will not be possible.
    We recommend you join our Discord server to get real-time response: Discord Invite Link

Script 2 Money Remove

J

jianmingyong

Guest
Wow... One thing to really complain is that the :while: command really buggy... I cannot really use it with :if: or some other command together and it break the whole script.
 

nilllzz

Original Developer
Administrator
P3D Developer
Wow... One thing to really complain is that the :while: command really buggy... I cannot really use it with :if: or some other command together and it break the whole script.
Example? You know, if no one is reporting a bug, we can't fix it.
 
J

jianmingyong

Guest
An example:
Code:
version=2
:while:<Register.registered(System.options.YES)>=false
    @Text.show(<Player.name>, don't you think it might be~a good idea to go see <Rival.name>?)
    @Options.setcancelindex(1)
    @Options.show(YES,NO)
    :when:YES
        @Text.show(PROF. BIRCH: Great!~<Rival.name> should be happy, too.)
        @Register.register(System.options.YES)
    :when:NO
        @Text.show(PROF. BIRCH: Oh, don't be that way.~You should go meet my kid.)
    :endwhen
:endwhile
@Text.show(Test end)
:end
I am intending to loop the options until the player choose yes. But it can only be loop once then the script fails after trying "no" option.

Warning (20:29:33): ActionScript.vb: Illegal ":when" construct. Terminating execution.
It return such error since it can't loop this way...
 

Darkfire

Administrator
Administrator
P3D Developer
An example:
Code:
version=2
:while:<Register.registered(System.options.YES)>=false
    @Text.show(<Player.name>, don't you think it might be~a good idea to go see <Rival.name>?)
    @Options.setcancelindex(1)
    @Options.show(YES,NO)
    :when:YES
        @Text.show(PROF. BIRCH: Great!~<Rival.name> should be happy, too.)
        @Register.register(System.options.YES)
    :when:NO
        @Text.show(PROF. BIRCH: Oh, don't be that way.~You should go meet my kid.)
    :endwhen
:endwhile
@Text.show(Test end)
:end
I am intending to loop the options until the player choose yes. But it can only be loop once then the script fails after trying "no" option.

Warning (20:29:33): ActionScript.vb: Illegal ":when" construct. Terminating execution.
It return such error since it can't loop this way...
I can confirm that :when breaks on the second loop
basically:
Select Yes/No
->No
Loops
Select Yes/No
->select either
Break

it isnt the cancel index either i just tried that
 

nilllzz

Original Developer
Administrator
P3D Developer
Was an easy fix. Lines removed by :if and :when loops didn't get added to the :while query and didn't get added to the top of the stack again.
 
Top