Skribblerz: Fake sprint bar - Skribblerz

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Fake sprint bar Variables, help .-.

#1 User is offline   Igor32 

  • Lance Corporal
  • Pip
  • Group: Skribblerz
  • Posts: 99
  • Joined: 30-December 08

Posted 11 March 2010 - 09:05 PM

Hi guys and girls!

I'm learning a bit more of variables and came the ideia of a fake sprint bar for some circunstances :whistle:

But I can't get it to work right .-.


ColorRGB= 5, 64, 192, 64 ;Back
ColorRGB= 6, 128, 255, 128 ;Main

Customize= CUST_BAR, BAR_CUSTOM1, IGNORE, 222, 400, 199, 15, 5, 6, #0055 ;Local Short Delta2

Parameters=PARAM_BIG_NUMBERS, 100

Organizer= 51, FO_TICK_TIME+ FO_ENABLED, IGNORE, 1, 51 
TriggerGroup= 51, $2000, 96, $0,> ;Remove weapons
 			$2000, 53, $9,> ; Take
 			$2000, 331, $104,> ;Show Cbar1 sec
 			$2000, 232, $6455 ,> ;Set 100 bar
 			$2000, 109, $3301,> ;Enable GT 51
 			$2000, 109, $3401 ;Enable GT 52


GlobalTrigger= 51, FGT_SINGLE_SHOT_RESUMED+ FGT_DISABLED, GT_CONDITION_GROUP, IGNORE, 70, 80, ignore
GlobalTrigger= 52, FGT_SINGLE_SHOT_RESUMED+ FGT_DISABLED, GT_CONDITION_GROUP, IGNORE, 71, 80, ignore

TriggerGroup= 70, $8000, 446, $1E ;Perform anim 446

TriggerGroup= 71, $8000, 447, $1E ;Perform anim 447

TriggerGroup= 80, $2000, 127, $3C,> ;Enable organizer 60 
 			$2000, 109, $3501,> ;GT 53
 			$2000, 109, $3601 ;GT 54


Organizer= 60, FO_LOOP+ FO_TICK_TIME, IGNORE, 3, 69
TriggerGroup= 69, $2000, 233, $155 ;Reduce value

GlobalTrigger= 53, FGT_SINGLE_SHOT_RESUMED+ FGT_DISABLED, GT_CONDITION_GROUP, IGNORE, 72, 73, ignore


TriggerGroup= 72, $8000, 85, $2B ; Variable = 0

TriggerGroup= 73, $2000, 233, $155,> ; Enable Org
 			$2000, 51, $308 ;Disable jump 3 sec

Organizer= 70, FO_LOOP+ FO_TICK_TIME, IGNORE, 3, 78
TriggerGroup= 78, $2000, 231, $355 ;Restore


GlobalTrigger= 54, FGT_SINGLE_SHOT_RESUMED+ FGT_DISABLED, GT_CONDITION_GROUP, IGNORE, 74, 75, ignore

TriggerGroup= 74, $8000, 85, $28 ; Value = 100

TriggerGroup= 75,>
 			$2000, 109, $3501,> ;GT 53
 			$2000, 109, $3601 ;GT 54



See ya! :blush:

#2 User is offline   Raymond 

  • Sergeant Major
  • PipPipPipPip
  • Group: Skribblerz
  • Posts: 651
  • Joined: 22-April 08

Posted 11 March 2010 - 10:10 PM

Sorry, no help from me, if you donīt describe, what you want to do and whatīs going wrong. So say some sentences, what do you want to reach with all you GTīs, Organizers etc..

#3 User is offline   Igor32 

  • Lance Corporal
  • Pip
  • Group: Skribblerz
  • Posts: 99
  • Joined: 30-December 08

Posted 11 March 2010 - 10:42 PM

Ok lets describe :mellow:


>>>This organizer is enabled at the start of the game, if you check:
1º It will show the custom bar1 for 1 second
2º It's going to charge the custom bar1 to 100 units

Then the Global Trigger 51 and 52 will be enabled

Quote

Organizer= 51, FO_TICK_TIME+ FO_ENABLED, IGNORE, 1, 51
TriggerGroup= 51, $2000, 331, $104,> ;Show Cbar1 sec
$2000, 232, $6455 ,> ;Set 100 bar
$2000, 109, $3301,> ;Enable GT 51
$2000, 109, $3401 ;Enable GT 52


>>> Global Trigger 51 = Will be active if the current Lara animation is 446
Global Trigger 52 = Will be active if the current Lara animation is 447
TG 80 will be active if the condition is true, so will enable the Reducing Organizer and GT 53 and 54


Quote

GlobalTrigger= 51, FGT_SINGLE_SHOT_RESUMED+ FGT_DISABLED, GT_CONDITION_GROUP, IGNORE, 70, 80, ignore
GlobalTrigger= 52, FGT_SINGLE_SHOT_RESUMED+ FGT_DISABLED, GT_CONDITION_GROUP, IGNORE, 71, 80, ignore

TriggerGroup= 70, $8000, 446, $1E ;Perform anim 446

TriggerGroup= 71, $8000, 447, $1E ;Perform anim 447

TriggerGroup= 80, $2000, 127, $3C,> ;Enable organizer 60
$2000, 109, $3501,> ;GT 53
$2000, 109, $3601 ;GT 54


>>> Organizer 60 is to subtract 1 unit at every 3 frames from the bar

Quote

Organizer= 60, FO_LOOP+ FO_TICK_TIME, IGNORE, 3, 69
TriggerGroup= 69, $2000, 233, $155 ;Reduce value


>>>GT53 will be active if the current value of the bar is 0, then it will Enable the organizer 70 and disable the jump key for 3 seconds
[Disabling the jump key will force the bar to be restored]


Quote

GlobalTrigger= 53, FGT_SINGLE_SHOT_RESUMED+ FGT_DISABLED, GT_CONDITION_GROUP, IGNORE, 72, 73, ignore

TriggerGroup= 72, $8000, 85, $2B ; Variable = 0

TriggerGroup= 73, $2000, 233, $155,> ; Enable Org
$2000, 51, $308 ;Disable jump 3 sec


>>> ORG 70 will restore the bar

Quote

Organizer= 70, FO_LOOP+ FO_TICK_TIME, IGNORE, 3, 78
TriggerGroup= 78, $2000, 231, $355 ;Restore


>>> GT54 will reenable itself and GT53 for further activation
*added another effect
condition: Bar value = Parameters=PARAM_BIG_NUMBERS, 100

Quote

GlobalTrigger= 54, FGT_SINGLE_SHOT_RESUMED+ FGT_DISABLED, GT_CONDITION_GROUP, IGNORE, 74, 75, ignore

TriggerGroup= 74, $8000, 85, $28 ; Value = 100

TriggerGroup= 75, $2000, 109, $3501,> ;GT 53
$2000, 109, $3601,> ;GT 54
$2000, 332, $4 ;hide bar*


#4 User is offline   Raymond 

  • Sergeant Major
  • PipPipPipPip
  • Group: Skribblerz
  • Posts: 651
  • Joined: 22-April 08

Posted 11 March 2010 - 10:54 PM

You havne´t understood me. I can read the GT´s and Organizers, but why do you do it this way. Describe your ideas behind this. What is animation 446/447 etc. etc..
What´s going wrong? Where do you get the wrong results?

#5 User is offline   Igor32 

  • Lance Corporal
  • Pip
  • Group: Skribblerz
  • Posts: 99
  • Joined: 30-December 08

Posted 11 March 2010 - 11:33 PM

446 [from 136] and 447[from 137] are GeckoKid faster shimmy and in my game, Lara can't use the sprint, that's why I use the jump key

So I want to let it be timed to make an illusion of reducing streng

I got it now? :blush:

EDIT:

The bar isn't showed making all gt, tg's and organizer inutile(?) '-'

#6 User is offline   Raymond 

  • Sergeant Major
  • PipPipPipPip
  • Group: Skribblerz
  • Posts: 651
  • Joined: 22-April 08

Posted 12 March 2010 - 06:04 PM

You must show thwe bar with the Custom Bar. Show the <&>Custom bar on screen for (E)Seconds-flipeffect of course.
So you need another GT: "If Lara doing animation 446 or 447, then Custom Bar. Show the <&>Custom bar on screen for 10 Seconds" for instance.
Your structure seems a bit strange to me.
That´s the way I would do it:
1. Set variable to 100 with flipeffect trigger in the level.
2. GT for activation of Reduce Variable Value-Organizer
If (Animation is 446 and value is greater 0)or(animation is 447 and value greater 0), then then start Reduce-Organizer.
3. GT for stopping Reduce Orgnaizer and Disabling Jump Key
If Value=0, then stop Reduce-Organizer and Disable Jump key for ... seconds
4. GT for starting Restore Variable Value-Organizer
If (animation isn´t 446 and value smaller 100) or (animation isn´t 447 and value smaller 100), then start Restore-Organzer.
5. GT for stopping Restore variable Value-Organizer
If Value=100,then stop Restore-Organizer
6. GT for showing bar:
If animation is 446 or 447, then Show. Custom Bar for 10 s.
7. Reduce Value-Organizer
8. Restore Value-Organizer

#7 User is offline   Igor32 

  • Lance Corporal
  • Pip
  • Group: Skribblerz
  • Posts: 99
  • Joined: 30-December 08

Posted 14 March 2010 - 12:58 AM

Quote

Parameters= PARAM_BIG_NUMBERS, 100, 100

ColorRGB= 5, 64, 192, 64 ;Back
ColorRGB= 6, 128, 255, 128 ;Main
Customize= CUST_BAR, BAR_CUSTOM1, IGNORE, 19, 400, 100, 15, 5, 6, #0055 ;Local Short Delta2

Animation= 446, KEY1_jump, IGNORE, IGNORE, IGNORE, IGNORE, IGNORE, -136
Animation= 447, KEY1_jump, IGNORE, IGNORE, IGNORE, IGNORE, IGNORE, -137

;---------.:: SPRINT TEST ::.---------;

;----.:: Global Triggers for further activation ::.----;
GlobalTrigger= 1, IGNORE, GT_CONDITION_GROUP, IGNORE, 1, 3, ignore
TriggerGroup= 1,>
$8000, 446, $1E,> ;Perform anim 446
$8000, 85, $2A ;Check Value X > 0

GlobalTrigger= 2, IGNORE, GT_CONDITION_GROUP, IGNORE, 2, 3, ignore
TriggerGroup= 2,>
$8000, 447, $1E,> ;Perform anim 446
$8000, 85, $2A ;Check Value X > 0


TriggerGroup= 3, $2000, 127, $1 ;Perform Organizer 1




;-----.:: Reducing organizer
Organizer= 1, FO_LOOP+ FO_TICK_TIME, IGNORE, 3, 4
TriggerGroup= 4, $2000, 233, $155 ;Reduce value




;-----.:: Global Trigger Checker 1 / IF = 0
GlobalTrigger= 3, IGNORE, GT_CONDITION_GROUP, IGNORE, 5, 6, ignore
TriggerGroup= 5, $8000, 85, $2B ; Variable = 0
TriggerGroup= 6,>
$2000, 128, $1,> ;Disable Org 1
$2000, 51, $308 ;Disable jump 3 sec


GlobalTrigger= 4, IGNORE, GT_CONDITION_GROUP, IGNORE, 7, ignore, 9
TriggerGroup= 7,>
$8000, 85, $27,> ; X < 100
$8000, 446, $1E ;Anim 446

GlobalTrigger= 5, IGNORE, GT_CONDITION_GROUP, IGNORE, 8, ignore, 9
TriggerGroup= 8,>
$8000, 85, $27,> ; X < 100
$8000, 18, $5 ;Anim 447

TriggerGroup= 9,>
$2000, 127, $2 ;Enable Org 2




;-----.:: Restore organizer
Organizer= 2, FO_LOOP+ FO_TICK_TIME, IGNORE, 3, 10
TriggerGroup= 10, $2000, 231, $255 ;Restore



;-----.:: Global Trigger Checker 2 / IF = 100
GlobalTrigger= 6, IGNORE, GT_CONDITION_GROUP, IGNORE, 11, 12, ignore
TriggerGroup= 11,>
$8000, 85, $28 ;If = 100 /BIG_VALUE

TriggerGroup= 12,>
$2000, 128, $2 ;Disable Org 2



;----.:: Global Triggers TO SHOW CBAR1 / IF Anim 446 or 447
GlobalTrigger= 7, IGNORE, GT_CONDITION_GROUP, IGNORE, 13, 15, IGNORE
TriggerGroup= 13,>
$8000, 446, $1E ;Perform anim 446

GlobalTrigger= 8, IGNORE, GT_CONDITION_GROUP, IGNORE, 14, 15, IGNORE
TriggerGroup= 14,>
$8000, 447, $1E ;Perform anim 447

TriggerGroup= 15,>
$2000, 331, $A04 ;Show Cbar1 - 10 sec


Organizer= 51, FO_TICK_TIME+ FO_ENABLED, IGNORE, 1, 51
TriggerGroup= 51,>
$2000, 232, $6455 ;Set Value
;$2000, 331, $104 ;Show Cbar1 1sec


Is not decreasing :X But it was working hours ago*, I may use the anim comand to force the reduce for each anim frame ._.

*I didn't make any changes


EDIT2:

Changed to dash
It is deacreasing but sometimes the reducer fights with the increaser :blink:

Quote

;---------.:: SPRINT TEST - V2 The return of dead-alive ::.---------;

;----.:: Global Triggers for further activation ::.----;
GlobalTrigger= 1, IGNORE, GT_CONDITION_GROUP, IGNORE, 1, 3, ignore
TriggerGroup= 1,>
$8000, 446, $1E ;Perform anim 446
; $8000, 85, $29 ;Check Value X > 0

GlobalTrigger= 2, IGNORE, GT_CONDITION_GROUP, IGNORE, 2, 3, ignore
TriggerGroup= 2,>
$8000, 447, $1E ;Perform anim 446
; $8000, 85, $29 ;Check Value X > 0


TriggerGroup= 3, $2000, 127, $1,> ;Perform Organizer 1
$2000, 109, $100,> ; 100 = Disable Global 1, 101 = Enable GT1
$2000, 109, $200,>
$2000, 109, $301



;-----.:: Reducing organizer
Organizer= 1, FO_LOOP+ FO_TICK_TIME, IGNORE, 3, 4
TriggerGroup= 4, $2000, 233, $155 ;Reduce value


;-----.:: Global Trigger Checker 1 / IF = 0
GlobalTrigger= 3, IGNORE, GT_CONDITION_GROUP, IGNORE, 5, 6, ignore
TriggerGroup= 5, $8000, 85, $12A ; Variable = 0
TriggerGroup= 6,>
$2000, 128, $1,> ;Disable Org 1
$2000, 51, $406,> ;Disable dash 4 sec
$2000, 127, $2,> ;Enable Org 2
$2000, 109, $101,>
$2000, 109, $201


GlobalTrigger= 4, FGT_NOT_TRUE, GT_CONDITION_GROUP, IGNORE, 7, 9, IGNORE
TriggerGroup= 7,>
$8000, 85, $27,> ; X < 100
$8000, 446, $1E ;Anim 446

GlobalTrigger= 5, FGT_NOT_TRUE, GT_CONDITION_GROUP, IGNORE, 8, 9, IGNORE
TriggerGroup= 8,>
$8000, 85, $27,> ; X < 100
$8000, 447, $1E ;Anim 447

TriggerGroup= 9,>
$2000, 127, $2 ;Enable Org 2


;-----.:: Restore organizer
Organizer= 2, FO_LOOP+ FO_TICK_TIME, IGNORE, 3, 10
TriggerGroup= 10, $2000, 231, $255 ;Restore



;-----.:: Global Trigger Checker 2 / IF = 100
GlobalTrigger= 6, IGNORE, GT_CONDITION_GROUP, IGNORE, 11, 12, ignore
TriggerGroup= 11,>
$8000, 85, $28 ;If = 100 /BIG_VALUE

TriggerGroup= 12,>
$2000, 128, $2 ;Disable Org 2


;----.:: Global Triggers TO SHOW CBAR1 / IF Anim 446 or 447
GlobalTrigger= 7, IGNORE, GT_CONDITION_GROUP, IGNORE, 13, 15, IGNORE
TriggerGroup= 13,>
$8000, 446, $1E ;Perform anim 446

GlobalTrigger= 8, IGNORE, GT_CONDITION_GROUP, IGNORE, 14, 15, IGNORE
TriggerGroup= 14,>
$8000, 447, $1E ;Perform anim 447

TriggerGroup= 15,>
$2000, 331, $A04 ;Show Cbar1 - 10 sec


#8 User is offline   Raymond 

  • Sergeant Major
  • PipPipPipPip
  • Group: Skribblerz
  • Posts: 651
  • Joined: 22-April 08

Posted 14 March 2010 - 08:07 AM

Oh, yes, we have to stop the other organizer, if one organizer starts.
So change this correspondingly:
2. GT for activation of Reduce Variable Value-Organizer/Stopping Restore Organizer
If (Animation is 446 and value is greater 0)or(animation is 447 and value greater 0), then then start Reduce-Organizer and Stop Restore Organizer.
4. GT for starting Restore Variable Value-Organizer/stopping Reduce Organizer
If (animation isn´t 446 and value smaller 100) or (animation isn´t 447 and value smaller 100), then start Restore-Organizer/stop Reduce-Organizer.

#9 User is offline   Igor32 

  • Lance Corporal
  • Pip
  • Group: Skribblerz
  • Posts: 99
  • Joined: 30-December 08

Posted 14 March 2010 - 11:08 PM

Still not getting it to work right

They don't fight anymore, but... It is strange:

decrease > stop anims > restore, but once fully restored it will decrease again, even if the player let go of shimming

If I place the stop reducer-organizer in the GT IF = 100, the system will not work. :wacko:

Tried placing this:
GlobalTrigger= 9, FGT_NOT_TRUE, IGNORE, IGNORE, 16, 18, IGNORE
TriggerGroup= 16,>
$8000, 446, $1E ;Anim 446

GlobalTrigger= 10, FGT_NOT_TRUE, IGNORE, IGNORE, 17, 18, IGNORE
TriggerGroup= 17,>
$8000, 447, $1E ;Anim 447

TriggerGroup= 18,>
$2000, 128, $1 ;Disable Org 1


My problem now is with the organizer 1, it keep enabled :angry4:
Any advice? :blush:

#10 User is offline   Raymond 

  • Sergeant Major
  • PipPipPipPip
  • Group: Skribblerz
  • Posts: 651
  • Joined: 22-April 08

Posted 15 March 2010 - 05:16 PM

You stop the Restore-Organizer (and not the Reduce-organizer) with the variable equal to 100. So change this.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic